Skip to content

Commit be2c746

Browse files
committed
Clean before develop and build
1 parent d21df95 commit be2c746

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
"description": "React and TypeScript: The Unofficial Documentation",
55
"version": "0.1.0",
66
"author": "Aryan Jabbari <aryanjabbari@gmail.com>",
7+
"scripts": {
8+
"predevelop": "yarn clean",
9+
"develop": "docz dev",
10+
"prebuild": "yarn clean",
11+
"build": "docz build",
12+
"clean": "rimraf ./.docz",
13+
"format": "prettier --write src/**/*.{js,jsx}",
14+
"start": "yarn develop"
15+
},
716
"dependencies": {
817
"axios": "^0.18.1",
918
"docz": "^1.3.2",
@@ -16,6 +25,7 @@
1625
"prettier": "^1.17.1",
1726
"react": "^16.9.0",
1827
"react-dom": "^16.8.6",
28+
"rimraf": "^3.0.0",
1929
"styled-components": "^4.4.0"
2030
},
2131
"keywords": [
@@ -24,13 +34,6 @@
2434
"typescript"
2535
],
2636
"license": "MIT",
27-
"scripts": {
28-
"develop": "docz dev",
29-
"build": "docz build",
30-
"format": "prettier --write src/**/*.{js,jsx}",
31-
"start": "npm run develop",
32-
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\""
33-
},
3437
"repository": {
3538
"type": "git",
3639
"url": "https://github.com/AryanJ-NYC/reactandtypescript.dev"

0 commit comments

Comments
 (0)