Skip to content
This repository was archived by the owner on Apr 1, 2019. It is now read-only.

Commit 1ca9bd8

Browse files
committed
add package and self test script
1 parent d28e91a commit 1ca9bd8

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

.gitignore

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

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "vue-standalone-component",
3+
"version": "1.0.0",
4+
"description": "Vuejs standalone component template using karma for testing",
5+
"main": "meta.js",
6+
"scripts": {
7+
"test": "test.sh"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/InCuca/vue-standalone-component.git"
12+
},
13+
"keywords": [
14+
"template",
15+
"vuejs"
16+
],
17+
"author": "Walker Leite",
18+
"license": "MIT",
19+
"bugs": {
20+
"url": "https://github.com/InCuca/vue-standalone-component/issues"
21+
},
22+
"homepage": "https://github.com/InCuca/vue-standalone-component#readme"
23+
}

test.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
yes "" | ./node_modules/.bin/vue init . test-cmp
6+
7+
cd test-cmp
8+
npm install
9+
npm run lint
10+
npm run build
11+
npm run build:umd
12+
npm run build:doc
13+
npm run test
14+
npm run test:cov

0 commit comments

Comments
 (0)