Commit da766138 authored by Aurel's avatar Aurel

create "latest" file for nodejs

parent e032b010
...@@ -233,6 +233,10 @@ module.exports = function (grunt) { ...@@ -233,6 +233,10 @@ module.exports = function (grunt) {
// options: { // options: {
// sourceMap: "jiodate.min.map" // sourceMap: "jiodate.min.map"
// } // }
},
nodejs: {
src: "<%= concat.nodejs.dest %>",
dest: "dist/nodejs/<%= pkg.name %>-<%= pkg.version %>.min.js"
} }
}, },
...@@ -244,6 +248,12 @@ module.exports = function (grunt) { ...@@ -244,6 +248,12 @@ 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: "dist/nodejs/<%= pkg.name %>-latest.js"
}, {
src: '<%= uglify.nodejs.dest %>',
dest: "dist/nodejs/<%= pkg.name %>-latest.min.js"
}] }]
} }
}, },
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
// server.js // server.js
// where your node app starts // where your node app starts
/*-- URI = require("uri-js");
var global = self,
window = self;
self.DOMParser = {};
self.DOMError = {};
self.sessionStorage = {};
self.localStorage = {};
self.openDatabase = {};
--*/
URI = require('URI');
RSVP = require('rsvp'); RSVP = require('rsvp');
UriTemplate = require("uritemplate"); UriTemplate = require("uritemplate");
require('lz-string');
moment = require('moment'); moment = require('moment');
navigator = require('navigator'); navigator = require('navigator');
Rusha = require('rusha'); Rusha = require('rusha');
FormData = require('formdata'); FormData = require('formdata');
btoa = require('btoa');
indexedDB = require('indexeddb');
atob = require('atob'); atob = require('atob');
FileReader = require("FileReader"); FileReader = require("FileReader");
Blob = require("Blob"); Blob = require("Blob");
IDBKeyRange = require('idb-range');
crypto = require("crypto-browserify");
localStorage = require('node-localstorage'); localStorage = require('node-localstorage');
window = global; window = global;
QueryFactory = {};
Query = {}; //require('Query');
IDBOpenDBRequest = {};
DOMException = {};
DOMParser = {};
DOMError = {};
sessionStorage = {}; sessionStorage = {};
var jIO = require('jio'); var jIO = require('jio');
......
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