-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.config.js
57 lines (56 loc) · 2.3 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
var bower = require('./bower.json');
var pkg = require('./package.json');
module.exports = {
bower: bower,
buildFonts: true, // or false. Set to false if you are doing your own thing in the fonts directory
buildTool: 'gulp', // grunt not yet available
buildStyles: 'sass', // less not yet available
buildHTML: 'html-concat', // moustache or assemble or jekyll not yet available
buildScripts: 'browserify', // or requirejs not yet available
release: 'aws', /// or 'aws',
releaseConfig: { //add you release config here... this is for 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
},
test: 'karma', //or mocha
testConfig: { // where your tests config, specs and reports are saved
root: './test',
specs: './test/specs',
config: './test/karma.conf.js',
summary: './test/coverage/summary.json'
},
serve: '_site', // can be a node app like below
//{ script : 'src/app/server.js',
// host: 'http://localhost:3000',
// port: 3001,
// env: { NODE_ENV: 'local'}
//}, // or serve static folders '_site' or ['_site','bower_component']
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
};