Commit c01c8b73 authored by Aurel's avatar Aurel

simplify creation of jio for nodejs

parent e57a472a
...@@ -199,7 +199,7 @@ module.exports = function (grunt) { ...@@ -199,7 +199,7 @@ module.exports = function (grunt) {
nodejs: { nodejs: {
// duplicate files are ignored // duplicate files are ignored
src: [ src: [
// require for nodejs // all the require for nodejs
'src/include-nodejs.js', 'src/include-nodejs.js',
// queries // queries
...@@ -211,7 +211,6 @@ module.exports = function (grunt) { ...@@ -211,7 +211,6 @@ module.exports = function (grunt) {
'src/jio.date/*.js', 'src/jio.date/*.js',
'src/jio-nodejs.js', 'src/jio-nodejs.js',
// 'src/jio.js',
'src/jio.storage/replicatestorage.js', 'src/jio.storage/replicatestorage.js',
'src/jio.storage/uuidstorage.js', 'src/jio.storage/uuidstorage.js',
...@@ -222,8 +221,7 @@ module.exports = function (grunt) { ...@@ -222,8 +221,7 @@ module.exports = function (grunt) {
'src/jio.storage/localstorage.js', 'src/jio.storage/localstorage.js',
'src/jio.storage/mappingstorage.js' 'src/jio.storage/mappingstorage.js'
], ],
dest: 'nodejs/lib/jio/<%= pkg.name %>-<%= pkg.version %>.js' dest: 'dist/nodejs/jio.js'
// dest: 'jio.js'
} }
}, },
uglify: { uglify: {
...@@ -248,10 +246,6 @@ module.exports = function (grunt) { ...@@ -248,10 +246,6 @@ module.exports = function (grunt) {
// options: { // options: {
// sourceMap: "jiodate.min.map" // sourceMap: "jiodate.min.map"
// } // }
},
nodejs: {
src: "<%= concat.nodejs.dest %>",
dest: "nodejs/lib/jio/<%= pkg.name %>-<%= pkg.version %>.min.js"
} }
}, },
...@@ -263,15 +257,6 @@ module.exports = function (grunt) { ...@@ -263,15 +257,6 @@ module.exports = function (grunt) {
}, { }, {
src: '<%= uglify.jio.dest %>', src: '<%= uglify.jio.dest %>',
dest: "dist/<%= pkg.name %>-latest.min.js" dest: "dist/<%= pkg.name %>-latest.min.js"
}, {
src: '<%= uglify.nodejs.src %>',
dest: "nodejs/lib/jio/<%= pkg.name %>.js"
}, {
src: '<%= uglify.nodejs.src %>',
dest: "nodejs/lib/jio/jio.js"
}, {
src: '<%= uglify.nodejs.dest %>',
dest: "nodejs/lib/jio/<%= pkg.name %>.min.js"
}] }]
} }
}, },
...@@ -281,8 +266,9 @@ module.exports = function (grunt) { ...@@ -281,8 +266,9 @@ module.exports = function (grunt) {
// grunt doesn't like requirejs // grunt doesn't like requirejs
files: ['test/tests.html', 'test/tests-nodejs.html'] files: ['test/tests.html', 'test/tests-nodejs.html']
}, },
// test jio with nodejs
qunitnode: { qunitnode: {
all: [ "nodejs/lib/jio/jio.js", all: [ "dist/nodejs/jio.js",
"test/jio.storage/memorystorage.tests.js", "test/jio.storage/memorystorage.tests.js",
"test/jio.storage/replicatestorage.tests.js", "test/jio.storage/replicatestorage.tests.js",
"test/jio.storage/uuidstorage.tests.js", "test/jio.storage/uuidstorage.tests.js",
...@@ -291,7 +277,10 @@ module.exports = function (grunt) { ...@@ -291,7 +277,10 @@ module.exports = function (grunt) {
"test/jio.storage/localstorage.tests.js", "test/jio.storage/localstorage.tests.js",
"test/jio.storage/documentstorage.tests.js", "test/jio.storage/documentstorage.tests.js",
"test/jio.storage/erp5storage.tests.js", "test/jio.storage/erp5storage.tests.js",
] ],
options : {
force: true
}
}, },
watch: { watch: {
......
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