-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
85 lines (59 loc) · 1.82 KB
/
Copy pathconfig.js
File metadata and controls
85 lines (59 loc) · 1.82 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// This is the main configuration file for your build process
// ===========================
// Index
// ---------------------------
/*
1. Test
2. Host
3. Port
4. CSS pre-processor
5. Concat
6. Build configuration
*/
// Global settings
// ===============
// if you are using vanila CSS keep the variable blank
// or set the value to less or sass if you are using any pre-processor
var cssLang = 'less';
// do not modify this value
var pathToWatch = 'src/'+cssLang+'/**';
// Option settings
// ===============
// exported settings, these value will be imported and used in the grunt file configuration
module.exports = {
// 1. Test -> this is the welcome message when you run "test"
// --------------------
cool: "It's working fine, cool! 👍",
// 2. Hostname -> Change to 0,0,0,0 to access over LAN
// --------------------
host: '0.0.0.0',
// 3. Port -> where you want to start the server
// --------------------
port: 3000,
// 4. cssLang -> for using plane css or less or sass file compilation
// --------------------
// Change to global setting on top.
preProcessor: cssLang,
styling: [pathToWatch],
cssStyle: 'nested',
// Your parent stylesheet
sourceStyle: 'src/' + cssLang + '/source.less',
// 5. Concat -> murge file
// --------------------
// JS
// default value: ['src/js/**.js']
jsConcatSrc: 'src/js/**.js',
// default value:
jsConcatDest: 'src/build/js/main.js',
// CSS
// default: 'src/build/css/main.css'
cssConcatSrc: 'src/css/**.css',
// default: 'src/build/css/main.css'
cssConcatDest: 'src/build/css/main.css',
// default '', put 'css' for css only and 'js' or js only
concatOnly: 'css',
// Build -> Folders to move to Distribution
// --------------------
// default value: ['build/**', 'html/**', 'img/**']
distFiles: ['build/**', '*.html', 'img/**', 'fonts/**', '*.png']
};