Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
chore: update webpack defaults (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Feb 12, 2019
1 parent 062b267 commit 6519eb2
Show file tree
Hide file tree
Showing 8 changed files with 2,008 additions and 2,665 deletions.
52 changes: 26 additions & 26 deletions .circleci/config.yml
Expand Up @@ -29,7 +29,7 @@ canary_tests: &canary_tests
command: npm i --no-save webpack@next
- run:
name: Run Test.
command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test; fi
command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "Next is older than Latest - Skipping Canary Suite"; else npm run ci:test || true; fi

version: 2
jobs:
Expand All @@ -50,6 +50,28 @@ jobs:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ./node_modules
analysis:
docker:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: NPM Install.
command: npm ci
- run:
name: Run linting.
command: npm run lint
- run:
name: Run NPM Audit.
command: npm run security
- run:
name: Validate Commit Messages.
command: npm run ci:lint:commits
node6-latest:
docker:
- image: webpackcontrib/circleci-node6:latest
Expand Down Expand Up @@ -78,32 +100,10 @@ jobs:
name: Submit coverage data to codecov.
command: bash <(curl -s https://codecov.io/bash)
when: on_success
node10-canary:
node8-canary:
docker:
- image: webpackcontrib/circleci-node10:latest
- image: webpackcontrib/circleci-node8:latest
<<: *canary_tests
analysis:
docker:
- image: webpackcontrib/circleci-node-base:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install Latest NPM.
command: npm i -g npm@latest
- run:
name: NPM Install.
command: npm ci
- run:
name: Run linting.
command: npm run lint
- run:
name: Run NPM Audit.
command: npm run security
- run:
name: Validate Commit Messages.
command: npm run ci:lint:commits

workflows:
version: 2
Expand Down Expand Up @@ -136,7 +136,7 @@ workflows:
filters:
tags:
only: /.*/
- node10-canary:
- node8-canary:
requires:
- analysis
- node6-latest
Expand Down
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -9,5 +9,5 @@ insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
insert_final_newline = true
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Expand Up @@ -32,4 +32,4 @@ This PR contains a:
migration path for existing applications.
-->

### Additional Info
### Additional Info
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,3 +13,4 @@ Thumbs.db
.vscode
*.sublime-project
*.sublime-workspace
*.iml
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -44,11 +44,11 @@ module.exports = {
rules: [
{
test: /\.txt$/i,
use: 'raw-loader'
}
]
}
}
use: 'raw-loader',
},
],
},
};
```

Or from the command-line:
Expand Down Expand Up @@ -89,11 +89,11 @@ Please take a moment to read our contributing guidelines if you haven't yet done
[node-url]: https://nodejs.org
[deps]: https://david-dm.org/webpack-contrib/raw-loader.svg
[deps-url]: https://david-dm.org/webpack-contrib/raw-loader
[tests]: https://img.shields.io/circleci/project/github/webpack-contrib/raw-loader.svg
[tests]: https://img.shields.io/circleci/project/github/webpack-contrib/raw-loader.svg
[tests-url]: https://circleci.com/gh/webpack-contrib/raw-loader
[cover]: https://codecov.io/gh/webpack-contrib/raw-loader/branch/master/graph/badge.svg
[cover-url]: https://codecov.io/gh/webpack-contrib/raw-loader
[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
[chat-url]: https://gitter.im/webpack/webpack
[size]: https://packagephobia.now.sh/badge?p=raw-loader
[size-url]: https://packagephobia.now.sh/result?p=raw-loader
[size-url]: https://packagephobia.now.sh/result?p=raw-loader
21 changes: 12 additions & 9 deletions appveyor.yml
Expand Up @@ -9,24 +9,28 @@ cache:
- '%APPDATA%\npm-cache'
environment:
matrix:
- nodejs_version: '11'
webpack_version: latest
job_part: test
- nodejs_version: '10'
- nodejs_version: '6'
webpack_version: latest
job_part: test
- nodejs_version: '8'
webpack_version: latest
job_part: test
- nodejs_version: '6'
- nodejs_version: '10'
webpack_version: latest
job_part: test
- nodejs_version: '6'
- nodejs_version: '11'
webpack_version: latest
job_part: next
job_part: test
- nodejs_version: '8'
webpack_version: next
job_part: test
build: 'off'
matrix:
fast_finish: true
allow_failures:
- nodejs_version: '8'
webpack_version: next
job_part: test
install:
- ps: Install-Product node $env:nodejs_version x64
- npm i -g npm@latest
Expand All @@ -35,8 +39,7 @@ install:
before_test:
- cmd: npm install webpack@%webpack_version%
test_script:
- node --version
- node --version
- npm --version
- cmd: FOR /F %%I in ('compver --name webpack --gte %webpack_version% --lt latest') do SET COMPARED_VERSION_RESULT=%%I
- cmd: IF %COMPARED_VERSION_RESULT% NEQ -1 (npm run ci:test) ELSE (ECHO "Next is older than Latest - Skipping Canary Suite")
- cmd: IF %COMPARED_VERSION_RESULT% NEQ -1 (npm run ci:%job_part%) ELSE (ECHO "Next is older than Latest - Skipping Canary Suite")

0 comments on commit 6519eb2

Please sign in to comment.