Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add npm-run command for 'grunt site' (#66)
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.
- Loading branch information