Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scandipwa/split-legacy-extension
A tool that's made to split FE and BE parts of a ScandiPWA extension.
https://github.com/scandipwa/split-legacy-extension
Last synced: 14 days ago
JSON representation
A tool that's made to split FE and BE parts of a ScandiPWA extension.
- Host: GitHub
- URL: https://github.com/scandipwa/split-legacy-extension
- Owner: scandipwa
- Created: 2020-11-20T12:29:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T14:22:19.000Z (almost 4 years ago)
- Last Synced: 2023-03-02T15:32:55.726Z (over 1 year ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ScandiPWA extension splitter
This module is made to split FE and BE parts of a ScandiPWA extension.
### How to use - important!
1. Clone this repository to a convenient place to access. Let's assume that you cloned it to `~`
2. Run `node ~/split-legacy-extension/index.js []`. Destination path is optional and defaults to `process.cwd()` + `@publisher_extension-name`.
2. See that in your `` directory appeared two directories: `frontend` and `backend`. These directories are npm and composer modules, correspondingly.
3. Validate the new modules. Things to verify:1. All first-level children of the initial directory have found their path to the correct modules. E.g. if you have some `.editorconfig` in the root of your initial module, it will not be copied - the variety of files there can be endless and it is ambiguous where should they go. You are expected to handle that yourself. This tool only handles the files vital for the ScandiPWA plugin system.
2. Both `composer.json` and `package.json` files exist and are valid, with relevant information.
4. Enjoy the FE-only extension in your `create-scandipwa-app` setup and the BE-only module on your M2 instance!