Added scripts to package.json and removed gulp from the global dependencies

This commit is contained in:
Tobias Reich 2016-01-24 14:57:22 +01:00
parent 1a856eeb4f
commit eb887c7ca8
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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",