dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
module.exports = function(grunt) {
|
|
|
|
grunt.initConfig({
|
|
watch : {
|
|
files: ['ngReact.js', 'tests/*.js'],
|
|
tasks: ['uglify', 'karma:background:run'],
|
|
},
|
|
uglify: {
|
|
build : {
|
|
options: {
|
|
mangle: {
|
|
except: ['angular', 'React']
|
|
}
|
|
},
|
|
files: {
|
|
'ngReact.min.js' : 'ngReact.js'
|
|
}
|
|
}
|
|
},
|
|
karma: {
|
|
options: {
|
|
configFile: 'karma.config.js'
|
|
},
|
|
background: {
|
|
autoWatch: false,
|
|
background: true,
|
|
singleRun: false
|
|
},
|
|
single: {
|
|
autoWatch: false,
|
|
singleRun: true
|
|
}
|
|
},
|
|
docco: {
|
|
build : {
|
|
src: ['ngReact.js'],
|
|
options: {
|
|
output: 'docs/'
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
require('load-grunt-tasks')(grunt);
|
|
|
|
grunt.registerTask('default', ['uglify', 'karma:single']);
|
|
|
|
grunt.registerTask('build', ['uglify']);
|
|
grunt.registerTask('test', ['karma:single']);
|
|
grunt.registerTask('docs', ['docco']);
|
|
};
|
|
|