Added scripts to package.json and removed gulp from the global dependencies
This commit is contained in:
parent
1a856eeb4f
commit
eb887c7ca8
@ -4,22 +4,18 @@ First you have to install the following dependencies:
|
||||
|
||||
- `node` [Node.js](http://nodejs.org) v0.10 or later
|
||||
- `npm` [Node Packaged Modules](https://www.npmjs.org)
|
||||
- `gulp` [Gulp.js](http://gulpjs.com)
|
||||
|
||||
After [installing Node.js](http://nodejs.org) you can use the included `npm` package manager to install the global requirements and Lychee-dependencies with the following command:
|
||||
After [installing Node.js](http://nodejs.org) you can use the included `npm` package manager to download all dependencies:
|
||||
|
||||
cd src/
|
||||
npm install -g gulp
|
||||
npm install
|
||||
|
||||
### Build
|
||||
|
||||
The Gulpfile is located in `src/` and can be easily executed using the `gulp` command.
|
||||
The Gulpfile is located in `src/` and can be executed using the `npm start` command.
|
||||
|
||||
### Watch for changes
|
||||
|
||||
While developing, you might want to use the following command to watch for changes:
|
||||
While developing, you might want to use the following command to automatically build Lychee everytime you save a file:
|
||||
|
||||
gulp watch
|
||||
|
||||
`gulp watch` will automatically build Lychee everytime you save a file.
|
||||
npm run watch
|
||||
|
@ -9,6 +9,10 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/electerious/Lychee.git"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "gulp",
|
||||
"watch": "gulp watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-preset-es2015": "^6.3.13",
|
||||
"basiccontext": "^3.5.1",
|
||||
|
Loading…
Reference in New Issue
Block a user