Skip to content

Commit

Permalink
Specify scripts using Butler's own gulp, and allow running butler dir…
Browse files Browse the repository at this point in the history
…ectly.
  • Loading branch information
becw committed Apr 15, 2016
1 parent 19646ed commit 850a815
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ A tool to automate front-end development tasks and streamline prototyping.

````
"scripts": {
"butler": "gulp --gulpfile node_modules/butler/gulpfile.js develop",
"linting": "gulp --gulpfile node_modules/butler/gulpfile.js test",
"deploy": "gulp --gulpfile node_modules/butler/gulpfile.js deploy"
"butler": "node_modules/butler/node_modules/.bin/gulp --gulpfile node_modules/butler/gulpfile.js",
"develop": "node_modules/butler/node_modules/.bin/gulp --gulpfile node_modules/butler/gulpfile.js develop",
"linting": "node_modules/butler/node_modules/.bin/gulp --gulpfile node_modules/butler/gulpfile.js test",
"deploy": "node_modules/butler/node_modules/.bin/gulp --gulpfile node_modules/butler/gulpfile.js deploy"
},
````
1. Add the `node_modules` directory to your project's .gitignore
Expand All @@ -47,6 +48,10 @@ A tool to automate front-end development tasks and streamline prototyping.

This is the default task. This will watch your sass/sculpin files for changes and compile/build accordingly. It will also flag any sass linting errors before compiling. It will output CSS that has been been minified and optimized.

* `npm run butler -- sass`

Just compile the sass. You can also use this syntax to run any task from the Gulpfile.

* `npm run linting`

This is the testing task it will run linters as their own tasks. To learn more about configuring and customizing the linters for Butler check the [linters documentation](/docs/LINTERS.md).
Expand Down

0 comments on commit 850a815

Please sign in to comment.