Skip to content

Commit 7c20a63

Browse files
committed
#63 add clean and build
1 parent 19634ef commit 7c20a63

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

package.json

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,31 @@
2626
"node": ">=10"
2727
},
2828
"scripts": {
29-
"prepare": "dts build",
30-
"link:lib": "yarn build && yarn unlink; yarn link",
31-
"install:example": "yarn link:lib && cd example && yarn && yarn link react-sketch-canvas",
32-
"lint": "dts lint src",
33-
"watch:lib": "dts watch",
34-
"watch:example": "yarn build && cd example && yarn start",
35-
"watch": "concurrently \"yarn:watch:example\" \"yarn:watch:lib\"",
36-
"start:example": "cross-env BROWSER=none start-server-and-test watch http://localhost:3000",
37-
"start:example:ci": "cross-env BROWSER=none start-server-and-test watch:example http://localhost:3000",
38-
"build": "dts build",
39-
"build:prod": "cross-env NODE_ENV=production dts build",
40-
"build:example": "cd example && cross-env NODE_ENV=production yarn build",
41-
"size": "size-limit",
4229
"analyze": "size-limit --why",
43-
"unit-test": "dts test --passWithNoTests",
44-
"unit-test:ci": "nyc --silent dts test --passWithNoTests --ci --coverage",
45-
"cypress": "cypress open",
46-
"e2e": " yarn start:example cypress",
30+
"build:example": "cd example && cross-env NODE_ENV=production yarn build",
31+
"build:prod": "rimraf clean && cross-env NODE_ENV=production dts build",
32+
"build": "dts build",
33+
"clean": "rimraf dist/",
4734
"cypress:ci": "cypress run",
35+
"cypress": "cypress open",
4836
"e2e:ci": "nyc --silent --no-clean yarn start:example:ci cypress:ci",
49-
"test": "yarn e2e:ci",
50-
"release": "yarn test && release-it",
37+
"e2e": " yarn start:example cypress",
38+
"install:example": "yarn link:lib && cd example && yarn && yarn link react-sketch-canvas",
39+
"link:lib": "yarn build && yarn unlink; yarn link",
40+
"lint": "dts lint src",
41+
"prepare": "dts build",
42+
"release:beta": "yarn test && release-it --preRelease=beta",
5143
"release:notest": "release-it",
52-
"release:beta": "yarn test && release-it --preRelease=beta"
44+
"release": "yarn test && release-it",
45+
"size": "size-limit",
46+
"start:example:ci": "cross-env BROWSER=none start-server-and-test watch:example http://localhost:3000",
47+
"start:example": "cross-env BROWSER=none start-server-and-test watch http://localhost:3000",
48+
"test": "yarn e2e:ci",
49+
"unit-test:ci": "nyc --silent dts test --passWithNoTests --ci --coverage",
50+
"unit-test": "dts test --passWithNoTests",
51+
"watch:example": "yarn build && cd example && yarn start",
52+
"watch:lib": "dts watch",
53+
"watch": "concurrently \"yarn:watch:example\" \"yarn:watch:lib\""
5354
},
5455
"husky": {
5556
"hooks": {
@@ -97,6 +98,7 @@
9798
"react-dom": "^17.0.2",
9899
"react-is": "^17.0.2",
99100
"release-it": "^14.11.6",
101+
"rimraf": "^3.0.2",
100102
"size-limit": "^6.0.3",
101103
"start-server-and-test": "^1.14.0",
102104
"tslib": "^2.3.1",

0 commit comments

Comments
 (0)