Skip to content

Commit eabe7f0

Browse files
fix: finish readme
1 parent 9feff1a commit eabe7f0

File tree

5 files changed

+804
-32
lines changed

5 files changed

+804
-32
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,38 @@ What is missing:
2424
In order to start working on an AdminBro feature/plugin/adapter follow this steps:
2525

2626
1. fork this repository
27-
2.
27+
2. Make sure it uses the latest versions of the packages
28+
2. rename package in package.json
29+
3. add env variables github settings:
30+
- SLACK_WEBHOOK
31+
- NPM_TOKEN
32+
4. in the root folder:
33+
- `yarn install`
34+
- `yarn link` (registers package in `linked packages` repository)
35+
5. cd example-app
36+
- `yarn install`
37+
- `yarn add NAME_OF_YOUR_PACKAGE`
38+
- `yarn link NAME_OF_YOUR_PACKAGE`
39+
6. then in one terminal in the root folder run:
40+
- `yarn build --watch`
41+
7. in the second terminal in example app:
42+
- `yarn dev`
43+
44+
You can read more about package linking in [yarn link documentation](https://classic.yarnpkg.com/en/docs/cli/link/)
45+
46+
## Publishing to NPM
47+
48+
package has semantic-release configured, but it don't upload build to NPM because of `private: true` set in package.json. In order to trigger automatic releases simply remove this line.
49+
50+
## License
51+
52+
AdminBro is Copyright © 2020 SoftwareBrothers.co. It is free software, and may be redistributed under the terms specified in the [LICENSE](LICENSE.md) file.
53+
54+
## About SoftwareBrothers.co
55+
56+
<img src="https://softwarebrothers.co/assets/images/software-brothers-logo-full.svg" width=240>
57+
58+
We’re an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.
59+
60+
* We are available for [hire](https://softwarebrothers.co/contact).
61+
* If you want to work for us - checkout the [career page](https://softwarebrothers.co/career).

example-app/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@
44
"main": "index.js",
55
"license": "MIT",
66
"scripts": {
7-
"start": "ts-node src/index.ts",
7+
"build": "tsc",
8+
"start": "yarn build && node build/index.js",
9+
"start:dev": "concurrently \"yarn build --watch\" \"nodemon --ext '.js' --watch ../build --watch ./build --ignore 'cypress/**/*.js' node build/src/index.js\"",
810
"cypress:open": "cypress open",
911
"cypress:run": "cypress run"
1012
},
1113
"devDependencies": {
1214
"@types/express": "^4.17.7",
13-
"ts-node": "^8.10.2",
15+
"concurrently": "^5.2.0",
1416
"cypress": "^4.11.0",
17+
"nodemon": "^2.0.4",
18+
"ts-node": "^8.10.2",
1519
"typescript": "^3.9.7"
1620
},
1721
"dependencies": {
18-
"@admin-bro/core": "^3.0.0-beta.2",
22+
"@admin-bro/core": "^3.0.0-beta.4",
1923
"@admin-bro/express": "^3.0.0-beta.1",
2024
"express": "^4.17.1",
2125
"express-formidable": "^1.2.0",

0 commit comments

Comments
 (0)