-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTuts
57 lines (31 loc) · 915 Bytes
/
Tuts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Javascript and JSON
Globaly installing gulp:
npm install -g gulp
Globally install Browserify
npm install -g browserify
Installing sass:
gem install sass
Instaling compass:
gem install compass
Updating components:
gem update
Adding git
git init
git add .
git commit -m "First commit"
git
Installing gulp on two way - --save or --save-dev (different is that --save-dev is what the project need for developing, but not wor production). Run command in root folder
npm install --save-dev gulp
then make file "gulpfile.js"
Then make variable where we will require gulp
var gulp = require('gulp')
Then install new gulp plagin
npm install --save-dev gulp-util
add it to gulpfile.js
var gutil = require('gulp-util');
and make new task
gulp.task('log', function(){ // 'log' is the name of the task
gutil.log('Some text to log in console')
});
To run task in commandline, we type:
gulp log