Browse Source

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

Tobias Reich 8 years ago
parent
commit
eb887c7ca8
2 changed files with 8 additions and 8 deletions
  1. 4 8
      docs/Build.md
  2. 4 0
      src/package.json

+ 4 - 8
docs/Build.md

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

+ 4 - 0
src/package.json

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