recharge-watch
v0.0.8
Published
Automatically watch for local file changes and sync them to your Recharge theme.
Readme
Recharge Watch
Automatically watch for local file changes and sync them to your Recharge theme.
Installation
npm install -g recharge-watchUsage
Navigate to your theme directory and run:
recharge-watch RECHARGE_STORE=https://example.admin.rechargeapps.com RECHARGE_THEME_ID=55555 [email protected] RECHARGE_PASSWORD=test RECHARGE_CUSTOMER_ID=92374Features
- [x] Sync edited files
- [x] Sync deleted files
- [x] Sync created files
TODO
- [ ] Do not allow editing live theme
- [ ] Open preview of theme automatically
- [ ] Automatically reload theme on change from the browser
- [ ] Before syncing changes to recharge validate that the content is valid for the content type
Not Supported
- We only support syncing the top level directory (no subdirectories).
- We only support three file types:
.js,.html, and.svg,.css.
Publishing
To publish a new version of this package to npm:
Note: The npm publish command will automatically trigger a build process (specifically, npm run build:release) due to the prepublishOnly script in package.json.
- Update the version:
npm version <patch|minor|major> - Publish to npm:
npm publish - Push tags to remote (optional but recommended):
git push --tags
License
This project is licensed under the Apache-2.0 License. See the LICENSE file for details (though you'll need to create this file if you want to include the full license text).
