mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Add npm scripts to run gulp tasks, update readme to remove gulp global dependency
This commit is contained in:
12
README.md
12
README.md
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
```sh
|
```sh
|
||||||
npm install mbp gulp -g
|
npm install mbp -g
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
@@ -16,8 +16,8 @@ npm install mbp gulp -g
|
|||||||
# init your project
|
# init your project
|
||||||
mbp init locomotivemtl/locomotive-boilerplate <directory>
|
mbp init locomotivemtl/locomotive-boilerplate <directory>
|
||||||
|
|
||||||
# run default watch task
|
# and start it
|
||||||
gulp
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
@@ -31,13 +31,13 @@ Change the mentions of `boilerplate` for your project's name in `mconfig.json`.
|
|||||||
#### Tasks
|
#### Tasks
|
||||||
```sh
|
```sh
|
||||||
# watch
|
# watch
|
||||||
gulp
|
npm start
|
||||||
|
|
||||||
# compile
|
# compile
|
||||||
gulp compile
|
npm run compile
|
||||||
|
|
||||||
# minify
|
# minify
|
||||||
gulp build
|
npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
[Learn more](https://github.com/modularorg/modularbp-gulp)
|
[Learn more](https://github.com/modularorg/modularbp-gulp)
|
||||||
|
|||||||
35
package.json
35
package.json
@@ -1,17 +1,22 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "@locomotivemtl/boilerplate",
|
"name": "@locomotivemtl/boilerplate",
|
||||||
"title": "Locomotive Boilerplate",
|
"title": "Locomotive Boilerplate",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"author": "Locomotive <info@locomotive.ca>",
|
"author": "Locomotive <info@locomotive.ca>",
|
||||||
"dependencies": {
|
"scripts": {
|
||||||
"locomotive-scroll": "*",
|
"start": "gulp",
|
||||||
"modujs": "*",
|
"build": "gulp build",
|
||||||
"modularload": "*",
|
"compile": "gulp compile"
|
||||||
"normalize.css": "*",
|
},
|
||||||
"svg4everybody": "*"
|
"dependencies": {
|
||||||
},
|
"locomotive-scroll": "*",
|
||||||
"devDependencies": {
|
"modujs": "*",
|
||||||
"gulp-concat": "*"
|
"modularload": "*",
|
||||||
}
|
"normalize.css": "*",
|
||||||
|
"svg4everybody": "*"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"gulp-concat": "*"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user