Create a web project with nodejs
, gulp
, git
, sass
.
-
Create project folder and change directory. The
$_
(dollar underscore) bash command variable contains the most recent parameter. mkdir && cd $_ -
Create and initialize
package.json
npm init -
Install
gulp
and save indevDependencies
section ofpackage.json
npm install gulp -D Install some packages for gulp tasks npm install browser-sync gulp-sass gulp-autoprefixer gulp-sourcemaps del -D Don't mind if eventually will occur the warning: npm WARN prefer global node-gyp@3.2.0 should be installed with -g -
bower
configuration for Bootstrapbower init bower install bootstrap-sass -D
-
Create the
gulpfile.js
touch gulpfile.js -
Edit
gulpfile.js
as: var gulp = require('gulp') var sass = require('gulp-sass') var autoprefixer = require('gulp-autoprefixer') var sourcemaps = require('gulp-sourcemaps') -
Inizialize
git
repository and create.gitignore
file git init echo "/node_modules" > .gitignore