Skip to content

Commit d319b9d

Browse files
author
Chuck Dumont
authored
Merge pull request #149 from chuckdumont/work
Run unit tests with multiple versions of webpack
2 parents dcd98f4 + b32ad09 commit d319b9d

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

.travis.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ language: node_js
33
node_js:
44
- '6'
55

6-
before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
6+
matrix:
7+
include:
8+
- env: WEBPACK_VERSION=V2
9+
- env: WEBPACK_VERSION=V3
10+
11+
before_install:
12+
- if [ "$WEBPACK_VERSION" = "V3" ]; then echo Testing webpack v3; fi
13+
- if [ "$WEBPACK_VERSION" = "V2" ]; then echo Testing webpack v2; cp -f ./package.webpack2.json ./package.json; fi
714

815
cache:
916
directories:

package.webpack2.json

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "dojo-webpack-plugin",
3+
"version": "2.6.0",
4+
"author": "Chuck Dumont",
5+
"description": "Supports using webpack with Dojo 1.x applications",
6+
"scripts": {
7+
"lint": "eslint . --ext .json --ext .md --ext .js",
8+
"pretest": "npm run lint && node buildDojo/build.js node_modules/dojo/dojo.js test/js && node buildDojo/build.js node_modules/dojo/dojo.js test/js/noconfig {\\\"dojo-config-api\\\":0}",
9+
"test": "mocha --harmony",
10+
"travis:test": "npm run -s test",
11+
"cover": "istanbul cover -x index.js -x **/*.runtime.js node_modules/mocha/bin/_mocha",
12+
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"
13+
},
14+
"dependencies": {
15+
"commondir": "1.0.1",
16+
"es6-class-mixin": "1.0.5",
17+
"file-loader": "0.9.0",
18+
"loader-utils": "1.1.0",
19+
"node-stringify": "0.2.1",
20+
"object.entries": "1.0.4",
21+
"raw-loader": "0.5.1",
22+
"tmp": "0.0.30",
23+
"webpack-sources": "1.1.0"
24+
},
25+
"peerDependencies": {
26+
"webpack": ">= 2.2.0"
27+
},
28+
"license": "(MIT OR Apache-2.0)",
29+
"repository": {
30+
"type": "git",
31+
"url": "git+https://github.com/OpenNTF/dojo-webpack-plugin.git"
32+
},
33+
"devDependencies": {
34+
"coveralls": "^3.0.0",
35+
"dojo": "1.13.0",
36+
"dojo-util": "1.13.0",
37+
"eslint": "^4.17.0",
38+
"eslint-plugin-json": "^1.2.0",
39+
"eslint-plugin-markdown": "^1.0.0-beta.7",
40+
"fs-extra": "^4.0.2",
41+
"istanbul": "^0.4.5",
42+
"mocha": "^3.5.3",
43+
"mocha-lcov-reporter": "^1.3.0",
44+
"proxyquire": "^1.8.0",
45+
"should": "^13.2.1",
46+
"tapable": "^0.2.7",
47+
"webpack": "2.2.0"
48+
}
49+
}

0 commit comments

Comments
 (0)