Skip to content

Commit 0511c25

Browse files
joshwiensmichael-ciniawsky
authored andcommittedJun 14, 2017
chore: build and package updates to allow use of webpack 3 (#475)
1 parent 0d6d66d commit 0511c25

File tree

4 files changed

+98
-55
lines changed

4 files changed

+98
-55
lines changed
 

‎.travis.yml

+46-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,49 @@
11
sudo: false
2+
dist: trusty
23
language: node_js
3-
node_js:
4-
- "7"
5-
- "6"
6-
- "4"
7-
4+
branches:
5+
only:
6+
- master
7+
- feature/webpack3
8+
jobs:
9+
fast_finish: true
10+
allow_failures:
11+
- env: WEBPACK_VERSION=canary
12+
include:
13+
- &test-latest
14+
stage: Webpack latest
15+
nodejs: 6
16+
env: WEBPACK_VERSION=latest JOB_PART=test
17+
script: npm run travis:$JOB_PART
18+
- <<: *test-latest
19+
nodejs: 4.3
20+
env: WEBPACK_VERSION=latest JOB_PART=test
21+
script: npm run travis:$JOB_PART
22+
- <<: *test-latest
23+
node_js: 8
24+
env: WEBPACK_VERSION=latest JOB_PART=lint
25+
script: npm run travis:$JOB_PART
26+
- <<: *test-latest
27+
node_js: 8
28+
env: WEBPACK_VERSION=latest JOB_PART=coverage
29+
script: npm run travis:$JOB_PART
30+
after_success: 'bash <(curl -s https://codecov.io/bash)'
31+
- stage: Webpack canary
32+
before_script: npm i --no-save git://github.com/webpack/webpack.git#master
33+
script: npm run travis:$JOB_PART
34+
node_js: 8
35+
env: WEBPACK_VERSION=canary JOB_PART=test
36+
before_install:
37+
- 'if [[ `npm -v` != 5* ]]; then npm i -g npm@^5.0.0; fi'
38+
- nvm --version
39+
- node --version
40+
- npm --version
41+
before_script:
42+
- |-
43+
if [ "$WEBPACK_VERSION" ]; then
44+
npm i --no-save webpack@$WEBPACK_VERSION
45+
fi
46+
script:
47+
- 'npm run travis:$JOB_PART'
848
after_success:
9-
- npm install coveralls
10-
- npm run coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
49+
- 'bash <(curl -s https://codecov.io/bash)'

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,11 @@ If you want to prepend Sass code before the actual entry file, you can set the `
227227
[travis]: http://img.shields.io/travis/webpack-contrib/sass-loader.svg
228228
[travis-url]: https://travis-ci.org/webpack-contrib/sass-loader
229229

230-
[appveyor-url]: https://ci.appveyor.com/project/jhnns/sass-loader/branch/master
231-
[appveyor]: https://ci.appveyor.com/api/projects/status/github/webpack-contrib/sass-loader?svg=true
230+
[appveyor-url]: https://ci.appveyor.com/project/webpack-contrib/sass-loader/branch/master
231+
[appveyor]: https://ci.appveyor.com/api/projects/status/rqpy1vaovh20ttxs/branch/master?svg=true
232232

233-
[cover]: https://coveralls.io/repos/github/webpack-contrib/sass-loader/badge.svg
234-
[cover-url]: https://coveralls.io/github/webpack-contrib/sass-loader
233+
[cover]: https://codecov.io/gh/webpack-contrib/sass-loader/branch/master/graph/badge.svg
234+
[cover-url]: https://codecov.io/gh/webpack-contrib/sass-loader
235235

236236
[chat]: https://badges.gitter.im/webpack/webpack.svg
237237
[chat-url]: https://gitter.im/webpack/webpack

‎appveyor.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
# appveyor file
2-
# http://www.appveyor.com/docs/appveyor-yml
3-
1+
branches:
2+
only:
3+
- master
44
init:
55
- git config --global core.autocrlf input
6-
7-
# what combinations to test
86
environment:
97
matrix:
10-
- nodejs_version: 7
8+
- nodejs_version: '8'
9+
webpack_version: latest
1110
job_part: test
12-
- nodejs_version: 6
11+
- nodejs_version: '6'
12+
webpack_version: latest
1313
job_part: test
14-
- nodejs_version: 4
14+
- nodejs_version: '4'
15+
webpack_version: latest
1516
job_part: test
16-
17+
build: 'off'
18+
matrix:
19+
fast_finish: true
1720
install:
1821
- ps: Install-Product node $env:nodejs_version x64
22+
- npm i -g npm@^5.0.0
1923
- npm install
20-
21-
build: off
22-
23-
matrix:
24-
fast_finish: true
25-
24+
before_test:
25+
- cmd: npm i --no-save webpack@%webpack_version%
2626
test_script:
2727
- node --version
2828
- npm --version

‎package.json

+33-29
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,27 @@
22
"name": "sass-loader",
33
"version": "6.0.5",
44
"description": "Sass loader for webpack",
5+
"author": "J. Tangelder",
6+
"license": "MIT",
57
"main": "lib/loader.js",
8+
"files": [
9+
"lib"
10+
],
611
"scripts": {
12+
"appveyor:test": "npm test",
713
"create-spec": "node test/tools/runCreateSpec.js",
8-
"pretest": "npm run create-spec",
14+
"lint": "eslint lib test",
915
"test": "nyc --all mocha -R spec -t 10000",
10-
"posttest": "npm run lint",
1116
"test-bootstrap-sass": "webpack-dev-server --config test/bootstrapSass/webpack.config.js --content-base ./test/bootstrapSass",
1217
"test-source-map": "webpack-dev-server --config test/sourceMap/webpack.config.js --content-base ./test/sourceMap --inline",
1318
"test-watch": "webpack --config test/watch/webpack.config.js",
1419
"test-extract-text": "webpack --config test/extractText/webpack.config.js",
1520
"test-hmr": "webpack-dev-server --config test/hmr/webpack.config.js --content-base ./test/hmr --hot --inline",
16-
"lint": "eslint lib test",
17-
"appveyor:test": "npm test"
18-
},
19-
"keywords": [
20-
"sass",
21-
"libsass",
22-
"webpack",
23-
"loader"
24-
],
25-
"repository": {
26-
"type": "git",
27-
"url": "git://github.com/webpack-contrib/sass-loader.git"
28-
},
29-
"author": "J. Tangelder",
30-
"license": "MIT",
31-
"engines": {
32-
"node": ">=4.0.0"
33-
},
34-
"peerDependencies": {
35-
"node-sass": "^4.0.0",
36-
"webpack": "^2.0.0"
21+
"travis:lint": "npm run lint",
22+
"travis:test": "npm run test",
23+
"travis:coverage": "npm run test",
24+
"pretest": "npm run create-spec",
25+
"posttest": "npm run lint"
3726
},
3827
"dependencies": {
3928
"async": "^2.1.5",
@@ -55,13 +44,28 @@
5544
"raw-loader": "^0.5.1",
5645
"should": "^11.2.0",
5746
"style-loader": "^0.18.2",
58-
"webpack": "^2.2.1",
5947
"webpack-dev-server": "^2.4.1",
6048
"webpack-merge": "^4.0.0"
6149
},
62-
"files": [
63-
"lib",
64-
"README",
65-
"LICENSE"
66-
]
50+
"engines": {
51+
"node": ">= 4.3 < 5.0.0 || >= 5.10"
52+
},
53+
"peerDependencies": {
54+
"node-sass": "^4.0.0",
55+
"webpack": "^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0"
56+
},
57+
"keywords": [
58+
"sass",
59+
"libsass",
60+
"webpack",
61+
"loader"
62+
],
63+
"repository": {
64+
"type": "git",
65+
"url": "git://github.com/webpack-contrib/sass-loader.git"
66+
},
67+
"bugs": {
68+
"url": "https://github.com/webpack-contrib/sass-loader/issues"
69+
},
70+
"homepage": "https://github.com/webpack-contrib/sass-loader"
6771
}

0 commit comments

Comments
 (0)
Please sign in to comment.