Skip to content

Commit ae52c43

Browse files
committed
chore(project): import project from loopback-es6 vue branch
1 parent 4b90f00 commit ae52c43

38 files changed

+718
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# vue-loopback
2+
3+
A Vue project template with Loopback framework featuring ES6, Gulp, and Mocha for unit tests
4+
5+
> This template is Vue 2.x **only**.

meta.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
module.exports = {
5+
"prompts": {
6+
7+
"name": {
8+
"type": "string",
9+
"required": true,
10+
"message": "Project name"
11+
},
12+
"description": {
13+
"type": "string",
14+
"required": false,
15+
"message": "Project description",
16+
"default": "A Vue.js project"
17+
},
18+
"author": {
19+
"type": "string",
20+
"message": "Author"
21+
},
22+
"build": {
23+
"type": "list",
24+
"message": "Vue build",
25+
"choices": [
26+
{
27+
"name": "Runtime + Compiler: recommended for most users",
28+
"value": "standalone",
29+
"short": "standalone"
30+
},
31+
{
32+
"name": "Runtime-only: about 6KB lighter min+gzip, but templates (or any Vue-specific HTML) are ONLY allowed in .vue files - render functions are required elsewhere",
33+
"value": "runtime",
34+
"short": "runtime"
35+
}
36+
]
37+
},
38+
"router": {
39+
"type": "confirm",
40+
"message": "Install vue-router?"
41+
},
42+
},
43+
"complete": function(data, {logger}) {
44+
logger.log("To get started:");
45+
logger.log("1. Install dependencies: npm install");
46+
logger.log("2. Build with: npm run build");
47+
}
48+
};

package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "vue-loopback",
3+
"version": "1.0.0",
4+
"description": "A Vue project template with Loopback framework featuring ES6, Gulp, and Mocha for unit tests",
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/InCuca/vue-loopback.git"
12+
},
13+
"keywords": [
14+
"vuejs"
15+
],
16+
"author": "Walker Leite",
17+
"license": "MIT",
18+
"bugs": {
19+
"url": "https://github.com/InCuca/vue-loopback/issues"
20+
},
21+
"homepage": "https://github.com/InCuca/vue-loopback#readme"
22+
}

template/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015"]
3+
}

template/.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# http://editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
indent_style = space
9+
indent_size = 2
10+
end_of_line = lf
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true

template/.eslintignore

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

template/.eslintrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": ["loopback", "plugin:vue/recommended"],
3+
"plugins": ["vue"],
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"globals": {
9+
"expect": true,
10+
"assert": true,
11+
"require": true,
12+
"request": true
13+
}
14+
}

template/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*.csv
2+
*.dat
3+
*.iml
4+
*.log
5+
*.out
6+
*.pid
7+
*.seed
8+
*.sublime-*
9+
*.swo
10+
*.swp
11+
*.tgz
12+
*.xml
13+
.DS_Store
14+
.idea
15+
.project
16+
.strong-pm
17+
coverage
18+
node_modules
19+
npm-debug.log
20+
build

template/.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- "node"

template/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# {{ name }}
2+
3+
{{ description }}
4+
5+
## Installation
6+
7+
```
8+
$ npm install
9+
```
10+
11+
## Testing
12+
13+
```
14+
$ npm test
15+
```
16+
17+
## Running Development
18+
19+
```
20+
$ npm run dev
21+
```
22+
23+
## Running Production (after build)
24+
25+
```
26+
$ npm start
27+
```
28+
29+
## Build to ./build
30+
31+
```
32+
$ npm run build
33+
```

0 commit comments

Comments
 (0)