Skip to content

Commit

Permalink
chore: remove lerna and add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Jul 19, 2020
1 parent 5d8a9dd commit f8ec375
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 3,243 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ before_install:
install:
- yarn install --frozen-lockfile
script:
- npm run bootstrap
- npm run build
- npm run lint
- npm run test
Expand Down
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ install:
test_script:
- node --version
- npm --version
- npm run bootstrap
- npm run build
- npm run lint
- npm run test
Expand Down
24 changes: 24 additions & 0 deletions clean-release.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export default {
include: [
'packages/*/dist/*',
'packages/*/package.json',
'packages/*/README.md',
],
exclude: [
],
askVersion: true,
changesGitStaged: true,
postScript: ({ dir, tag, version, effectedWorkspacePaths }) => [
...effectedWorkspacePaths.map((w) => w.map((e) => {
return tag
? `npm publish "${dir}/${e}" --access public --tag ${tag}`
: `npm publish "${dir}/${e}" --access public`
})),
`git-commits-to-changelog --release ${version}`,
'git add CHANGELOG.md',
`git commit -m "${version}"`,
`git tag -a v${version} -m 'v${version}'`,
'git push',
`git push origin v${version}`
]
}
6 changes: 5 additions & 1 deletion clean-scripts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ export default {
less: `stylelint ${lessFiles}`,
export: `no-unused-export ${tsFiles} ${lessFiles} --exclude ${excludeTsFiles}`,
markdown: `markdownlint README.md`,
typeCoverage: 'lerna exec -- type-coverage -p src --strict'
typeCoverage: {
core: 'cd packages/core && type-coverage -p src --strict',
vue: 'cd packages/vue && type-coverage -p src --strict',
react: 'cd packages/react && type-coverage -p src --strict'
}
},
test: [],
fix: {
Expand Down
16 changes: 0 additions & 16 deletions lerna.json

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"private": true,
"description": "A vuejs and reactjs select component.",
"scripts": {
"bootstrap": "lerna bootstrap -- --frozen-lockfile",
"build": "clean-scripts build",
"dev": "cross-env NODE_ENV=development clean-scripts build",
"lint": "clean-scripts lint.ts",
Expand Down Expand Up @@ -40,7 +39,6 @@
"file2variable-cli": "1.12.1",
"github-fork-ribbon-css": "0.2.3",
"http-server": "0.12.3",
"lerna": "3.22.1",
"less": "3.12.2",
"markdownlint-cli": "0.23.2",
"no-unused-export": "1.11.1",
Expand Down

0 comments on commit f8ec375

Please sign in to comment.