Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
jio
Commits
c01c8b73
Commit
c01c8b73
authored
Mar 22, 2017
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify creation of jio for nodejs
parent
e57a472a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
19 deletions
+8
-19
Gruntfile.js
Gruntfile.js
+8
-19
No files found.
Gruntfile.js
View file @
c01c8b73
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment