Skip to content

Commit dfff5ac

Browse files
chore: bump admin version and unify scripts
package.json scripts are now the same as in other packages - yarn dev, yarn clean
1 parent b1e487d commit dfff5ac

File tree

9 files changed

+395
-395
lines changed

9 files changed

+395
-395
lines changed

.env-example

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
POSTGRES_USER="adminbro"
2+
POSTGRES_PASSWORD="adminbro"
3+
POSTGRES_DATABASE="adminbro-typeorm-app"
4+
POSTGRES_PORT=5432
5+
POSTGRES_HOST="localhost"

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ Optionally you might want to link your local version of `admin-bro` package
129129
(in the root folder)
130130

131131
```
132-
yarn watch
132+
yarn dev
133133
```
134134

135135
6. run the app in the dev mode
136136

137137
```
138138
cd example-app
139-
yarn start:dev
139+
yarn dev
140140
```
141141

142142
### Pull request

example-app/.env-example

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
POSTGRES_USER="adminbro"
2+
POSTGRES_PASSWORD="adminbro"
3+
POSTGRES_DATABASE="adminbro-typeorm-app"
4+
POSTGRES_PORT=5432
5+
POSTGRES_HOST="localhost"

example-app/ormconfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
migrations: [path.join(rootDir, '/migration/**/*.js')],
1515
subscribers: [path.join(rootDir, '/subscriber/**/*.js')],
1616
synchronize: true,
17-
logging: false,
17+
logging: true,
1818
cli: {
1919
migrationsDir: path.join(rootDir, '/migration'),
2020
entitiesDir: path.join(rootDir, '/entity'),

example-app/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "tsc",
88
"start": "node build/src/index.js",
9-
"start:dev": "yarn build && concurrently \"yarn build --watch\" \"nodemon --ext '.js' --watch ../lib --watch ./build --ignore 'cypress/**/*.js' node build/src/index.js\"",
9+
"dev": "yarn build && concurrently \"yarn build --watch\" \"nodemon --ext '.js' --watch ../lib --watch ./build --ignore 'cypress/**/*.js' node build/src/index.js\"",
1010
"cypress:open": "cypress open",
1111
"cypress:run": "cypress run"
1212
},
@@ -20,14 +20,15 @@
2020
"typescript": "3.9.7"
2121
},
2222
"dependencies": {
23-
"admin-bro": "^3.1.1",
23+
"@admin-bro/design-system": "^1.7.0-beta.17",
24+
"admin-bro": "^3.3.0-beta.16",
2425
"@admin-bro/express": "^3.0.0",
2526
"@admin-bro/typeorm": "^1.0.1",
2627
"express": "^4.17.1",
2728
"express-formidable": "^1.2.0",
2829
"express-session": "^1.17.1",
2930
"pg": "^8.3.0",
3031
"reflect-metadata": "^0.1.10",
31-
"typeorm": "0.2.25"
32+
"typeorm": "0.2.28"
3233
}
3334
}

example-app/yarn.lock

+207-71
Large diffs are not rendered by default.

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
"main": "lib/index.js",
1414
"types": "lib/index.d.ts",
1515
"scripts": {
16+
"clean": "rm -fR lib",
1617
"build": "tsc",
17-
"watch": "tsc -w",
18+
"dev": "yarn clean && tsc -w",
1819
"test": "mocha -r ts-node/register ./spec/**/*.spec.ts",
1920
"ts-node": "ts-node",
2021
"lint": "eslint './src/**/*.{ts,js}' './spec/**/*.{ts,js}' './example-app/**/*.{ts,js}' --ignore-pattern 'build' --ignore-pattern 'yarn.lock'",
@@ -35,14 +36,14 @@
3536
"license": "MIT",
3637
"peerDependencies": {
3738
"admin-bro": "^3.1.1",
38-
"typeorm": ">=0.2.1"
39+
"typeorm": ">=0.2.28"
3940
},
4041
"optionalDependencies": {},
4142
"devDependencies": {
4243
"@types/chai": "^4.2.4",
4344
"@types/mocha": "^5.2.7",
4445
"@types/node": "12.0.10",
45-
"admin-bro": "^3.1.1",
46+
"admin-bro": "^3.3.0-beta.16",
4647
"chai": "^4.2.0",
4748
"class-validator": "^0.11.0",
4849
"mocha": "^6.2.2",
@@ -57,8 +58,8 @@
5758
"eslint-plugin-jsx-a11y": "^6.3.1",
5859
"eslint-plugin-react": "^7.20.3",
5960
"eslint-plugin-react-hooks": "^4.0.8",
60-
"typeorm": "^0.2.1",
61-
"typescript": "^3.6.3",
61+
"typeorm": "^0.2.28",
62+
"typescript": "^4.0.3",
6263
"semantic-release": "^17.0.7",
6364
"@semantic-release/git": "^9.0.0",
6465
"semantic-release-slack-bot": "^1.6.2",

tsconfig.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
"declarationDir": "./lib",
1515
"outDir": "./lib",
1616
"emitDecoratorMetadata": true,
17-
"experimentalDecorators": true
17+
"experimentalDecorators": true,
18+
"baseUrl": ".",
19+
"paths": {
20+
"react": ["node_modules/@types/react"],
21+
"styled-components": ["node_modules/@types/styled-components"]
22+
}
1823
},
1924
"include": [
2025
"./src/**/*.ts"

0 commit comments

Comments
 (0)