CAW Scripts 🦜
caw-scripts
bundles up everything in crema-app-web
as a dependency to allow consumers to take easy advantage of updates as an npm package.
The exact method for setup is still a work in progress. Also, this first approach doesn't expose any additional dependencies to the consumer—e.g. react, react-dom, typescript—but we probably would. This is still an experiment. Feedback welcome!
Local Development
From caw-scripts directory
- Install dependencies:
npm i
- Build it:
npm start
- Pack it:
npm pack
- right-click and copy the absolute path to the
caw-scripts-0.1.0.tgz
From consumer directory
Normally you could just link directories to test this out, but there seem to be limitations related to how this dependency will work. Maybe there's something that can be figured out.
- Install it:
npm i PASTE_ABSOLUTE_PATH_TO_TGZ
- From your project, run binary:
node node_modules/.bin/caw-scripts init
- Run
npm start
to confirm that the app works - You should be able to
npm run build | lint | test
as well