Skip to content

Commit b31f399

Browse files
chore: add webpack build for testing bundling of module
1 parent 61450dc commit b31f399

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ results
1313

1414
npm-debug.log
1515
node_modules
16-
/.idea
16+
/.idea
17+
/dist

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "mocha -b ./tests",
8-
"pretest": "jshint ./src ./tests index.js && jscs ./src ./tests ./index.js"
8+
"pretest": "jshint ./src ./tests index.js && jscs ./src ./tests ./index.js && webpack --hide-modules ./index.js dist/tv4-formats-bundle.js"
99
},
1010
"repository": {
1111
"type": "git",
@@ -28,7 +28,8 @@
2828
"devDependencies": {
2929
"jscs": "^3.0.3",
3030
"jshint": "^2.8.0",
31-
"mocha": "^3.0.0"
31+
"mocha": "^3.0.0",
32+
"webpack": "^2.4.1"
3233
},
3334
"dependencies": {
3435
"moment": "^2.10.6",

0 commit comments

Comments
 (0)