-
Notifications
You must be signed in to change notification settings - Fork 256
Node.js
PATHFINDER comes along with a simple, Gulp based, build process. There are two predefined Gulp tasks that will help you:
-
default
task is designed for "continuous development" environment -
production
task is designed for "production deployment" environment
Gulp is a NPM module, therefore we need to install Node.js with NPM first.
1. Install Node.js >=v6.0.1
with NPM >=v3.8.6
Hint: The Windows installer of Node.js will install NPM as well. You don´t have to install NPM afterwards.
2. Install npm-check-updates [optional]
To keep all your node packages up2date, you should install this module. We do this installation global (-g) in order to easy access the "check for updates" function from the SHELL.
$ npm install -g npm-check-updates
This will global install npm-check-updates
3. Install all required node modules from the /package.json
$ npm install
This will install all required modules and their dependencies local (
[PROJECT_ROOT]/node_modules/
)
4. Check installation
-
$ node -v
should show the current Node.js version (e.g.v6.1.0
) -
$ npm -v
should show the current NPM version (e.g.v3.8.6
) -
$ npm list --depth=0
will list all local module installations. The output should look something like this:
G:\webpages\exodus4d\pathfinder>npm list --depth=0
[email protected] H:\webpages\pathfinder
+-- [email protected]
+-- [email protected]
+-- [email protected] (git://github.com/gulpjs/gulp.git#38246c3f8b6dbb8d4ef657183e92d90c8299e22f)
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
-- [email protected]