New fix npm script, readme now prettier.
This commit is contained in:
parent
413e4f80fa
commit
e0a2d8682c
@ -33,6 +33,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
|
"fix": "npm run lint -- --fix && prettier --write readme.md",
|
||||||
"dev": "dotenv next",
|
"dev": "dotenv next",
|
||||||
"build": "dotenv next build",
|
"build": "dotenv next build",
|
||||||
"start": "dotenv next start"
|
"start": "dotenv next start"
|
||||||
|
|||||||
@ -4,22 +4,27 @@
|
|||||||
|
|
||||||
An example SSR web app using:
|
An example SSR web app using:
|
||||||
|
|
||||||
- [next](https://www.npmjs.com/package/next)
|
* [next](https://www.npmjs.com/package/next)
|
||||||
- [react-apollo](https://www.npmjs.com/package/react-apollo)
|
* [react-apollo](https://www.npmjs.com/package/react-apollo)
|
||||||
- [apollo-link-batch-http](https://www.npmjs.com/package/apollo-link-batch-http)
|
* [apollo-link-batch-http](https://www.npmjs.com/package/apollo-link-batch-http)
|
||||||
- [apollo-fetch-upload](https://www.npmjs.com/package/apollo-fetch-upload)
|
* [apollo-fetch-upload](https://www.npmjs.com/package/apollo-fetch-upload)
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
1. Install the latest [Node.js](https://nodejs.org) and [npm](https://npmjs.com).
|
1. Install the latest [Node.js](https://nodejs.org) and
|
||||||
|
[npm](https://npmjs.com).
|
||||||
2. Duplicate `.env.example` as `.env` and customize.
|
2. Duplicate `.env.example` as `.env` and customize.
|
||||||
3. With Terminal in the `api` directory run `npm install`.
|
3. With Terminal in the `api` directory run `npm install`.
|
||||||
4. Run `npm run dev` for development, or `npm run build && npm start` for production.
|
4. Run `npm run dev` for development, or `npm run build && npm start` for
|
||||||
|
production.
|
||||||
|
|
||||||
Ensure your editor supports:
|
Ensure your editor supports:
|
||||||
|
|
||||||
- [EditorConfig](http://editorconfig.org).
|
* [EditorConfig](http://editorconfig.org).
|
||||||
- [ESLint](http://eslint.org), respecting `package.json` config. [Atom](https://atom.io) users install [`linter-eslint`](https://atom.io/packages/linter-eslint) and enable `Fix errors on save`.
|
* [ESLint](http://eslint.org), respecting `package.json` config.
|
||||||
|
[Atom](https://atom.io) users install
|
||||||
|
[`linter-eslint`](https://atom.io/packages/linter-eslint) and enable `Fix
|
||||||
|
errors on save`.
|
||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user