1
0
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:
Antoine Boulanger
2020-05-27 10:28:39 -04:00
parent e910afc384
commit 6ae89d6621
2 changed files with 26 additions and 21 deletions

View File

@@ -8,7 +8,7 @@
## Installation
```sh
npm install mbp gulp -g
npm install mbp -g
```
## Usage
@@ -16,8 +16,8 @@ npm install mbp gulp -g
# init your project
mbp init locomotivemtl/locomotive-boilerplate <directory>
# run default watch task
gulp
# and start it
npm start
```
## Configuration
@@ -31,13 +31,13 @@ Change the mentions of `boilerplate` for your project's name in `mconfig.json`.
#### Tasks
```sh
# watch
gulp
npm start
# compile
gulp compile
npm run compile
# minify
gulp build
npm run build
```
[Learn more](https://github.com/modularorg/modularbp-gulp)

View File

@@ -1,17 +1,22 @@
{
"private": true,
"name": "@locomotivemtl/boilerplate",
"title": "Locomotive Boilerplate",
"version": "1.0.0",
"author": "Locomotive <info@locomotive.ca>",
"dependencies": {
"locomotive-scroll": "*",
"modujs": "*",
"modularload": "*",
"normalize.css": "*",
"svg4everybody": "*"
},
"devDependencies": {
"gulp-concat": "*"
}
"private": true,
"name": "@locomotivemtl/boilerplate",
"title": "Locomotive Boilerplate",
"version": "1.0.0",
"author": "Locomotive <info@locomotive.ca>",
"scripts": {
"start": "gulp",
"build": "gulp build",
"compile": "gulp compile"
},
"dependencies": {
"locomotive-scroll": "*",
"modujs": "*",
"modularload": "*",
"normalize.css": "*",
"svg4everybody": "*"
},
"devDependencies": {
"gulp-concat": "*"
}
}