You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 28, 2020. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+35-12
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Nuxt Hacker News TS
2
2
3
-
HackerNews clone built with Nuxt.js and TypeScript showcasing best practices of developing real life modern isomorphic Web Apps with [Nuxt](https://github.com/nuxt/nuxt.js). It features integrations with [TsLint](https://palantir.github.io/tslint/) (linting), [Prettier](https://prettier.io/) (code formatting), [Jest](https://jestjs.io/) (testing), [Axios](https://github.com/nuxt-community/axios-module) (http calls on steroids), [Storybook](https://storybook.js.org/)* (component playground).
3
+
HackerNews clone built with Nuxt.js and TypeScript showcasing best practices of developing real life modern isomorphic Web Apps with [Nuxt](https://github.com/nuxt/nuxt.js). It features integrations with [TsLint](https://palantir.github.io/tslint/) (linting), [Prettier](https://prettier.io/) (code formatting), [Jest](https://jestjs.io/) (testing), [Axios](https://github.com/nuxt-community/axios-module) (http calls on steroids), [Storybook](https://storybook.js.org/)\* (component playground).
- PWA experience using [PWA Module](https://github.com/nuxt-community/pwa-module) with almost _zero config_
26
+
- Enable optionnaly PWA, e.g. for development that's orthogonal to PWA features
26
27
- PRPL
27
28
- Hot reloading dev environment
28
29
-[TSLint](https://palantir.github.io/tslint/) and [Prettier](https://prettier.io/) integration
29
-
- Typescript 3
30
+
- TypeScript 3
31
+
- VSCode TypeScript bindings
30
32
- Storybook Integration (Coming Soon)
31
-
- Snapshot and Unit Tests with Jest and [Vue-Test-Utils](https://vue-test-utils.vuejs.org/) (Coming Soon)
33
+
- Snapshot and Unit Tests with Jest and [Vue-Test-Utils](https://vue-test-utils.vuejs.org/) (Coming Soon)
34
+
- VSCode setup for build into production, and run in dev with debugging helpers and logging
32
35
33
36
## Build Setup
34
37
35
38
**Requires Node.js 6+**
36
39
37
40
```bash
38
41
# install dependencies
39
-
npm install # or yarn
42
+
yarn
40
43
41
44
# serve in dev mode, with hot reload at localhost:3000
42
-
npm run dev
45
+
yarn dev
43
46
44
47
# build for production
45
-
npm run build
48
+
yarn build
46
49
47
50
# serve in production mode
48
-
npm start
51
+
yarn start
49
52
50
53
# run unit tests
51
-
npm runtest
54
+
yarntest
52
55
53
56
# validate code with TSLint (with Prettier)
54
-
npm run lint
57
+
yarn lint
55
58
56
59
# validate and fix with TSLint (with Prettier)
57
-
npm run lintfix
60
+
yarn lintfix
61
+
```
62
+
63
+
### Production build
64
+
65
+
#### SPA
58
66
67
+
```bash
68
+
yarn
69
+
yarn build
59
70
```
60
71
72
+
61
73
## Links
62
-
For Nuxt JS version go [here](https://github.com/nuxt/hackernews)
63
74
75
+
For [Nuxt.js version, go to **nuxt/hackernews**](https://github.com/nuxt/hackernews)
64
76
65
77
This repository is originally ported from [vue-hackernews-2.0](https://github.com/vuejs/vue-hackernews-2.0) and [HackerNews Nuxt](https://github.com/nuxt/hackernews)
0 commit comments