Skip to content

Use npm script for building brunch - #1270

Merged
chrismccord merged 2 commits into
phoenixframework:masterfrom
jarofghosts:use-npm-script
Oct 11, 2015
Merged

Use npm script for building brunch#1270
chrismccord merged 2 commits into
phoenixframework:masterfrom
jarofghosts:use-npm-script

Conversation

@jarofghosts

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

@jarofghosts

Copy link
Copy Markdown
Contributor Author

definitely! will report back

@jarofghosts

Copy link
Copy Markdown
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
Copy Markdown
Member

<3 <3 <3

@josevalim

Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants