chore(project): upgrade browserify + cleanup dependencies

This commit is contained in:
Nico Rehwaldt 2014-06-02 14:24:10 +02:00
parent 0a619a53fd
commit e50ca1bfac
3 changed files with 12 additions and 10 deletions

View File

@ -53,6 +53,7 @@ module.exports = function(grunt) {
}, },
node: [ 'test/spec/node/' ] node: [ 'test/spec/node/' ]
}, },
karma: { karma: {
options: { options: {
configFile: '<%= config.tests %>/config/karma.unit.js', configFile: '<%= config.tests %>/config/karma.unit.js',
@ -70,9 +71,12 @@ module.exports = function(grunt) {
}, },
unit: { unit: {
browsers: TEST_BROWSERS, browsers: TEST_BROWSERS,
transform: [ 'brfs' ] browserify: {
transform: [ 'brfs' ]
}
} }
}, },
browserify: { browserify: {
options: { options: {
browserifyOptions: { browserifyOptions: {
@ -95,8 +99,7 @@ module.exports = function(grunt) {
'<%= config.sources %>/Viewer.js:bpmn-js/Viewer', '<%= config.sources %>/Viewer.js:bpmn-js/Viewer',
'<%= config.sources %>/Modeler.js:bpmn-js/Modeler' '<%= config.sources %>/Modeler.js:bpmn-js/Modeler'
], ],
watch: true, watch: true
keepalive: true
}, },
files: { files: {
'<%= config.dist %>/bpmn.js': [ '<%= config.sources %>/**/*.js' ], '<%= config.dist %>/bpmn.js': [ '<%= config.sources %>/**/*.js' ],
@ -133,6 +136,7 @@ module.exports = function(grunt) {
} }
} }
}, },
copy: { copy: {
samples: { samples: {
files: [ files: [
@ -146,6 +150,7 @@ module.exports = function(grunt) {
] ]
} }
}, },
watch: { watch: {
samples: { samples: {
files: [ '<%= config.samples %>/**/*.*' ], files: [ '<%= config.samples %>/**/*.*' ],
@ -164,6 +169,7 @@ module.exports = function(grunt) {
tasks: [ 'uglify:viewer' ] tasks: [ 'uglify:viewer' ]
} }
}, },
jsdoc: { jsdoc: {
dist: { dist: {
src: [ '<%= config.sources %>/**/*.js' ], src: [ '<%= config.sources %>/**/*.js' ],
@ -173,10 +179,7 @@ module.exports = function(grunt) {
} }
} }
}, },
concurrent: {
'lib': [ 'build:lib', 'jshint' ],
'build': [ 'jshint', 'build', 'jsdoc' ]
},
connect: { connect: {
options: { options: {
port: 9003, port: 9003,

View File

@ -13,7 +13,7 @@
"modeler" "modeler"
], ],
"dependencies": { "dependencies": {
}, },
"homepage": "http://bpmn.io", "homepage": "http://bpmn.io",
"private": true, "private": true,

View File

@ -36,9 +36,8 @@
"grunt-contrib-jshint": "~0.7.2", "grunt-contrib-jshint": "~0.7.2",
"grunt-contrib-copy": "~0.5.0", "grunt-contrib-copy": "~0.5.0",
"grunt-contrib-uglify": "~0.4.0", "grunt-contrib-uglify": "~0.4.0",
"grunt-browserify": "~2.0.0", "grunt-browserify": "~2.1.0",
"grunt-jsdoc": "~0.5.1", "grunt-jsdoc": "~0.5.1",
"grunt-concurrent": "~0.4.0",
"grunt-karma": "~0.8.0", "grunt-karma": "~0.8.0",
"grunt-jasmine-node": "~0.2.1", "grunt-jasmine-node": "~0.2.1",
"grunt-release": "~0.7.0", "grunt-release": "~0.7.0",