Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Initial commit | d01c3176423113580007047c049516c9b443bc8f | Gabi Balasz | 2020-02-14 19:17:28 |
File | Lines added | Lines deleted |
---|---|---|
.babelrc | 16 | 0 |
.editorconfig | 13 | 0 |
.eslintrc.js | 19 | 0 |
.gitignore | 90 | 0 |
README.md | 22 | 0 |
jest.config.js | 17 | 0 |
jsconfig.json | 12 | 0 |
nuxt.config.js | 71 | 0 |
package.json | 38 | 0 |
yarn.lock | 10844 | 0 |
File .babelrc added (mode: 100644) (index 0000000..84c2e57) | |||
1 | { | ||
2 | "env": { | ||
3 | "test": { | ||
4 | "presets": [ | ||
5 | [ | ||
6 | "@babel/preset-env", | ||
7 | { | ||
8 | "targets": { | ||
9 | "node": "current" | ||
10 | } | ||
11 | } | ||
12 | ] | ||
13 | ] | ||
14 | } | ||
15 | } | ||
16 | } |
File .editorconfig added (mode: 100644) (index 0000000..5d12634) | |||
1 | # editorconfig.org | ||
2 | root = true | ||
3 | |||
4 | [*] | ||
5 | indent_style = space | ||
6 | indent_size = 2 | ||
7 | end_of_line = lf | ||
8 | charset = utf-8 | ||
9 | trim_trailing_whitespace = true | ||
10 | insert_final_newline = true | ||
11 | |||
12 | [*.md] | ||
13 | trim_trailing_whitespace = false |
File .eslintrc.js added (mode: 100644) (index 0000000..7950601) | |||
1 | module.exports = { | ||
2 | root: true, | ||
3 | env: { | ||
4 | browser: true, | ||
5 | node: true | ||
6 | }, | ||
7 | parserOptions: { | ||
8 | parser: 'babel-eslint' | ||
9 | }, | ||
10 | extends: [ | ||
11 | '@nuxtjs', | ||
12 | 'plugin:nuxt/recommended' | ||
13 | ], | ||
14 | // add your custom rules here | ||
15 | rules: { | ||
16 | 'semi': 'on', | ||
17 | 'nuxt/no-cjs-in-config': 'off' | ||
18 | } | ||
19 | } |
File .gitignore added (mode: 100644) (index 0000000..20505dc) | |||
1 | # Created by .ignore support plugin (hsz.mobi) | ||
2 | ### Node template | ||
3 | # Logs | ||
4 | /logs | ||
5 | *.log | ||
6 | npm-debug.log* | ||
7 | yarn-debug.log* | ||
8 | yarn-error.log* | ||
9 | |||
10 | # Runtime data | ||
11 | pids | ||
12 | *.pid | ||
13 | *.seed | ||
14 | *.pid.lock | ||
15 | |||
16 | # Directory for instrumented libs generated by jscoverage/JSCover | ||
17 | lib-cov | ||
18 | |||
19 | # Coverage directory used by tools like istanbul | ||
20 | coverage | ||
21 | |||
22 | # nyc test coverage | ||
23 | .nyc_output | ||
24 | |||
25 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
26 | .grunt | ||
27 | |||
28 | # Bower dependency directory (https://bower.io/) | ||
29 | bower_components | ||
30 | |||
31 | # node-waf configuration | ||
32 | .lock-wscript | ||
33 | |||
34 | # Compiled binary addons (https://nodejs.org/api/addons.html) | ||
35 | build/Release | ||
36 | |||
37 | # Dependency directories | ||
38 | node_modules/ | ||
39 | jspm_packages/ | ||
40 | |||
41 | # TypeScript v1 declaration files | ||
42 | typings/ | ||
43 | |||
44 | # Optional npm cache directory | ||
45 | .npm | ||
46 | |||
47 | # Optional eslint cache | ||
48 | .eslintcache | ||
49 | |||
50 | # Optional REPL history | ||
51 | .node_repl_history | ||
52 | |||
53 | # Output of 'npm pack' | ||
54 | *.tgz | ||
55 | |||
56 | # Yarn Integrity file | ||
57 | .yarn-integrity | ||
58 | |||
59 | # dotenv environment variables file | ||
60 | .env | ||
61 | |||
62 | # parcel-bundler cache (https://parceljs.org/) | ||
63 | .cache | ||
64 | |||
65 | # next.js build output | ||
66 | .next | ||
67 | |||
68 | # nuxt.js build output | ||
69 | .nuxt | ||
70 | |||
71 | # Nuxt generate | ||
72 | dist | ||
73 | |||
74 | # vuepress build output | ||
75 | .vuepress/dist | ||
76 | |||
77 | # Serverless directories | ||
78 | .serverless | ||
79 | |||
80 | # IDE / Editor | ||
81 | .idea | ||
82 | |||
83 | # Service worker | ||
84 | sw.* | ||
85 | |||
86 | # Mac OSX | ||
87 | .DS_Store | ||
88 | |||
89 | # Vim swap files | ||
90 | *.swp |
File README.md added (mode: 100644) (index 0000000..9d13f1e) | |||
1 | # skc | ||
2 | |||
3 | > Shingitai Karate Club | ||
4 | |||
5 | ## Build Setup | ||
6 | |||
7 | ``` bash | ||
8 | # install dependencies | ||
9 | $ yarn install | ||
10 | |||
11 | # serve with hot reload at localhost:3000 | ||
12 | $ yarn dev | ||
13 | |||
14 | # build for production and launch server | ||
15 | $ yarn build | ||
16 | $ yarn start | ||
17 | |||
18 | # generate static project | ||
19 | $ yarn generate | ||
20 | ``` | ||
21 | |||
22 | For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org). |
File jest.config.js added (mode: 100644) (index 0000000..efc0e6e) | |||
1 | module.exports = { | ||
2 | moduleNameMapper: { | ||
3 | '^@/(.*)$': '<rootDir>/$1', | ||
4 | '^~/(.*)$': '<rootDir>/$1', | ||
5 | '^vue$': 'vue/dist/vue.common.js' | ||
6 | }, | ||
7 | moduleFileExtensions: ['js', 'vue', 'json'], | ||
8 | transform: { | ||
9 | '^.+\\.js$': 'babel-jest', | ||
10 | '.*\\.(vue)$': 'vue-jest' | ||
11 | }, | ||
12 | 'collectCoverage': true, | ||
13 | 'collectCoverageFrom': [ | ||
14 | '<rootDir>/components/**/*.vue', | ||
15 | '<rootDir>/pages/**/*.vue' | ||
16 | ] | ||
17 | } |
File jsconfig.json added (mode: 100644) (index 0000000..29037a6) | |||
1 | { | ||
2 | "compilerOptions": { | ||
3 | "baseUrl": ".", | ||
4 | "paths": { | ||
5 | "~/*": ["./*"], | ||
6 | "@/*": ["./*"], | ||
7 | "~~/*": ["./*"], | ||
8 | "@@/*": ["./*"] | ||
9 | } | ||
10 | }, | ||
11 | "exclude": ["node_modules", ".nuxt", "dist"] | ||
12 | } |
File nuxt.config.js added (mode: 100644) (index 0000000..1cf5fa1) | |||
1 | |||
2 | module.exports = { | ||
3 | mode: 'universal', | ||
4 | /* | ||
5 | ** Headers of the page | ||
6 | */ | ||
7 | head: { | ||
8 | title: process.env.npm_package_name || '', | ||
9 | meta: [ | ||
10 | { charset: 'utf-8' }, | ||
11 | { name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
12 | { hid: 'description', name: 'description', content: process.env.npm_package_description || '' } | ||
13 | ], | ||
14 | link: [ | ||
15 | { rel: 'icon', type: 'image/png', href: '/favicon.png' }, | ||
16 | { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Montserrat+Alternates:300,400,500,700,900&display=swap&subset=latin-ext' } | ||
17 | ] | ||
18 | }, | ||
19 | /* | ||
20 | ** Customize the progress-bar color | ||
21 | */ | ||
22 | loading: { color: '#a00' }, | ||
23 | /* | ||
24 | ** Global CSS | ||
25 | */ | ||
26 | css: [ | ||
27 | ], | ||
28 | /* | ||
29 | ** Plugins to load before mounting the App | ||
30 | */ | ||
31 | plugins: [ | ||
32 | ], | ||
33 | /* | ||
34 | ** Nuxt.js dev-modules | ||
35 | */ | ||
36 | buildModules: [ | ||
37 | // Doc: https://github.com/nuxt-community/eslint-module | ||
38 | '@nuxtjs/eslint-module' | ||
39 | ], | ||
40 | /* | ||
41 | ** Nuxt.js modules | ||
42 | */ | ||
43 | modules: [ | ||
44 | // Doc: https://bootstrap-vue.js.org | ||
45 | 'bootstrap-vue/nuxt', | ||
46 | // Doc: https://axios.nuxtjs.org/usage | ||
47 | '@nuxtjs/axios', | ||
48 | // Doc: https://github.com/nuxt-community/dotenv-module | ||
49 | '@nuxtjs/dotenv' | ||
50 | ], | ||
51 | /* | ||
52 | ** Axios module configuration | ||
53 | ** See https://axios.nuxtjs.org/options | ||
54 | */ | ||
55 | axios: { | ||
56 | }, | ||
57 | server: { | ||
58 | port: 5555, | ||
59 | host: '0.0.0.0' | ||
60 | }, | ||
61 | /* | ||
62 | ** Build configuration | ||
63 | */ | ||
64 | build: { | ||
65 | /* | ||
66 | ** You can extend webpack config here | ||
67 | */ | ||
68 | extend (config, ctx) { | ||
69 | } | ||
70 | } | ||
71 | } |
File package.json added (mode: 100644) (index 0000000..58c7e4c) | |||
1 | { | ||
2 | "name": "skc", | ||
3 | "version": "1.0.0", | ||
4 | "description": "Shingitai Karate Club", | ||
5 | "author": "Gabi Balasz", | ||
6 | "private": true, | ||
7 | "scripts": { | ||
8 | "dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server", | ||
9 | "build": "nuxt build", | ||
10 | "start": "cross-env NODE_ENV=production node server/index.js", | ||
11 | "generate": "nuxt generate", | ||
12 | "lint": "eslint --ext .js,.vue --ignore-path .gitignore .", | ||
13 | "test": "jest" | ||
14 | }, | ||
15 | "dependencies": { | ||
16 | "@nuxtjs/axios": "^5.3.6", | ||
17 | "@nuxtjs/dotenv": "^1.4.0", | ||
18 | "bootstrap": "^4.1.3", | ||
19 | "bootstrap-vue": "^2.0.0", | ||
20 | "cross-env": "^5.2.0", | ||
21 | "koa": "^2.6.2", | ||
22 | "nuxt": "^2.0.0" | ||
23 | }, | ||
24 | "devDependencies": { | ||
25 | "@nuxtjs/eslint-config": "^1.0.1", | ||
26 | "@nuxtjs/eslint-module": "^1.0.0", | ||
27 | "@vue/test-utils": "^1.0.0-beta.27", | ||
28 | "babel-eslint": "^10.0.1", | ||
29 | "babel-jest": "^24.1.0", | ||
30 | "eslint": "^6.1.0", | ||
31 | "eslint-plugin-nuxt": ">=0.4.2", | ||
32 | "jest": "^24.1.0", | ||
33 | "node-sass": "^4.13.1", | ||
34 | "nodemon": "^1.18.9", | ||
35 | "sass-loader": "^8.0.2", | ||
36 | "vue-jest": "^4.0.0-0" | ||
37 | } | ||
38 | } |
The diff for file yarn.lock is too big (10844 changes) and cannot be shown. |