Commit d74b545d authored by Aurel's avatar Aurel

make distributable package for clearroad on nodejs

parent 46a642ae
......@@ -209,7 +209,7 @@ module.exports = function (grunt) {
'src/jio.storage/localstorage.js',
'src/jio.storage/mappingstorage.js'
],
dest: 'dist/nodejs/<%= pkg.name %>-<%= pkg.version %>.js'
dest: 'nodejs/lib/jio/<%= pkg.name %>-<%= pkg.version %>.js'
// dest: 'jio.js'
}
},
......@@ -238,7 +238,7 @@ module.exports = function (grunt) {
},
nodejs: {
src: "<%= concat.nodejs.dest %>",
dest: "dist/nodejs/<%= pkg.name %>-<%= pkg.version %>.min.js"
dest: "nodejs/lib/jio/<%= pkg.name %>-<%= pkg.version %>.min.js"
}
},
......@@ -252,10 +252,10 @@ module.exports = function (grunt) {
dest: "dist/<%= pkg.name %>-latest.min.js"
}, {
src: '<%= uglify.nodejs.src %>',
dest: "dist/nodejs/<%= pkg.name %>-latest.js"
dest: "nodejs/lib/jio/<%= pkg.name %>.js"
}, {
src: '<%= uglify.nodejs.dest %>',
dest: "dist/nodejs/<%= pkg.name %>-latest.min.js"
dest: "nodejs/lib/jio/<%= pkg.name %>.min.js"
}]
}
},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "clearroad",
"version": "1.0.0",
"description": "ClearRoad Lib based on JIO",
"main": "clearroad.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "lab.nexedi.com/nexedi/jio"
},
"keywords": [
"clearroad",
"jio"
],
"author": "Aurélien Calonne",
"license": "ISC"
}
{
"name": "html5",
"version": "1.0.0",
"description": "",
"main": "html5.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
This diff is collapsed.
This diff is collapsed.
{
"name": "jio",
"version": "1.0.0",
"description": "jIO for nodejs",
"main": "jio.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://lab.nexedi.com/nexedi/jio"
},
"keywords": [
"jio"
],
"author": "Aurélien Calonne",
"license": "ISC"
}
This diff is collapsed.
{
"name": "moment",
"version": "1.0.0",
"description": "",
"main": "moment-2.13.0.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
{
"//1": "describes your app and its dependencies",
"//2": "https://docs.npmjs.com/files/package.json",
"//3": "updating this file will download and update your packages",
"name": "clearroad-nodejs",
"version": "0.0.1",
"description": "ClearRoad API on Node.js",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"express": "^4.14.1",
"stream-buffer": "latest",
"xhr2": "latest",
"rsvp": "git+https://lab.nexedi.com/nexedi/rsvp.js.git",
"uritemplate": "latest",
"moment": "file:lib/moment",
"navigator": "latest",
"rusha": "latest",
"form-data": "latest",
"atob": "latest",
"html5": "file:lib/html5",
"node-localstorage": "latest",
"btoa": "latest",
"xhr2": "latest",
"stream-buffers": "latest",
"clearroad": "file:lib/clearroad",
"jio": "file:lib/jio",
"urijs": "latest"
},
"engines": {
"node": "6.9.x"
},
"repository": {
"url": ""
},
"license": "",
"keywords": [
"node",
"jio",
"clearroad"
]
}
......@@ -14,6 +14,7 @@ global.Blob = require("html5").Blob;
global.localStorage = require('node-localstorage');
global.btoa = require('btoa');
global.XMLHttpRequest = require('xhr2');
global.StreamBuffers = require('stream-buffers');
global.window = global;
global.sessionStorage = {};
......@@ -24,7 +25,7 @@ var ClearRoadBillingPeriodRegistration = require("clearroad");
var cr = new ClearRoadBillingPeriodRegistration();
console.log("init");
cr.post({
"reference" : "Q42",
"reference" : "Q421",
"start_date" : "2017-02-01T00:00:00Z",
"stop_date" : "2017-03-01T00:00:00Z"
}).push(function (){
......
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