Skip to content
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 for building brunch #1270

Merged
merged 2 commits into from Oct 11, 2015

Conversation

jarofghosts
Copy link
Contributor

This updates the installer to utilize an npm run script for running brunch build.

npm run scripts are run with any locally installed bins in the PATH, so that you can call the executables directly without having to call into node_modules/... or ask that someone install a dependency globally. This is preferable because the current method of reaching into node_modules/... is prone to breaking if the brunch package ever changes where it stores the bin, whereas this will always work as long as it defines an executable in its package.json.

@chrismccord
Copy link
Member

Can you verify that this works on windows? I know we had to invoke node explicitly to cover some windows issues

@chrismccord
Copy link
Member

Verify in that it really works, not "should/supposed to work" :)

@jarofghosts
Copy link
Contributor Author

definitely! will report back

@jarofghosts
Copy link
Contributor Author

verified working on windows, given recently pushed commit

chrismccord added a commit that referenced this pull request Oct 11, 2015
Use npm script for building brunch
@chrismccord chrismccord merged commit 6d95ef5 into phoenixframework:master Oct 11, 2015
@chrismccord
Copy link
Member

<3 <3 <3

@josevalim
Copy link
Member

Should we also use this for the brunch watch inside config/dev.exs?

José Valim
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

@jarofghosts
Copy link
Contributor Author

ah, yes, i missed that usage. i can open a new PR for that later today

josevalim pushed a commit that referenced this pull request Oct 29, 2015
This reverts commit 6d95ef5, reversing
changes made to ca384f2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants