|
15 | 15 | "compileEnhancements": false, |
16 | 16 | "babel": false |
17 | 17 | }, |
| 18 | + "unpkg": "./dist/main.js", |
| 19 | + "umd:main": "./dist/main.js", |
18 | 20 | "browser": { |
19 | 21 | "./src/deploy/index.js": "./src/deploy/index.browser.js" |
20 | 22 | }, |
| 23 | + "files": [ |
| 24 | + "src", |
| 25 | + "dist" |
| 26 | + ], |
21 | 27 | "bugs": { |
22 | 28 | "url": "https://github.com/netlify/js-client/issues" |
23 | 29 | }, |
|
54 | 60 | "util.promisify-all": "^1.0.2" |
55 | 61 | }, |
56 | 62 | "devDependencies": { |
| 63 | + "@babel/core": "^7.1.2", |
| 64 | + "@babel/plugin-transform-runtime": "^7.1.0", |
| 65 | + "@babel/preset-env": "^7.1.0", |
| 66 | + "@babel/runtime": "^7.1.2", |
57 | 67 | "ava": "1.0.0-beta.7", |
58 | 68 | "babel-eslint": "^9.0.0", |
| 69 | + "babel-loader": "^8.0.4", |
59 | 70 | "body": "^5.1.0", |
60 | 71 | "coveralls": "^3.0.2", |
61 | 72 | "dependency-check": "^3.2.1", |
|
68 | 79 | "npm-run-all": "^4.1.3", |
69 | 80 | "nyc": "^13.0.1", |
70 | 81 | "prettier": "^1.13.7", |
71 | | - "tape": "^4.9.1" |
| 82 | + "rimraf": "^2.6.2", |
| 83 | + "webpack": "^4.20.2", |
| 84 | + "webpack-cli": "^3.1.2" |
72 | 85 | }, |
73 | 86 | "engines": { |
74 | 87 | "node": ">=8.0.0" |
|
89 | 102 | }, |
90 | 103 | "scripts": { |
91 | 104 | "build": "run-s build:*", |
92 | | - "build:deptree": "depcruise --exclude '^node_modules' --output-type dot src | dot -T svg > site/dist/dependencygraph.svg", |
| 105 | + "build:webpack": "webpack", |
93 | 106 | "ci": "run-s test build", |
| 107 | + "deptree": "depcruise --exclude '^node_modules' --output-type dot src | dot -T svg > site/dist/dependencygraph.svg", |
| 108 | + "prepublishOnly": "npm run build:webpack", |
94 | 109 | "report": "nyc report --reporter=text-lcov | coveralls", |
95 | 110 | "test": "run-s test:*", |
96 | 111 | "test:ava": "nyc --reporter=lcov ava --verbose && nyc report", |
97 | 112 | "test:deps": "dependency-check ./package.json --entry \"src/**/!(*.test).js\" --unused --missing --no-dev --no-peer", |
98 | 113 | "test:lint": "eslint src", |
99 | | - "watch": "nyc --reporter=lcov ava --watch" |
| 114 | + "watch": "nyc --reporter=lcov ava --watch", |
| 115 | + "clean": "rimraf dist coverage" |
100 | 116 | } |
101 | 117 | } |
0 commit comments