Skip to content

Commit 22e9b76

Browse files
authored
Add files via upload
1 parent 1b9ad2e commit 22e9b76

File tree

3 files changed

+137
-1
lines changed

3 files changed

+137
-1
lines changed

README.md

+37-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1-
# vue-cli-3-nuxt-typescript
1+
## VUE CLI 3.0 installation procedure
2+
``` bash
3+
$ vue create app-name
4+
$ cd app-name
5+
$ vue add nuxt-starter-template
6+
$ npm un nuxt
7+
$ npm i nuxt-edge --save
8+
$ npm i nuxt-typescript typescript tslint --save-dev
9+
```
10+
11+
[Follow these instructions for configuring nuxt.config.js.](https://github.com/wagerfield/nuxt-typescript) Don't worry about tsconfig.json if you configure vue cli to use typescript it should be configured correctly already.
12+
13+
``` bash
14+
$ npm i mobx-vue --save
15+
```
16+
17+
## Build Setup
18+
19+
``` bash
20+
# install dependencies
21+
$ npm install # Or yarn install
22+
23+
# serve with hot reload at localhost:3000
24+
$ npm run dev
25+
26+
# build for production and launch server
27+
$ npm run build
28+
$ npm start
29+
30+
# generate static project
31+
$ npm run generate
32+
```
33+
34+
For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js).
35+
36+
## Learn more
37+
[Chris V. Fritz Vue Enterprise Boilerplate](https://github.com/chrisvfritz/vue-enterprise-boilerplate)

nuxt.config.js

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
/*
3+
** Set source directory
4+
*/
5+
srcDir: 'src/',
6+
/*
7+
** Headers of the page
8+
*/
9+
head: {
10+
title: 'Welcome to Nuxt!',
11+
meta: [
12+
{ charset: 'utf-8' },
13+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
14+
{ hid: 'description', name: 'description', content: 'Nuxt.js project' }
15+
],
16+
link: [
17+
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
18+
]
19+
},
20+
modules: ['nuxt-typescript'],
21+
/*
22+
** Customize the progress bar color
23+
*/
24+
loading: { color: '#3B8070' },
25+
/*
26+
** Build configuration
27+
*/
28+
build: {
29+
babel: {
30+
presets: ['@vue/app']
31+
}
32+
}
33+
}

package.json

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"name": "foia2",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "nuxt build",
8+
"lint": "vue-cli-service lint",
9+
"test:unit": "vue-cli-service test:unit",
10+
"test:e2e": "vue-cli-service test:e2e",
11+
"dev": "nuxt",
12+
"start": "nuxt start",
13+
"generate": "nuxt generate"
14+
},
15+
"dependencies": {
16+
"mobx-vue": "^2.0.5",
17+
"nuxt-class-component": "^1.2.1",
18+
"nuxt-edge": "^2.0.0-25481399.feabdca",
19+
"nuxt-property-decorator": "^1.2.0",
20+
"register-service-worker": "^1.0.0",
21+
"vue": "^2.5.16",
22+
"vue-class-component": "^6.0.0",
23+
"vue-property-decorator": "^6.0.0",
24+
"vue-router": "^3.0.1"
25+
},
26+
"devDependencies": {
27+
"@types/jest": "^22.0.1",
28+
"@vue/cli-plugin-babel": "^3.0.0-rc.3",
29+
"@vue/cli-plugin-e2e-nightwatch": "^3.0.0-rc.3",
30+
"@vue/cli-plugin-eslint": "^3.0.0-rc.3",
31+
"@vue/cli-plugin-pwa": "^3.0.0-rc.3",
32+
"@vue/cli-plugin-typescript": "^3.0.0-rc.3",
33+
"@vue/cli-plugin-unit-jest": "^3.0.0-rc.3",
34+
"@vue/cli-service": "^3.0.0-rc.3",
35+
"@vue/eslint-config-standard": "^3.0.0-rc.3",
36+
"@vue/eslint-config-typescript": "^3.0.0-rc.3",
37+
"@vue/test-utils": "^1.0.0-beta.16",
38+
"babel-core": "7.0.0-bridge.0",
39+
"lint-staged": "^6.0.0",
40+
"nuxt-typescript": "^0.11.0",
41+
"stylus": "^0.54.5",
42+
"stylus-loader": "^3.0.2",
43+
"ts-jest": "^22.4.6",
44+
"tslint": "^5.10.0",
45+
"typescript": "^2.9.2",
46+
"vue-cli-plugin-nuxt-starter-template": "0.0.6",
47+
"vue-template-compiler": "^2.5.16"
48+
},
49+
"browserslist": [
50+
"> 1%",
51+
"last 2 versions",
52+
"not ie <= 8"
53+
],
54+
"gitHooks": {
55+
"pre-commit": "lint-staged"
56+
},
57+
"lint-staged": {
58+
"*.js": [
59+
"vue-cli-service lint",
60+
"git add"
61+
],
62+
"*.vue": [
63+
"vue-cli-service lint",
64+
"git add"
65+
]
66+
}
67+
}

0 commit comments

Comments
 (0)