Skip to content

Commit feb7690

Browse files
Jack EllisJack Ellis
authored andcommitted
travis
1 parent b1996fc commit feb7690

File tree

7 files changed

+95
-3
lines changed

7 files changed

+95
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
lcov.info
2+
dist
3+
14
# Logs
25
logs
36
*.log

.npmignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# dev files
2+
.codeclimate.yml
3+
.travis.yml
4+
.eslintrc.json
5+
.nycrc
6+
.publishrc
7+
spec
8+
lcov.info
9+
10+
11+
# Logs
12+
logs
13+
*.log
14+
npm-debug.log*
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
21+
# Directory for instrumented libs generated by jscoverage/JSCover
22+
lib-cov
23+
24+
# Coverage directory used by tools like istanbul
25+
coverage
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# node-waf configuration
34+
.lock-wscript
35+
36+
# Compiled binary addons (http://nodejs.org/api/addons.html)
37+
build/Release
38+
39+
# Dependency directories
40+
node_modules
41+
jspm_packages
42+
43+
# Optional npm cache directory
44+
.npm
45+
46+
# Optional REPL history
47+
.node_repl_history

.nycrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"branches" : 80,
55
"include" : ["src/**/*.js"],
66
"extension" : [".js", ".vue"],
7-
"reporter" : ["html", "text-summary"],
7+
"reporter" : ["html", "lcov", "text-summary"],
88
"cache" : false,
99
"all" : true,
1010
"check-coverage" : true

.publishrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"validations": {
3+
"vulnerableDependencies": true,
4+
"uncommittedChanges": true,
5+
"untrackedFiles": true,
6+
"sensitiveData": true,
7+
"branch": false,
8+
"gitTag": true
9+
},
10+
"confirm": false,
11+
"publishTag": "latest",
12+
"prePublishScript": false,
13+
"postPublishScript": false
14+
}

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
branches :
2+
only :
3+
- master
4+
language : node_js
5+
node_js :
6+
- 6
7+
install :
8+
- npm install
9+
10+
- npm install codeclimate-test-reporter -g
11+
script :
12+
- npm run lint
13+
- npm test
14+
- npm run coverage
15+
- npm run build
16+
17+
- npm run lcov-fix
18+
after_script :
19+
- codeclimate-test-reporter < lcov.info
20+
- npm run travis-prepublish
21+
- npm run publish-please

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
"test": "ava",
88
"watch": "ava --watch",
99
"coverage": "nyc npm test",
10-
"lint" : "eslint ./src"
10+
"lint": "eslint ./src",
11+
"publish-please": "publish-please",
12+
"prepublish": "publish-please guard",
13+
"build": "node node_modules/jpex-build-tools/build --entry ./src --output ./dist/vue-inject.js --name injector && node node_modules/jpex-build-tools/build --entry ./src --output ./dist/vue-inject.min.js --name injector --minify",
14+
"lcov-fix": "node node_modules/jpex-build-tools/lcov-fix",
15+
"travis-prepublish": "node node_modules/jpex-build-tools/travis-prepublish"
1116
},
1217
"ava": {
1318
"files": [
@@ -37,7 +42,9 @@
3742
"devDependencies": {
3843
"ava": "^0.18.2",
3944
"eslint": "^3.18.0",
45+
"jpex-build-tools": "github:jpex-js/jpex-build-tools",
4046
"nyc": "^10.1.2",
47+
"publish-please": "^2.3.0",
4148
"sinon": "^2.1.0"
4249
}
4350
}

src/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Jpex = require('jpex');
1+
var Jpex = require('jpex/src');
22
var jpexConstants = require('jpex/src/constants');
33
var plugin = require('./plugin');
44
var install = require('./install');

0 commit comments

Comments
 (0)