Merge pull request #580 from jankeromnes/patch-1

Use `yarn grunt` instead of the global `grunt`
This commit is contained in:
Peter Cottle 2019-05-09 12:34:39 -07:00 committed by GitHub
commit 724a341a61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -2,8 +2,8 @@ ports:
- port: 8000
onOpen: open-preview
tasks:
- init: yarn install && yarn global add grunt-cli
- init: yarn install
command: >
grunt fastBuild &&
printf "\nWelcome to Learn Git Branching\nTo rebuild the app, simply run 'grunt fastBuild' and reload index.html.\n\n" &&
yarn grunt fastBuild &&
printf "\nWelcome to Learn Git Branching\nTo rebuild the app, simply run 'yarn grunt fastBuild' and reload index.html.\n\n" &&
python3 -m http.server 8000 2>/dev/null

View file

@ -85,13 +85,13 @@ yarn install
git checkout -b newAwesomeFeature
vim ./src/js/git/index.js # some changes
grunt fastBuild # skips tests and linting, faster build
yarn grunt fastBuild # skips tests and linting, faster build
# after building you can open up your browser to the index.html
# file generated and see your changes
vim ./src/js/git/index.js # more changes
grunt build # runs tests and lint
yarn grunt build # runs tests and lint
git commit -am "My new sweet feature!"
git push