Run javascript build on travis ci (#6)

* Add js build to travis

* Cleanup JS

* Reduce package.json for now

* Reduce package.json for now

* Remove ng-annotate as we don't minify code and it fails on travis cis node version

* Ignore tests for now
This commit is contained in:
Julius Härtl
2017-01-31 15:13:23 +01:00
committed by GitHub
parent 1e1891a43f
commit e319c2ed07
4 changed files with 28 additions and 141 deletions

View File

@@ -22,13 +22,12 @@
module.exports = function(grunt) {
'use strict';
'use strict';
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-wrap');
grunt.loadNpmTasks('grunt-ng-annotate');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-phpunit');
@@ -115,18 +114,10 @@ module.exports = function(grunt) {
reporters: ['progress']
}
},
ngAnnotate: {
app: {
src: ['<%= meta.productionJS %>app.js'],
dest: '<%= meta.productionJS %>app.js'
}
}
});
// make tasks available under simpler commands
grunt.registerTask('build', ['jshint', 'concat', 'wrap', 'ngAnnotate']);
grunt.registerTask('build', ['jshint', 'concat', 'wrap']);
grunt.registerTask('js-unit', ['karma:continuous']);
};