Skip to content

Commit 5079a2e

Browse files
committed
setup lerna
1 parent 5d07733 commit 5079a2e

File tree

6 files changed

+24
-39
lines changed

6 files changed

+24
-39
lines changed

lerna.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "0.0.0"
6+
}

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"private": true,
3-
"workspaces": [
4-
"packages/*"
5-
]
2+
"name": "root",
3+
"private": true,
4+
"devDependencies": {
5+
"lerna": "^3.19.0"
6+
}
67
}
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
# cra-template-typescript
1+
# cra-template-wptheme-typescript
22

3-
This is the official TypeScript template for [Create React App](https://github.com/facebook/create-react-app).
3+
This is the official TypeScript template for [Create React WPTheme](https://github.com/devloco/create-react-wptheme).
44

5-
To use this template, add `--template typescript` when creating a new app.
5+
To use this template, add `--template typescript` when creating a new wp theme.
66

77
For example:
88

99
```sh
10-
npx create-react-app my-app --template typescript
11-
12-
# or
13-
14-
yarn create react-app my-app --template typescript
10+
npx create-react-wptheme my-theme --template typescript
1511
```
16-
17-
For more information, please refer to:
18-
19-
- [Getting Started](https://create-react-app.dev/docs/getting-started) – How to create a new app.
20-
- [User Guide](https://create-react-app.dev) – How to develop apps bootstrapped with Create React App.
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
{
2-
"dependencies": {
3-
"@testing-library/react": "^9.3.2",
4-
"@testing-library/jest-dom": "^4.2.4",
5-
"@testing-library/user-event": "^7.1.2",
6-
"@types/node": "^12.0.0",
7-
"@types/react": "^16.9.0",
8-
"@types/react-dom": "^16.9.0",
9-
"@types/jest": "^24.0.0",
10-
"typescript": "~3.7.2"
11-
}
2+
"dependencies": {
3+
"@types/node": "^12.0.0",
4+
"@types/react": "^16.9.0",
5+
"@types/react-dom": "^16.9.0",
6+
"typescript": "~3.7.2"
7+
}
128
}
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
# cra-template
1+
# cra-template-wptheme
22

3-
This is the official base template for [Create React App](https://github.com/facebook/create-react-app).
3+
This is the official base template for [Create React WPTheme](https://github.com/devloco/create-react-wptheme).
44

55
If you don't specify a template (for example, `--template typescript`), this template will be used by default.
6-
7-
For more information, please refer to:
8-
9-
- [Getting Started](https://create-react-app.dev/docs/getting-started) – How to create a new app.
10-
- [User Guide](https://create-react-app.dev) – How to develop apps bootstrapped with Create React App.
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"dependencies": {
3-
"@testing-library/react": "^9.3.2",
4-
"@testing-library/jest-dom": "^4.2.4",
5-
"@testing-library/user-event": "^7.1.2"
6-
}
2+
"dependencies": {}
73
}

0 commit comments

Comments
 (0)