From ab9b0e141311855467c83e15cadceacef963ead1 Mon Sep 17 00:00:00 2001 From: Tien Nguyen Date: Wed, 10 Oct 2018 15:22:40 +0300 Subject: Test commit for npm release --- .npmignore | 4 ++++ bower.json | 3 ++- package.json | 10 +++++++--- update-core-version.js | 13 +++++++++---- 4 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..f87db36 --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +bower_components +.travis.yml +bower.json +update-core-version.js diff --git a/bower.json b/bower.json index b639b13..bd74666 100644 --- a/bower.json +++ b/bower.json @@ -15,7 +15,8 @@ "node_modules", "bower_components", "test", - "tests" + "tests", + "update-core-version.js" ], "dependencies": { "vaadin-core": "12.0.0-alpha3", diff --git a/package.json b/package.json index 3a1d7d1..b4566af 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,15 @@ { - "name": "vaadin", + "name": "@vaadin/vaadin", "version": "12.0.0-alpha3", "description": "Vaadin Elements is an evolving set of open source custom HTML elements, built using Polymer, for building mobile and desktop web applications in modern browsers.", "author": "Vaadin Ltd", "license": "(Apache-2.0 OR SEE LICENSE IN https://vaadin.com/license/cval-3.0)", "dependencies": { - "bower": "latest" + "@vaadin/vaadin-core": "12.0.0-alpha3", + "@vaadin/vaadin-board": "2.1.0-alpha1", + "@vaadin/vaadin-charts": "6.2.0-alpha1", + "@vaadin/vaadin-confirm-dialog": "1.1.0-alpha1", + "@vaadin/vaadin-cookie-consent": "1.1.0-alpha2" }, "scripts": { "version": "node update-core-version.js && git add bower.json" @@ -20,4 +24,4 @@ "webcomponents", "web-components" ] -} +} \ No newline at end of file diff --git a/update-core-version.js b/update-core-version.js index a284e4e..a63188e 100644 --- a/update-core-version.js +++ b/update-core-version.js @@ -1,8 +1,13 @@ var fs = require('fs'); -const fileName = './bower.json'; -var bowerjson = require(fileName); +const fileNameBower = './bower.json'; +const fileNamePackage = './package.json'; +var bowerjson = require(fileNameBower); +var npmjson = require(fileNamePackage); -const version = require('./package.json').version; +const version = npmjson.version; bowerjson.dependencies["vaadin-core"] = version; +npmjson.dependencies["@vaadin/vaadin-core"] = version; + +fs.writeFileSync(fileNameBower, JSON.stringify(bowerjson, null, 2)); +fs.writeFileSync(fileNamePackage, JSON.stringify(npmjson, null, 2)); -fs.writeFileSync(fileName, JSON.stringify(bowerjson, null, 2)); -- cgit v1.2.3