saka-key icon indicating copy to clipboard operation
saka-key copied to clipboard

[WIP] New build scripts

Open yfdyh000 opened this issue 6 years ago • 2 comments

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's scripts.

yfdyh000 avatar Nov 04 '17 23:11 yfdyh000

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.

eejdoowad avatar Nov 10 '17 05:11 eejdoowad

web-ext sound good but no output_filename support. https://github.com/mozilla/web-ext/issues/855

yfdyh000 avatar Nov 10 '17 05:11 yfdyh000