Преглед изворни кода

Add release-(major|minor|patch) scripts

Kevin van Zonneveld пре 9 година
родитељ
комит
875c8be8de
2 измењених фајлова са 5 додато и 1 уклоњено
  1. 1 1
      CHANGELOG.md
  2. 4 0
      package.json

+ 1 - 1
CHANGELOG.md

@@ -61,7 +61,7 @@ Ideas that will be planned and find their way into a release at one point
 ## 0.0.3 (March 01, 2016)
 ## 0.0.3 (March 01, 2016)
 
 
 - [ ] core: push out v0.0.3 (@kvz)
 - [ ] core: push out v0.0.3 (@kvz)
-- [ ] build: release-(major|minor|patch): git tag && npm publish (@kvz)
+- [x] build: release-(major|minor|patch): git tag && npm publish (@kvz)
 - [x] core: Allow users to set DOM elements or other plugins as targets (@arturi)
 - [x] core: Allow users to set DOM elements or other plugins as targets (@arturi)
 - [x] core: Create a progressbar/spinner/etc plugin (#18, @arturi)
 - [x] core: Create a progressbar/spinner/etc plugin (#18, @arturi)
 - [x] core: Decide on how we ship default styles: separate css file, inline (@kvz, @hedgerh, @arturi, @tim-kos)
 - [x] core: Decide on how we ship default styles: separate css file, inline (@kvz, @hedgerh, @arturi, @tim-kos)

+ 4 - 0
package.json

@@ -20,6 +20,10 @@
       "build:bundle:fullpath": "env OUT=uppy-fp.js ./bin/build-bundle --full-paths",
       "build:bundle:fullpath": "env OUT=uppy-fp.js ./bin/build-bundle --full-paths",
       "build:bundle:min": "./bin/build-bundle",
       "build:bundle:min": "./bin/build-bundle",
       "build:bundle": "./bin/build-bundle && ./bin/build-bundle-locale",
       "build:bundle": "./bin/build-bundle && ./bin/build-bundle-locale",
+    "release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && git push && git push --tags && npm publish",
+      "release:major": "env SEMANTIC=major npm run release",
+      "release:minor": "env SEMANTIC=minor npm run release",
+      "release:patch": "env SEMANTIC=patch npm run release",
     "watch": "parallelshell 'npm run watch:js' 'npm run watch:css' && node website/update.js",
     "watch": "parallelshell 'npm run watch:js' 'npm run watch:css' && node website/update.js",
       "watch:fast": "parallelshell 'npm run watch:css' 'npm run web:preview'",
       "watch:fast": "parallelshell 'npm run watch:css' 'npm run web:preview'",
       "watch:js": "nodemon --watch src --ext js -x 'npm run build:bundle && node website/update.js'",
       "watch:js": "nodemon --watch src --ext js -x 'npm run build:bundle && node website/update.js'",