Skip to content

Commit

Permalink
build: improve release script
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Aug 9, 2020
1 parent 2a4b538 commit fce369b
Show file tree
Hide file tree
Showing 7 changed files with 261 additions and 18 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -17,3 +17,9 @@ Use a static files http server, for example: `http-server -p 8080`
## lint code

`yarn lint`

## release

Make sure you have the permission to execute `git push` and `npm publish` first.

`yarn release`
6 changes: 5 additions & 1 deletion clean-release.config.ts
@@ -1,4 +1,6 @@
export default {
import { Configuration } from 'clean-release'

const config: Configuration = {
include: [
'packages/*/dist/*',
'packages/*/package.json',
Expand All @@ -22,3 +24,5 @@ export default {
`git push origin v${version}`
]
}

export default config
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -8,7 +8,8 @@
"lint": "clean-scripts lint",
"test": "clean-scripts test",
"fix": "clean-scripts fix",
"watch": "clean-scripts watch"
"watch": "clean-scripts watch",
"release": "clean-release"
},
"repository": {
"type": "git",
Expand All @@ -31,6 +32,7 @@
"@typescript-eslint/parser": "3.8.0",
"autoprefixer": "9.8.6",
"clean-css-cli": "4.3.0",
"clean-release": "2.14.0",
"clean-scripts": "1.17.0",
"cross-env": "7.0.2",
"eslint": "7.6.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Expand Up @@ -14,10 +14,10 @@
"url": "https://github.com/plantain-00/pagination-js-component/issues"
},
"homepage": "https://github.com/plantain-00/pagination-js-component#readme",
"files": [
"dist"
],
"dependencies": {
"tslib": "2"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}
6 changes: 3 additions & 3 deletions packages/react/package.json
Expand Up @@ -17,9 +17,6 @@
"url": "https://github.com/plantain-00/pagination-js-component/issues"
},
"homepage": "https://github.com/plantain-00/pagination-js-component#readme",
"files": [
"dist"
],
"dependencies": {
"pagination-js-component": "^4.5.1",
"react": "16",
Expand All @@ -28,5 +25,8 @@
"devDependencies": {
"@types/react": "16.9.44",
"@types/react-dom": "16.9.8"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}
6 changes: 3 additions & 3 deletions packages/vue/package.json
Expand Up @@ -17,12 +17,12 @@
"url": "https://github.com/plantain-00/pagination-js-component/issues"
},
"homepage": "https://github.com/plantain-00/pagination-js-component#readme",
"files": [
"dist"
],
"dependencies": {
"pagination-js-component": "^4.5.1",
"vue": "2",
"vue-class-component": "7"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}

0 comments on commit fce369b

Please sign in to comment.