Unverified Commit 99f38a57 authored by Sébastien Chopin's avatar Sébastien Chopin Committed by GitHub

Update README.md

parent e21f0a50
...@@ -13,8 +13,13 @@ HackerNews clone built with Nuxt.js. ...@@ -13,8 +13,13 @@ HackerNews clone built with Nuxt.js.
## Modes ## Modes
- Universal: https://hn.nuxtjs.org - Universal: https://hn.nuxtjs.org
> Hosted on [Now 2](https://zeit.co): `npm run build` + `now.json`
- Single Page: https://hn-spa.nuxtjs.org - Single Page: https://hn-spa.nuxtjs.org
> Hosted on [Netlify](https://www.netlify.com): `npm run build-spa` + `dist/` directory
## Performance ## Performance
- Lighthouse [100/100](https://cdn.rawgit.com/Atinux/e2f424e6794babc00d2158406b0ab37d/raw/4de834145881697ea83292b381df5f591f1ed2f5/lighthouse-result-nuxt.html) - [Webpagetest](https://www.webpagetest.org/lighthouse.php?test=170620_PG_a2a9feaf4ace07a61b2c6c2a171b1c79&run=1) - Lighthouse [100/100](https://cdn.rawgit.com/Atinux/e2f424e6794babc00d2158406b0ab37d/raw/4de834145881697ea83292b381df5f591f1ed2f5/lighthouse-result-nuxt.html) - [Webpagetest](https://www.webpagetest.org/lighthouse.php?test=170620_PG_a2a9feaf4ace07a61b2c6c2a171b1c79&run=1)
...@@ -23,13 +28,13 @@ HackerNews clone built with Nuxt.js. ...@@ -23,13 +28,13 @@ HackerNews clone built with Nuxt.js.
## Features ## Features
- Server Side Rendering & Caching - Server Side Rendering
- Code Splitting - Code Splitting
- Single-file Vue Components - Single-file Vue Components
- Real-time List Updates with FLIP Animation - Real-time List Updates with FLIP Animation
- Prefetch/Preload JS + DNS + Data - Prefetch/Preload JS + DNS + Data
- Critical Path CSS - Critical Path CSS
- PWA experience using [PWA Module](https://github.com/nuxt-community/pwa-module) with almost _zero config_ - PWA experience using [PWA Module](https://pwa.nuxtjs.org) with almost _zero config_
- PRPL - PRPL
- Hot reloading dev environment integrated with [ESLint](https://eslint.org/) and [Prettier](https://prettier.io/) - Hot reloading dev environment integrated with [ESLint](https://eslint.org/) and [Prettier](https://prettier.io/)
- Hosted on [Now 2](https://zeit.co/) - Hosted on [Now 2](https://zeit.co/)
...@@ -45,18 +50,23 @@ npm install # or yarn ...@@ -45,18 +50,23 @@ npm install # or yarn
# serve in dev mode, with hot reload at localhost:3000 # serve in dev mode, with hot reload at localhost:3000
npm run dev npm run dev
# build for production # build for production (universal)
npm run build npm run build
# serve in production mode # serve in production mode (universal)
npm start npm start
# build for production (spa)
npm run build-spa
# serve in production mode (spa)
npm run start-spa # or upload dist/ directory
# validate code with ESLint (with Prettier) # validate code with ESLint (with Prettier)
npm run lint npm run lint
# validate andf fix with ESLint (with Prettier) # validate andf fix with ESLint (with Prettier)
npm run lintfix npm run lintfix
``` ```
## Links ## Links
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment