Commit f26afe26 authored by Jérome Perrin's avatar Jérome Perrin

GUI: do not get jio using grunt, we'll put a copy in static/lib/jio.js

parent 2d513821
......@@ -14,7 +14,6 @@ module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks('grunt-contrib-watch');
// grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-curl');
......@@ -77,24 +76,6 @@ module.exports = function (grunt) {
}
},
concat: {
options: {
separator: ';'
},
jio: {
src: [
'node_modules/jio/src/sha1.amd.js',
'node_modules/jio/src/sha2.amd.js',
'node_modules/jio/src/sha256.amd.js',
'node_modules/jio/jio.js',
'node_modules/jio/complex_queries.js',
'node_modules/jio/src/jio.storage/localstorage.js'
],
relative_dest: "lib/jio.js",
dest: "<%= global_config.dest %>/<%= concat.jio.relative_dest %>"
}
},
uglify: {
gadget: {
// XXX Dev options
......@@ -303,6 +284,6 @@ module.exports = function (grunt) {
grunt.registerTask('lint', ['jslint']);
grunt.registerTask('dep', ['curl', 'unzip']);
// grunt.registerTask('test', ['qunit']);
grunt.registerTask('build', ['concat', 'copy', 'uglify', 'less']);
grunt.registerTask('build', ['copy', 'uglify', 'less']);
};
......@@ -9,7 +9,7 @@
<script src="../<%= copy.rsvp.relative_dest %>" type="text/javascript"></script>
<script src="../<%= copy.uritemplate.relative_dest %>" type="text/javascript"></script>
<script src="../<%= copy.uri.relative_dest %>" type="text/javascript"></script>
<script src="../<%= concat.jio.relative_dest %>" type="text/javascript"></script>
<script src="../lib/jio.js" type="text/javascript"></script>
<!-- custom script -->
<script src="jiogadget.js" type="text/javascript"></script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment