Skip to content

Commit

Permalink
chore: use workspaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 14, 2022
1 parent dc96abb commit 6789f87
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 40 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -11,10 +11,10 @@ jobs:
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16

- name: Look Changelog
uses: jaywcjlove/changelog-generator@v1.5.0
Expand All @@ -30,13 +30,12 @@ jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16

- run: npm install --unsafe-perm
- run: npm run hoist
- run: npm install
- run: npm run kkt:build
- run: npm run lib:build

Expand Down
20 changes: 1 addition & 19 deletions lerna.json
@@ -1,23 +1,5 @@
{
"version": "independent",
"packages": ["core", "example/*", "packages/*"],
"command": {
"create": {
"homepage": "https://github.com/kktjs/kkt",
"license": "MIT"
},
"version": {
"allowBranch": "master",
"exact": true,
"message": "chore(release): %s"
},
"bootstrap": {
"npmClientArgs": ["--no-package-lock"],
"yarnClientArgs": ["--no-yarn-lock"],
"forceLocal": true
},
"publish": {
"ignorePrepublish": true
}
}
"useWorkspaces": true
}
27 changes: 14 additions & 13 deletions package.json
@@ -1,5 +1,4 @@
{
"name": "kkt",
"description": "Create React apps with no build configuration, Cli tool for creating react apps.",
"author": "Kenny Wong <wowohoo@qq.com> (https://github.com/jaywcjlove)",
"private": true,
Expand All @@ -25,12 +24,6 @@
"kkt:coverage": "lerna exec \"tsbb test --coverage\" --scope kkt",
"kkt:<<<-----": "<<<<<<<<<<<<<<<<<<<<<<<<<<<",
"build": "npm run kkt:build && npm run lib:build",
"hoist": "lerna bootstrap --hoist",
"bootstrap": "lerna bootstrap",
"bootstrap:kkt": "lerna bootstrap --scope kkt",
"bootstrap:basic": "lerna bootstrap --scope @template/basic",
"bootstrap:markdown": "lerna bootstrap --scope @template/markdown",
"bootstrap:example": "lerna bootstrap --scope @template/*",
"version": "lerna version --no-changelog --no-git-tag-version --no-push",
"publish": "npm run build && lerna publish from-package",
"ci:publish": "lerna publish from-package --yes",
Expand All @@ -42,16 +35,24 @@
"lerna": "lerna"
},
"engines": {
"node": ">=12.0.0"
"node": ">=16.0.0"
},
"workspaces": {
"packages": [
"core",
"example/*",
"packages/*"
]
},
"lint-staged": {
"*.{js,jsx,tsx,ts,less,md,json}": "prettier --write"
},
"devDependencies": {
"husky": "~7.0.4",
"lerna": "~4.0.0",
"lint-staged": "~12.3.7",
"prettier": "~2.6.0",
"tsbb": "~3.7.0"
"@babel/runtime": "^7.18.3",
"husky": "~8.0.0",
"lerna": "~5.1.0",
"lint-staged": "~13.0.0",
"prettier": "~2.7.0",
"tsbb": "^3.7.5"
}
}
3 changes: 3 additions & 0 deletions packages/less-modules/package.json
Expand Up @@ -17,6 +17,9 @@
"lib",
"src"
],
"scripts": {
"watch": "tsbb watch --no-esm"
},
"dependencies": {
"less": "^4.1.2",
"less-loader": "^10.2.0"
Expand Down
3 changes: 3 additions & 0 deletions packages/raw-modules/package.json
Expand Up @@ -16,6 +16,9 @@
"lib",
"src"
],
"scripts": {
"watch": "tsbb watch --no-esm"
},
"dependencies": {
"raw-loader": "^4.0.2"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/react-library/package.json
Expand Up @@ -20,6 +20,9 @@
"lib",
"src"
],
"scripts": {
"watch": "tsbb watch --no-esm"
},
"dependencies": {
"css-minimizer-webpack-plugin": "~3.4.1"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/stylus-modules/package.json
Expand Up @@ -18,6 +18,9 @@
"lib",
"src"
],
"scripts": {
"watch": "tsbb watch --no-esm"
},
"dependencies": {
"stylus": "^0.57.0",
"stylus-loader": "^6.2.0"
Expand Down

0 comments on commit 6789f87

Please sign in to comment.