From 669f1c078f0ad0b15b9dd256a5bb5f57e5a54347 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 18 Sep 2017 07:52:37 +0200 Subject: [PATCH] package: add a license header to js bundle, fix license field in package.json --- app/package.json | 26 ++++++++++++++------------ package.json | 23 ++++++++++++++++++++--- scripts/build-js.js | 3 +++ 3 files changed, 37 insertions(+), 15 deletions(-) diff --git a/app/package.json b/app/package.json index 99167ef6..9cfc96aa 100644 --- a/app/package.json +++ b/app/package.json @@ -3,11 +3,23 @@ "productName": "Open Stage Control", "description": "A libre desktop OSC bi-directionnal control surface application.", "version": "0.20.3", - "main": "index.js", "author": { "name": "Jean-Emmanuel Doucet / AMMD", "email": "jeannot@ammd.net" }, + "keywords": [ + "osc", + "midi", + "interface", + "multi-touch" + ], + "repository": { + "type": "git", + "url": "https://github.com/jean-emmanuel/open-stage-control" + }, + "homepage": "http://osc.ammd.net/", + "license": "GPL-3.0", + "main": "index.js", "dependencies": { "vmodule":"1.0.1", "electron-localshortcut": "2.0.2", @@ -24,15 +36,5 @@ }, "engines": { "node": "6" - }, - "keywords": [ - "osc", - "interface", - "multi-touch" - ], - "repository": { - "type": "git", - "url": "https://github.com/jean-emmanuel/open-stage-control" - }, - "licence": "GPL-3.0" + } } diff --git a/package.json b/package.json index 0e410c10..267929e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,23 @@ { "name": "open-stage-control-builder", - "description": "A libre desktop OSC bi-directionnal control surface application - builder package", + "description": "[Builder package] A libre desktop OSC bi-directionnal control surface application", + "version": "0.20.3", + "author": { + "name": "Jean-Emmanuel Doucet / AMMD", + "email": "jeannot@ammd.net" + }, + "keywords": [ + "osc", + "midi", + "interface", + "multi-touch" + ], + "repository": { + "type": "git", + "url": "https://github.com/jean-emmanuel/open-stage-control" + }, + "homepage": "http://osc.ammd.net/", + "license": "GPL-3.0", "dependencies": { "autolayout": "0.7.0", "babel-plugin-transform-object-rest-spread": "6.26.0", @@ -14,6 +31,7 @@ "file-saver": "^1.3.3", "jquery": "3.2.1", "kiwi.js": "1.0.1", + "licensify": "3.1.3", "mathjs": "3.16.3", "node-sass": "^4.5.3", "nodemon": "^1.12.0", @@ -43,6 +61,5 @@ }, "engines": { "node": "6" - }, - "version": "0.20.3" + } } diff --git a/scripts/build-js.js b/scripts/build-js.js index dec2d6ab..621904a1 100644 --- a/scripts/build-js.js +++ b/scripts/build-js.js @@ -1,4 +1,5 @@ var browserify = require('browserify'), + licensify = require('licensify'), exorcist = require('exorcist'), path = require('path'), babelify = require('babelify'), @@ -11,6 +12,8 @@ if (prod) console.warn('\x1b[36m%s\x1b[0m', 'Building minified js bundle for pro b = browserify(path.resolve(__dirname + '/../src/browser/js/browser.js'), {debug:!fast}) +b.plugin(licensify) + b = b.transform(babelify, {presets: ["es2015"], plugins: ["transform-object-rest-spread"]}) if (prod) b = b.transform('uglifyify', {global: true})