Skip to content

Commit a138666

Browse files
committed
Initial commit
0 parents  commit a138666

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+10946
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
vue-cli-web-app-template
2+
===
3+
4+
A Web App template generator powered by @vue/cli
5+
6+
### Installation
7+
8+
```bash
9+
npm install -g @vue/cli
10+
npm install -g @vue/cli-init
11+
# OR
12+
yarn global add @vue/cli
13+
yarn global add @vue/cli-init
14+
# Then
15+
vue init spacetab-io/vue-cli-web-app-template web-app-name
16+
```

meta.js

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
module.exports = {
2+
prompts: {
3+
// package.json
4+
name: {
5+
type: 'string',
6+
required: true,
7+
message: 'package.json name'
8+
},
9+
description: {
10+
type: 'string',
11+
required: false,
12+
message: 'package.json description',
13+
default: 'Web App description'
14+
},
15+
16+
// :)
17+
questionOfEternity: {
18+
type: 'confirm',
19+
message: 'Are you happy? :)'
20+
},
21+
22+
// Libraries
23+
install_spacetabVueComponents: {
24+
type: 'confirm',
25+
default: false,
26+
message: 'Install spacetab-io/vue-components?'
27+
},
28+
29+
// Template rendering
30+
need_localIcons: {
31+
type: 'confirm',
32+
message: 'Do you need local SVG icons?'
33+
},
34+
need_i18n: {
35+
type: 'confirm',
36+
message: 'Do you need i18n locales?'
37+
},
38+
need_publicDir: {
39+
type: 'confirm',
40+
message: 'Do you need default public directory?'
41+
},
42+
need_responsiveReady: {
43+
type: 'confirm',
44+
message: 'Do you need responsive ready stuff (mixins, libs)?'
45+
},
46+
47+
// Tests
48+
need_tests: {
49+
type: 'confirm',
50+
message: 'Do you need tests?'
51+
},
52+
tests_baseUrl: {
53+
type: 'string',
54+
message: 'What is baseUrl (url of your project) for tests?',
55+
default: 'https://google.com',
56+
},
57+
},
58+
filters: {
59+
// Local icons
60+
'src/components/icons/**/*': 'need_localIcons',
61+
'src/assets/icons/**/*': 'need_localIcons',
62+
'utils/icon-list-generator/**/*': 'need_localIcons',
63+
64+
// Locales
65+
'src/locales/**/*': 'need_i18n',
66+
'src/plugins/vue-i18n.ts': 'need_i18n',
67+
68+
// Other
69+
'public/**/*': 'need_publicDir',
70+
'src/assets/scss/utilities/responsive-mixins.scss': 'need_responsiveReady',
71+
'src/assets/scss/variables/responsive-variables.scss': 'need_responsiveReady',
72+
73+
// Tests
74+
'tests/**/*': 'need_tests',
75+
},
76+
skipInterpolation: [],
77+
completeMessage: 'To get started:\n\n cd {{destDirName}}\n npm install\n npm run serve',
78+
};

package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "vue-cli-web-app-template",
3+
"version": "1.0.0",
4+
"description": "A vue-cli Web App template",
5+
"main": "meta.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/spacetab-io/vue-cli-web-app-template.git"
12+
},
13+
"keywords": [
14+
"vue-cli",
15+
"web",
16+
"app",
17+
"template",
18+
"generator"
19+
],
20+
"author": "",
21+
"license": "ISC",
22+
"bugs": {
23+
"url": "https://github.com/spacetab-io/vue-cli-web-app-template/issues"
24+
},
25+
"homepage": "https://github.com/spacetab-io/vue-cli-web-app-template#readme"
26+
}

template/.browserslistrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#[staging]
2+
> 1%
3+
last 2 versions
4+
not ie > 0
5+
not ie_mob > 0
6+
not op_mini all
7+
not op_mob > 0
8+
not and_qq > 0
9+
not and_uc > 0
10+
not baidu > 0
11+
not android < 60
12+
not samsung < 6
13+
not dead
14+
15+
#[production development]
16+
last 2 chrome versions

template/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.git

template/.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
max_line_length = 100

template/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests/e2e

template/.eslintrc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"@spacetabs/eslint-config-spacetab-io"
5+
],
6+
"parser": "vue-eslint-parser",
7+
"parserOptions": {
8+
"parser": "@typescript-eslint/parser",
9+
"sourceType": "module",
10+
"project": "./tsconfig.json",
11+
"tsconfigRootDir": "./",
12+
"extraFileExtensions": [".js.vue", ".vue"]
13+
},
14+
"env": {
15+
"es6": true,
16+
"amd": true,
17+
"node": true,
18+
"commonjs": true,
19+
"browser": true
20+
},
21+
"settings": {
22+
"import/resolver": {
23+
"webpack": "webpack.base.js"
24+
}
25+
},
26+
"globals": {
27+
"__config": "readonly",
28+
"__stage": "readonly",
29+
"__vcs": "readonly",
30+
"VERSION": "readonly"
31+
},
32+
"overrides": [
33+
{
34+
"files": ["src/store/**/*.ts"],
35+
"rules": {
36+
"@typescript-eslint/typedef": "off"
37+
}
38+
}
39+
]
40+
}

template/.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#configuration/dev
2+
#configuration/prod
3+
4+
.DS_Store
5+
node_modules
6+
/dist
7+
8+
/tests/e2e/videos/
9+
/tests/e2e/screenshots/
10+
11+
# local env files
12+
.env.local
13+
.env.*.local
14+
15+
# Log files
16+
npm-debug.log*
17+
yarn-debug.log*
18+
yarn-error.log*
19+
20+
# Editor directories and files
21+
.idea
22+
.vscode
23+
*.suo
24+
*.ntvs*
25+
*.njsproj
26+
*.sln
27+
.nvmrc
28+
.npmyrc
29+
.bit.json
30+
.bitmap
31+
32+
# Compiled files
33+
yarn.lock
34+
.eslintcache
35+
.stylelintcache
36+
37+
# Built files
38+
# sitemap.xml

0 commit comments

Comments
 (0)