Slightly simplify scripts & README
This commit is contained in:
Родитель
42fc87564a
Коммит
e7e4ea466c
|
@ -67,14 +67,13 @@ Thinking about integrating with:
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/CatalystCode/ibex-dashboard.git
|
git clone https://github.com/CatalystCode/ibex-dashboard.git
|
||||||
cd ibex-dashboard
|
cd ibex-dashboard
|
||||||
npm install -g create-react-app
|
|
||||||
npm install -g yarn
|
npm install -g yarn
|
||||||
yarn install
|
yarn
|
||||||
```
|
```
|
||||||
|
|
||||||
### Dev
|
### Dev
|
||||||
```bash
|
```bash
|
||||||
yarn run start:dev
|
yarn start:dev
|
||||||
```
|
```
|
||||||
|
|
||||||
### Test Watcher
|
### Test Watcher
|
||||||
|
@ -82,12 +81,12 @@ Runs the test watcher in an interactive mode.
|
||||||
By default, runs tests related to files changes since the last commit.
|
By default, runs tests related to files changes since the last commit.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm test
|
yarn test
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build for Production
|
### Build for Production
|
||||||
```bash
|
```bash
|
||||||
npm run build
|
yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
## What’s Inside?
|
## What’s Inside?
|
||||||
|
|
|
@ -44,12 +44,12 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"css:build": "node-sass src/ -o src/",
|
"css:build": "node-sass src/ -o src/",
|
||||||
"css:watch": "yarn run css:build && node-sass src/ -o src/ --watch --recursive",
|
"css:watch": "yarn css:build && node-sass src/ -o src/ --watch --recursive",
|
||||||
"server:start": "yarn start",
|
"server:start": "yarn start",
|
||||||
"client:start": "react-scripts-ts start",
|
"client:start": "react-scripts-ts start",
|
||||||
"start:dev": "npm-run-all -p css:watch server:start client:start",
|
"start:dev": "npm-run-all -p css:watch server:start client:start",
|
||||||
"start": "node server",
|
"start": "node server",
|
||||||
"build": "npm run css:build && react-scripts-ts build",
|
"build": "yarn css:build && react-scripts-ts build",
|
||||||
"test": "react-scripts-ts test --env=jsdom"
|
"test": "react-scripts-ts test --env=jsdom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче