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

build: Add npm-run command for 'grunt site' #66

Merged
merged 1 commit into from
Jul 3, 2018
Merged

build: Add npm-run command for 'grunt site' #66

merged 1 commit into from
Jul 3, 2018

Conversation

Krinkle
Copy link
Member

@Krinkle Krinkle commented Jul 3, 2018

Previously one had to install grunt-cli globally in the local
shell (or use npx). Instead, add a preset command that uses
the locally installed copy of grunt, same as for npm test.

Also, update the destination directory option to be based
on an environment variable because passing options from an
npm script is not user-friendly (would have to require four dashes
instead of two, e.g. npm run site -- --foo bar), and more
importantly, Grunt specifically does not support this call
pattern and instead tries to look for a task called "--foo".

Avoid that issue by using an env variable instead.

Previously one had to install grunt-cli globally in the local
shell (or use npx). Instead, add a preset command that uses
the locally installed copy of grunt, same as for `npm test`.

Also, update the destination directory option to be based
on an environment variable because passing options from an
npm script is not user-friendly (would have to require four dashes
instead of two, e.g. `npm run site -- --foo bar`), and more
importantly, Grunt specifically does not support this call
pattern and instead tries to look for a task called "--foo".

Avoid that issue by using an env variable instead.
@jdforrester jdforrester merged commit 99f0d7c into master Jul 3, 2018
@Krinkle Krinkle deleted the build branch July 3, 2018 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants