Skip to content

Commit bf1ac5f

Browse files
committed
build: cached/conditional builds
Signed-off-by: Andres Correa Casablanca <castarco@coderspirit.xyz>
1 parent 35ed7aa commit bf1ac5f

File tree

7 files changed

+1181
-1147
lines changed

7 files changed

+1181
-1147
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ root = true
44
end_of_line = lf
55
insert_final_newline = true
66

7-
[*.{css,js,cjs,mjs,json,ts,cjs,mts,jsx,tsx,md}]
7+
[*.{css,js,cjs,mjs,json,ts,cjs,mts,jsx,tsx,md,sh}]
88
charset = utf-8
99
indent_style = tab
1010
indent_size = 2

@beautiful-tree/algorithms/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"dist"
3838
],
3939
"scripts": {
40-
"build": "rm -rf dist && rollup --config rollup.config.prod.mjs",
40+
"build": "../../scripts/build.sh algorithms",
4141
"build-storybook": "storybook build",
4242
"lint": "tsc && eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0 && publint",
4343
"lint:eslint": "eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0",
@@ -50,20 +50,20 @@
5050
},
5151
"devDependencies": {
5252
"@arethetypeswrong/cli": "^0.10.2",
53-
"@beautiful-tree/types": "workspace:0.2.0",
53+
"@beautiful-tree/types": "workspace:*",
5454
"@coderspirit/eslint-config": "^1.2.1",
5555
"@rollup/plugin-terser": "^0.4.3",
5656
"@rollup/plugin-typescript": "^11.1.3",
57-
"@types/node": "^20.6.1",
58-
"@typescript-eslint/parser": "^6.7.0",
59-
"@vitest/coverage-v8": "^0.34.4",
60-
"eslint": "^8.49.0",
57+
"@types/node": "^20.6.4",
58+
"@typescript-eslint/parser": "^6.7.2",
59+
"@vitest/coverage-v8": "^0.34.5",
60+
"eslint": "^8.50.0",
6161
"prettier": "^3.0.3",
6262
"publint": "^0.2.2",
63-
"rollup": "^3.29.1",
63+
"rollup": "^3.29.3",
6464
"rollup-plugin-dts": "^5.3.1",
6565
"tslib": "^2.6.2",
6666
"typescript": "^5.2.2",
67-
"vitest": "^0.34.4"
67+
"vitest": "^0.34.5"
6868
}
6969
}

@beautiful-tree/react/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"dist"
3838
],
3939
"scripts": {
40-
"build": "rm -rf dist && rollup --config rollup.config.prod.mjs",
40+
"build": "../../scripts/build.sh react",
4141
"build-storybook": "storybook build",
4242
"lint": "tsc && eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0 && publint",
4343
"lint:eslint": "eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0",
@@ -51,41 +51,41 @@
5151
},
5252
"devDependencies": {
5353
"@arethetypeswrong/cli": "^0.10.2",
54-
"@beautiful-tree/algorithms": "workspace:0.2.0",
55-
"@beautiful-tree/types": "workspace:0.2.0",
54+
"@beautiful-tree/algorithms": "workspace:*",
55+
"@beautiful-tree/types": "workspace:*",
5656
"@coderspirit/eslint-config": "^1.2.1",
5757
"@rollup/plugin-node-resolve": "^15.2.1",
5858
"@rollup/plugin-terser": "^0.4.3",
5959
"@rollup/plugin-typescript": "^11.1.3",
60-
"@storybook/addon-essentials": "^7.4.2",
61-
"@storybook/addon-interactions": "^7.4.2",
62-
"@storybook/addon-links": "^7.4.2",
63-
"@storybook/blocks": "^7.4.2",
64-
"@storybook/react": "^7.4.2",
65-
"@storybook/react-vite": "^7.4.2",
60+
"@storybook/addon-essentials": "^7.4.4",
61+
"@storybook/addon-interactions": "^7.4.4",
62+
"@storybook/addon-links": "^7.4.4",
63+
"@storybook/blocks": "^7.4.4",
64+
"@storybook/react": "^7.4.4",
65+
"@storybook/react-vite": "^7.4.4",
6666
"@storybook/testing-library": "^0.2.1",
6767
"@testing-library/react": "^14.0.0",
68-
"@types/node": "^20.6.1",
69-
"@types/react": "^18.2.21",
68+
"@types/node": "^20.6.4",
69+
"@types/react": "^18.2.22",
7070
"@types/react-dom": "^18.2.7",
71-
"@typescript-eslint/parser": "^6.7.0",
72-
"@vitest/coverage-v8": "^0.34.4",
73-
"eslint": "^8.49.0",
71+
"@typescript-eslint/parser": "^6.7.2",
72+
"@vitest/coverage-v8": "^0.34.5",
73+
"eslint": "^8.50.0",
7474
"eslint-plugin-react": "^7.33.2",
7575
"eslint-plugin-react-hooks": "^4.6.0",
7676
"eslint-plugin-react-refresh": "^0.4.3",
77-
"eslint-plugin-storybook": "^0.6.13",
77+
"eslint-plugin-storybook": "^0.6.14",
7878
"jsdom": "^22.1.0",
7979
"prettier": "^3.0.3",
8080
"publint": "^0.2.2",
8181
"react": "^18.2.0",
8282
"react-dom": "^18.2.0",
83-
"rollup": "^3.29.1",
83+
"rollup": "^3.29.3",
8484
"rollup-plugin-dts": "^5.3.1",
85-
"storybook": "^7.4.2",
85+
"storybook": "^7.4.4",
8686
"tslib": "^2.6.2",
8787
"typescript": "^5.2.2",
88-
"vitest": "^0.34.4"
88+
"vitest": "^0.34.5"
8989
},
9090
"peerDependencies": {
9191
"react": "^18.2.0",

@beautiful-tree/types/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dist"
1818
],
1919
"scripts": {
20-
"build": "rm -rf dist && rollup --config rollup.config.prod.mjs",
20+
"build": "../../scripts/build.sh types",
2121
"lint": "tsc && eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0 && publint",
2222
"lint:eslint": "eslint . --ext ts,mts,tsx --report-unused-disable-directives --max-warnings 0",
2323
"lint:publint": "publint",
@@ -30,12 +30,12 @@
3030
"@arethetypeswrong/cli": "^0.10.2",
3131
"@coderspirit/eslint-config": "^1.2.1",
3232
"@rollup/plugin-typescript": "^11.1.3",
33-
"@types/node": "^20.6.1",
34-
"@typescript-eslint/parser": "^6.7.0",
35-
"eslint": "^8.49.0",
33+
"@types/node": "^20.6.4",
34+
"@typescript-eslint/parser": "^6.7.2",
35+
"eslint": "^8.50.0",
3636
"prettier": "^3.0.3",
3737
"publint": "^0.2.2",
38-
"rollup": "^3.29.1",
38+
"rollup": "^3.29.3",
3939
"rollup-plugin-dts": "^5.3.1",
4040
"tslib": "^2.6.2",
4141
"typescript": "^5.2.2"

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"name": "beautiful-tree",
3-
"version": "0.1.3",
3+
"version": "0.2.0",
44
"private": true,
55
"author": "Andres Correa Casablanca <castarco@coderspirit.xyz>",
66
"license": "MIT",
77
"scripts": {
8-
"install-githooks": "if [ -d .git ]; then git config core.hooksPath .hooks; fi"
8+
"build": "pnpm -r run build",
9+
"install-githooks": "if [ -d .git ]; then git config core.hooksPath .hooks; fi",
10+
"test": "pnpm -r run test"
911
}
1012
}

0 commit comments

Comments
 (0)