-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
76 lines (76 loc) · 2.51 KB
/
config.js
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
module.exports = function() {
// Configuration Options
var config = {
/**
* This is the environment in wish you are working on
* Options are:
* - development
* - production
* - empty string
* For the development build the output will be verbose.
* For the production build the output will be compress and minified
* If is set to and empty string the environment will be extract from
* the NODE_ENV environment var.
*/
environment: 'development',
// Source code directory.
source: 'source/',
// Build directory, is where the compiled code will be output.
build: 'docs/',
// Where the images are inside the source folder.
// they will be copied to the same dir on the build folder
images: 'assets/img',
/**
* Views directory. This is the dir where all the Jade files should live
* Important: only will be compiled *.jade files in this exact dir and not any sub dir
* you could use a subdir to put partials on it and include in jade.
*/
views: 'views/',
/**
* As this is a Sass based project, this is the dir for the sass files. Every file
* under this dir will be watched for changes, but only the main.sass file
* will be compiled.
*/
sass: 'sass/main.sass',
// Dir where the sass will be compiled
css: 'assets/css',
// Favicon
// favicon: 'favicon.ico',
// This are the options that will be passed to the sass compiler
sassOptions: {
/**
* This is how the compiled version of sass will look like
* Output style options are:
* - expanded
* - nested
* - compact
* - compressed
*/
outputStyle: 'expanded',
// Relative path to the css where the images dir is.
imagePath: '../img',
// Sass precision
precision: 3,
},
// Javascript directory
jsDir: 'assets/js',
// Javascript file name
jsName: 'app.js',
// This is the browser sync options
syncOptions: {
// Entry point for the application
index: 'index.html',
// If this option is true, the project will be open in browser after compile.
open: false,
// Notify on all the browsers when the page updates.
notify: true
},
/**
* This is the relative to build dir for vendors assets like jquery. Vendors are
* managed by bower and if the directory will be changed, you should change on
* .bowerrc file in the root directory as well.
*/
vendors: 'vendors'
}
return config;
}