forked from nicholasadamou/starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
109 lines (108 loc) · 3.83 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
module.exports = function() {
// Configuration Options
var config = {
/**
* This is the environment in which 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 it is set to an empty string the environment will be extract from
* the NODE_ENV environment var.
*/
environment: 'development',
FTP: {
host: 'HOST',
user: 'USER',
password: 'PASSWORD',
secure: true, //Set 'true' for secured FTP connections
target: 'FTP-DIRECTORY'
},
SURGE: {
project: require('path').dirname(__dirname) + '/public/', // Path to your static build directory
domain: 'YOURDOMAIN.surge.sh' // Your domain or Surge subdomain
},
GHPAGES: {
username: 'USERNAME',
repo: 'REPO'
},
// Google PageSpeed Insights URL Option
URL: 'example.com',
// The `package.json` file
pkg: require('../package.json'),
// Root dir
root: require('path').dirname(__dirname) + '/',
// Source code dir
src: 'src/',
// dist dir is where the compiled code will be outputted.
build: 'public/',
// Location of various assets (e.g. fonts, css, images, etc)
assets: 'assets/',
// Where the images are inside the src folder.
// They will be copied to the same dir on the dist folder.
images: 'assets/images',
/**
* Pug directory. This is the dir where all the Pug files should live
* Important: only *.pug files will be compiled in this exact dir and not any sub dir.
* you could use a subdir to include partials and use the include command in Pug to included them.
*/
pug: {
dir: 'views',
name: 'index.pug'
},
/**
* 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 index file will be compiled.
*/
sass: {
dir: 'sass',
name: 'index.scss'
},
// Dir where the sass will be compiled to
css: 'assets/css',
// 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',
//Source Mapping Support
sourceComments: 'map',
// Relative path to the css where the images dir is.
imagePath: '../images',
// Sass precision
precision: 3,
},
js: {
dir: 'js',
name: 'index.js'
},
/**
* This is the relative to build dir for vendors assets like jQuery. Vendors are
* managed by bower and if the directory should be changed, you should change the
* .bowerrc file in the root directory as well.
*/
vendors: 'vendors',
// 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,
// Whether or not the UI should be enabled
ui: false,
// The local-tunnel sub-domain (e.g. <example>.localtunnel.me)
tunnelName: 'starterkit'
}
};
return config;
};