-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use npm script to build and pack extension #107
Use npm script to build and pack extension #107
Conversation
Hmm, when I run
But when I run the suggested command above, it also fails with:
(Note that It looks like the
EDIT: likewise for |
@josephfrazier please have a look again. TA |
Ah, that looks much better! Nice find on the I do have one nitpick, though: My development process involves loading the unpacked Chrome extension directly from |
My idea was to get rid of the |
The manifest is already copied by the npm script task `chrome-manifest`
c2057d1
to
07e9897
Compare
Oh, I see now. I was under the impression that the chrome and firefox directories were still used somewhere in the build process, but I now see that I was mistaken. I think it's cleaner to have a single output directory anyway, especially if we were to add support for other browsers like Safari. Merging :) |
What about the naming? Should we call it |
I don't really have a preference there, other than a very slight preference to leave it as |
Based on the discussion with @josephfrazier on #101 this PR use npm script instead of gulp for building and packing the extension. Except
npm run *-pack
it works quite well. I'm just worried about the complexity in thepackage.json
file. I'm undecided which version I prefer more.@josephfrazier regarding the issue with
npm run *-pack
. When I run the script in the console it works, but the same script execute via npm script returnsAny ideas?