catjs
Version:
(Mobile) Web Automation Framework
126 lines (120 loc) • 3.42 kB
JSON
{
"name": "cat-build",
"source": "src/",
"target": "target/",
"plugins": [
{
"name": "init.copy.src",
"type": "copy",
"from": {
"path": "./../src"
},
"to": {
"path": "./target/src"
}
},
{
"name": "init.copy.resources",
"type": "copy",
"from": {
"path": "./../resources"
},
"to": {
"path": "./target/resources"
}
},
{
"name": "clean.images",
"type": "clean",
"src": ["./target/resources/images"]
},
{
"name": "init.copy.root",
"type": "copy",
"from": {
"path": ["./../*.js", "./../*.json", "./../*.md" ]
},
"to": {
"path": "./target/"
}
},
{
"name": "copy.test.enyo",
"type": "copy",
"from": {
"path": "./../test/enyo"
},
"to": {
"path": "./target/test/enyo"
}
},
{
"name": "copy.test.sencha",
"type": "copy",
"from": {
"path": "./../test/sencha"
},
"to": {
"path": "./target/test/sencha"
}
},{
"name": "copy.test",
"type": "copy",
"from": {
"path": ["./../test/test.js", "./../test/testModule.js"]
},
"to": {
"path": "./target/test/"
}
},
{
"name": "minify",
"type": "minify",
"jshint": {
"opt": {
"evil": true,
"strict": false,
"curly": true,
"eqeqeq": true,
"immed": false,
"latedef": true,
"newcap": false,
"noarg": false,
"sub": true,
"undef": true,
"boss": true,
"eqnull": true,
"node": true,
"es5": false,
"loopfunc": true
},
"globals": {
"XMLHttpRequest": true,
"document": true,
"_cat": true,
"chai": true,
"catrequire": true,
"cathome": true,
"phantom": true
}
},
"mode": "prod",
"isolate": "true",
"path": "./target/src",
"src": ["./target/src/**/*.js"],
"excludes": ["Gruntfile.js", "./**/.catmin*.js", "./**/libraries/**/*.js", "./**/module/project/init/projects/**/*.js"]
}
],
"tasks": [
{
"name": "build",
"plugins": ["p@project.clean", "p@project.wipe",
"init.copy.src", "minify", "init.copy.resources", "clean.images", "init.copy.root",
"copy.test.enyo", "copy.test.sencha", "copy.test"
]
}, {
"name": "clean",
"plugins": ["p@project.clean", "p@project.wipe"]
}
]
}