Skip to content

Commit a029b4e

Browse files
committed
Add babel build for npm package
1 parent 51ee70a commit a029b4e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22
coverage
3-
dist
3+
npm
44
.opt-in
55
.opt-out
66
.DS_Store

.npmignore

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

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
"name": "vue-testing-library",
33
"version": "0.1.10",
44
"description": "Simple and complete Vue DOM testing utilities that encourage good testing practices.",
5-
"main": "src/index.js",
5+
"main": "npm/index.js",
66
"scripts": {
77
"test": "jest --coverage",
8-
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
8+
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
9+
"version": "babel src --out-dir npm"
910
},
1011
"author": "Daniel Cook",
1112
"license": "MIT",
1213
"devDependencies": {
1314
"@vue/test-utils": "^1.0.0-beta.12",
1415
"axios": "^0.18.0",
16+
"babel-cli": "^6.26.0",
1517
"babel-core": "^6.26.0",
1618
"babel-jest": "^23.0.0-alpha.0",
1719
"babel-plugin-transform-object-rest-spread": "^6.26.0",

0 commit comments

Comments
 (0)