diff options
author | Tien Nguyen <nqtien.dev@gmail.com> | 2018-10-10 15:22:40 +0300 |
---|---|---|
committer | Tien Nguyen <nqtien.dev@gmail.com> | 2018-10-10 15:54:24 +0300 |
commit | ab9b0e141311855467c83e15cadceacef963ead1 (patch) | |
tree | b3c583b334bd0ecd5a577ecc83c49ff0aa27282f | |
parent | 304664723ee6e91dee8e86214f2d3f4c5b5044f5 (diff) | |
download | vaadin-test-branch-for-npm-release.tar.gz vaadin-test-branch-for-npm-release.zip |
Test commit for npm releasetest-branch-for-npm-release
-rw-r--r-- | .npmignore | 4 | ||||
-rw-r--r-- | bower.json | 3 | ||||
-rw-r--r-- | package.json | 10 | ||||
-rw-r--r-- | update-core-version.js | 13 |
4 files changed, 22 insertions, 8 deletions
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 @@ -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)); |