saka-key
saka-key copied to clipboard
[WIP] New build scripts
This includes PR #103.
Goal:
- Use and maintain separate directories for different architecture, allow to debug a variety of modified code once.
- Add
watch
scripts.
Issues:
-
zip
scripts is not working for now, I tried to solve it but encountered a few of problems. I hope this can be clearer, but I don't know how to do this. For example adding a helper.js to parse the parameters thus reduce the npm'sscripts
.
This looks like really promising.
Just a heads up. The "npm run build" commands start by calling "npm run clean" which deletes the "dist" directory containing the generated extension files. Deleting dist before every build is a hack I made early on to ensure no stale files were accidentally kept.
It's worthwhile to modify the build commands so that dist isn't deleted on every build. This will make incremental builds MUCH faster and make watch mode possible.
It's also worthwhile looking into web-ext.
web-ext sound good but no output_filename support. https://github.com/mozilla/web-ext/issues/855