append string to ide.js min which we can use for testing via status cake

This commit is contained in:
Henry Oswald 2015-10-09 10:11:38 +01:00
parent f1d07811df
commit e593b3f717
2 changed files with 19 additions and 9 deletions

View file

@ -11,7 +11,8 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-bunyan'
grunt.loadNpmTasks 'grunt-sed'
grunt.loadNpmTasks 'grunt-git-rev-parse'
grunt.loadNpmTasks 'grunt-file-append'
config =
execute:
app:
@ -129,6 +130,14 @@ module.exports = (grunt) ->
options:
prop: 'commit'
file_append:
default_options: files: [ {
append: '\n//ide.js is complete - used for automated testing'
input: 'public/minjs/ide.js'
output: 'public/minjs/ide.js'
}]
sed:
version:
path: "app/views/sentry.jade"
@ -272,7 +281,7 @@ module.exports = (grunt) ->
grunt.registerTask 'compile:server', 'Compile the server side coffee script', ['clean:app', 'coffee:app', 'coffee:app_dir', 'compile:modules:server']
grunt.registerTask 'compile:client', 'Compile the client side coffee script', ['coffee:client', 'coffee:sharejs', 'wrap_sharejs', "compile:modules:client", 'compile:modules:inject_clientside_includes']
grunt.registerTask 'compile:css', 'Compile the less files to css', ['less']
grunt.registerTask 'compile:minify', 'Concat and minify the client side js', ['requirejs']
grunt.registerTask 'compile:minify', 'Concat and minify the client side js', ['requirejs', "file_append"]
grunt.registerTask 'compile:unit_tests', 'Compile the unit tests', ['clean:unit_tests', 'coffee:unit_tests']
grunt.registerTask 'compile:smoke_tests', 'Compile the smoke tests', ['coffee:smoke_tests']
grunt.registerTask 'compile:tests', 'Compile all the tests', ['compile:smoke_tests', 'compile:unit_tests']

View file

@ -55,22 +55,23 @@
"xml2js": "0.2.0"
},
"devDependencies": {
"bunyan": "0.22.1",
"chai": "",
"chai-spies": "",
"sandboxed-module": "0.2.0",
"timekeeper": "",
"sinon": "",
"grunt-available-tasks": "0.4.1",
"grunt-bunyan": "0.5.0",
"grunt-concurrent": "0.4.3",
"grunt-contrib-clean": "0.5.0",
"grunt-contrib-coffee": "0.10.0",
"grunt-contrib-less": "0.9.0",
"grunt-mocha-test": "0.9.0",
"grunt-available-tasks": "0.4.1",
"grunt-contrib-requirejs": "0.4.1",
"grunt-execute": "0.1.5",
"grunt-file-append": "0.0.6",
"grunt-git-rev-parse": "^0.1.4",
"grunt-mocha-test": "0.9.0",
"grunt-sed": "^0.1.1",
"bunyan": "0.22.1",
"grunt-bunyan": "0.5.0"
"sandboxed-module": "0.2.0",
"sinon": "",
"timekeeper": ""
}
}