Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

[WIP] New build scripts #104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

yfdyh000
Copy link
Contributor

@yfdyh000 yfdyh000 commented Nov 4, 2017

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.

* Use and maintain separate directories for different architecture
* Add watch scripts
* zip scripts is not working for now
@eejdoowad
Copy link
Member

eejdoowad commented Nov 10, 2017

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.

@yfdyh000
Copy link
Contributor Author

web-ext sound good but no output_filename support. mozilla/web-ext#855

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants