Skip to content

Commit 74c6575

Browse files
authored
Change to monorepo (#25)
1 parent c937b98 commit 74c6575

52 files changed

Lines changed: 218 additions & 174 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-zip.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-node@v2
1212
with:
13-
node-version: '16'
13+
node-version: "16"
1414
- run: |-
1515
yarn
16-
yarn build
17-
yarn zip
16+
yarn browser build
17+
yarn browser zip
1818
- uses: shogo82148/actions-upload-release-asset@v1
1919
with:
2020
upload_url: ${{ github.event.release.upload_url }}
21-
asset_path: dist.zip
21+
asset_path: packages/browser-extension/dist.zip

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212
# testing
1313
/coverage
1414

15-
# next.js
16-
/.next/
17-
/out/
18-
19-
# production
20-
/dist
21-
/dist.zip
22-
2315
# misc
2416
.DS_Store
2517
*.pem

.pnp.cjs

Lines changed: 123 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 28 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
plugins:
22
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
33
spec: "@yarnpkg/plugin-typescript"
4+
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
5+
spec: "@yarnpkg/plugin-workspace-tools"
46

57
yarnPath: .yarn/releases/yarn-3.1.1.cjs

package.json

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
11
{
2-
"private": true,
32
"name": "pbkit-devtools",
3+
"description": "pbkit DevTools",
44
"packageManager": "yarn@3.1.1",
5+
"workspaces": [
6+
"packages/browser-extension"
7+
],
58
"scripts": {
6-
"dev": "next dev",
7-
"build": "BASE_PATH=/next next build && next export -o dist/next && rsync -a template/ dist && rsync -a public/ dist",
8-
"zip": "cd dist && zip -r ../dist.zip ."
9-
},
10-
"dependencies": {
11-
"@types/chrome": "^0.0.171",
12-
"@types/node": "^17.0.0",
13-
"@types/react": "17.0.26",
14-
"flexlayout-react": "^0.7.3",
15-
"jotai": "^1.4.8",
16-
"next": "11.1.2",
17-
"normalize.css": "^8.0.1",
18-
"open-color": "^1.9.1",
19-
"pbkit": "^0.0.41",
20-
"react": "17.0.2",
21-
"react-dom": "17.0.2",
22-
"react-json-view": "^1.21.3",
23-
"react-select": "^5.3.2",
24-
"sass": "^1.45.0",
25-
"typescript": "4.5.4"
9+
"browser": "yarn workspace @pbkit-devtools/browser-extension",
10+
"build": "yarn workspaces foreach -pt -j unlimited run build"
2611
}
2712
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# next.js
2+
/.next/
3+
/out/
4+
5+
# production
6+
/dist
7+
/dist.zip
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@pbkit-devtools/browser-extension",
3+
"scripts": {
4+
"dev": "next dev",
5+
"build": "BASE_PATH=/next next build && next export -o dist/next && rsync -a template/ dist && rsync -a public/ dist",
6+
"zip": "cd dist && zip -r ../dist.zip ."
7+
},
8+
"dependencies": {
9+
"@types/chrome": "^0.0.171",
10+
"@types/node": "^17.0.0",
11+
"@types/react": "17.0.26",
12+
"flexlayout-react": "^0.7.3",
13+
"jotai": "^1.4.8",
14+
"next": "11.1.2",
15+
"normalize.css": "^8.0.1",
16+
"open-color": "^1.9.1",
17+
"pbkit": "^0.0.41",
18+
"react": "17.0.2",
19+
"react-dom": "17.0.2",
20+
"react-json-view": "^1.21.3",
21+
"react-select": "^5.3.2",
22+
"sass": "^1.45.0",
23+
"typescript": "4.5.4"
24+
}
25+
}

0 commit comments

Comments
 (0)