From f5c72cb3f19fb81c7c3bb68d9c3887c83532cfdf Mon Sep 17 00:00:00 2001 From: jakeniemiec Date: Fri, 21 Jul 2017 16:51:26 -0500 Subject: [PATCH] fix: semantic releases --- .travis.yml | 15 +++++++++++++++ package.json | 11 +++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..58a4e3e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: node_js +cache: + directories: + - node_modules +notifications: + email: false +node_js: + - '*' +before_script: + - npm prune +after_success: + - npm run semantic-release +branches: + except: + - /^v\d+\.\d+\.\d+$/ diff --git a/package.json b/package.json index e5aafcd..2a1e326 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "webpack-chunk-manifest-plugin", - "version": "3.0.0", + "version": "0.0.0", "description": "Allows exporting a manifest that maps chunk ids to their output files, instead of keeping the mapping inside the webpack bootstrap.", "main": "lib/ChunkManifestPlugin.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"no test specified\" && true", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "author": "Jake Niemiec (https://twitter.com/jake_niemiec)", "license": "MIT", @@ -16,13 +17,15 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/jakeNiemiec/webpack-chunk-manifest-plugin.git" + "url": "https://github.com/jakeNiemiec/webpack-chunk-manifest-plugin.git" }, "bugs": { "url": "https://github.com/jakeNiemiec/webpack-chunk-manifest-plugin/issues" }, "homepage": "https://github.com/jakeNiemiec/webpack-chunk-manifest-plugin#readme", - "devDependencies": {}, + "devDependencies": { + "semantic-release": "^6.3.6" + }, "keywords": [ "webpack", "webpack3",