Skip to content

Commit

Permalink
use release-it and cross-zip
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Dec 1, 2018
1 parent b08e9bf commit 24f1332
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tagName": "v%s"
},
"npm": {
"publish": false
"publish": true
},
"github": {
"release": true,
Expand Down
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
},
"homepage": "https://lineup.js.org",
"main": "build/LineUpJS.js",
"jsnext:main": "build/LineUpJS.js",
"module": "build/LineUpJS.js",
"unpkg": "build/LineUpJS.js",
"types": "src/index.d.ts",
Expand Down Expand Up @@ -58,7 +57,7 @@
"clean:compile": "rimraf .cache-loader src/**/*.map src/**/*.js src/**/*.d.ts tests/**/*.js tests/**/*.map tests/**/*.d.ts demo/*.js demo/*.map demo/*.d.ts",
"compile": "tsc",
"compile:dev": "tsc -p ./tsconfig.dev.json",
"lint": "tslint --project tsconfig.json -c tslint.json && stylelint src/**/*.scss",
"lint": "tslint -p tsconfig.json -c tslint.json && stylelint src/**/*.scss",
"docs": "npm run clean:compile && typedoc --tsconfig tsconfig.dev.json --out ./build/docs/ --plugin typedoc-plugin-as-member-of src tsd.d.ts",
"pretest": "npm run clean && npm run compile",
"test": "jest",
Expand All @@ -70,15 +69,16 @@
"build": "npm run build:prod",
"watch": "webpack --mode development --watch --devtool source-map",
"start": "webpack-dev-server --mode development --devtool source-map",
"predist": "npm run build && npm run docs",
"dist": "mkdirp dist && cd build && tar cvzf ../dist/lineupjs.tar.gz --exclude \"docs\" * && cd ..",
"predist": "npm run build",
"dist": "mkdirp dist && cross-zip ./build ./dist/lineupjs.zip",
"postdist": "npm run docs && cross-zip ./build/docs ./dist/lineupjs_docs.zip",
"preversion": "npm test",
"prepare": "echo 'dummy prepare since prepack has no dev dependencies'",
"prepack": "npm run clean && npm run compile && npm run build:prod",
"release:major": "npm version major && npm publish && git push --follow-tags",
"release:minor": "npm version minor && npm publish && git push --follow-tags",
"release:patch": "npm version patch && npm publish && git push --follow-tags",
"release:pre": "npm version prerelease && npm publish --tag=next && git push --follow-tags"
"release:major": "release-it major",
"release:minor": "release-it minor",
"release:patch": "release-it patch",
"release:pre": "release-it --preRelease=alpha --npm.tag=next"
},
"repository": {
"type": "git",
Expand All @@ -96,6 +96,7 @@
"@types/jest": "^23.3.5",
"cache-loader": "^1.2.2",
"css-loader": "^1.0.0",
"cross-zip-cli": "^1.0.0",
"d3-array": "^1.2.4",
"d3-color": "^1.2.3",
"d3-dispatch": "^1.0.5",
Expand All @@ -116,6 +117,7 @@
"mkdirp": "^0.5.1",
"node-sass": "^4.9.4",
"raw-loader": "^1.0.0-beta.0",
"release-it": "^8.0.1",
"rimraf": "^2.6.2",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
Expand Down

0 comments on commit 24f1332

Please sign in to comment.