-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.config.js
58 lines (57 loc) · 2.21 KB
/
component.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
var bower = require('./bower.json');
var pkg = require('./package.json');
module.exports = {
bower: bower,
build: {
fonts: true, // or false. Set to false if you are doing your own thing in the fonts directory
styles: 'sass', // less not yet available
html: 'html-concat',// moustache or assemble or jekyll not yet available
scripts: 'browserify' // or requirejs
},
test: { // where your tests config, specs and reports are saved
type: 'karma',//or mocha not yet available
config: './test/karma.conf.js',
summary: './test/coverage/summary.json'
},
release: { //add you release config here... or false
type: 'aws',
bucket: process.env.AWS_SKYGLOBAL_BUCKET,
accessKey: process.env.AWS_ACCESS_KEY_ID,
secret: process.env.AWS_SECRET_ACCESS_KEY,
region: process.env.AWS_REGION,
directoryPrefix: 'components/' //prefix your target release destination
},
serve: {
type:'static', // `static` or `node`
directories : '_site', //only for `static` : 'dir' or ['_site','bower_component']
port: 3456
//script : 'src/app/server.js', //server script only for `node`
//host: 'http://localhost:3000', // host only for `node`
//env: { NODE_ENV: 'local'} // env vars only for `node`
},
paths: {
/*
All paths also have `script`, `styles`, `fonts`, `icons` and `images` properties
Feel free to specify a custom path i.e. `scripts: './src/js'`
*/
"bower": {
root: './bower_components',
fonts: './bower_components/*/dist/fonts'
},
source: { //source files to build your component / site
root: "./src"
},
"demo": { // files used to demo the source code or an accompanying site.
// not files you would want to distribute.
root: "./demo"
},
dist : { // Compiled source code to be redistributed i.e. via bower
root: "./dist"
},
"site": { // Compiled demo code + Compiled source code.
// Final build code pushed to your chosen release cloud i.e. AWS
root: './_site'
}
},
pkg: pkg
};