Skip to content

Commit

Permalink
chore(package): update to defaults 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens committed Mar 7, 2017
1 parent ae9b47b commit 2d8eee4
Show file tree
Hide file tree
Showing 11 changed files with 774 additions and 73 deletions.
30 changes: 27 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
{
"presets": ["webpack", "jest"],
"ignore": []
}
"presets": [
"webpack",
"jest",
[
"env",
{
"modules": false,
"useBuiltIns": true,
"targets": {
"node": 4.3
},
"exclude": [
"transform-async-to-generator",
"transform-regenerator"
]
}
]
],
"ignore": [],
"env": {
"test": {
"presets": [
"env"
]
}
}
}
9 changes: 6 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

# EdititorConfig
# editorconfig.org
root = true

[*]
Expand All @@ -16,4 +15,8 @@ indent_size = 2

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
trim_trailing_whitespace = false

[.md]
insert_final_newline = false
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/dist
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "webpack"
}
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1. Check the version of package you are using. If it's not the newest version, update and try again (see changelog while updating!).
2. If the issue is still there, write a minimal project showing the problem and expected output.
3. Link to the project and mention Node version and OS in your report.

**IMPORTANT! You should use [Stack Overflow](https://stackoverflow.com/) for support related questions.**
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!--
1. [Read and sign the CLA](https://cla.js.foundation/webpack/webpack.js.org). This needs to be done only once. PRs that haven't signed it won't be accepted.
2. Check out the [development guide](https://webpack.js.org/development/) for the API and development guidelines.
3. Read through the PR diff carefully as sometimes this can reveal issues. The work will be reviewed, but this can save some effort.
-->
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ npm-debug.log*
# Editor & OS
.idea
DS_Store

yarn-debug.log*
.DS_Store
Thumbs.db
.vscode
*.sublime-project
*.sublime-workspace
20 changes: 11 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,26 @@ matrix:
fast_finish: true
include:
- os: linux
node_js: "7"
env: WEBPACK_VERSION="2.2.0" BITHOUND_CHECK=true JOB_PART=lint
node_js: '7'
env: WEBPACK_VERSION="2.2.0" JOB_PART=lint
- os: linux
node_js: "4.3"
node_js: '4.3'
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
- os: linux
node_js: "6"
node_js: '6'
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
- os: linux
node_js: "7"
node_js: '7'
env: WEBPACK_VERSION="2.2.0" JOB_PART=coverage
before_install:
- nvm --version
- node --version
before_script:
- 'if [ "$WEBPACK_VERSION" ]; then yarn add webpack@^$WEBPACK_VERSION; fi'
- 'if [ "$BITHOUND_CHECK" ]; then npm install -g bithound; bithound check [email protected]:$TRAVIS_REPO_SLUG.git; fi'
- |-
if [ "$WEBPACK_VERSION" ]; then
yarn add webpack@^$WEBPACK_VERSION
fi
script:
- yarn run travis:$JOB_PART
- 'yarn run travis:$JOB_PART'
after_success:
- bash <(curl -s https://codecov.io/bash)
- 'bash <(curl -s https://codecov.io/bash)'
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Copyright JS Foundation and other contributors

Permission is hereby granted, free of charge, to any person obtaining
Expand All @@ -18,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
40 changes: 30 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,27 @@
"name": "schema-utils",
"version": "0.0.1",
"description": "Webpack Schema Validation Utilities",
"main": "./dist",
"main": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"prebuild": "npm run clean:dist",
"prebuild": "yarn run clean:dist",
"build": "cross-env NODE_ENV=production babel -s true src -d dist --ignore 'src/**/*.test.js'",
"clean:dist": "shx rm -rf dist",
"start": "npm run serve:dev src",
"clean:dist": "del-cli dist",
"start": "yarn run serve:dev src",
"serve:dev": "nodemon $2 --exec babel-node",
"lint": "eslint --cache src test",
"security": "nsp check",
"test": "jest",
"test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage",
"travis:test": "yarn run test",
"travis:coverage": "yarn run test:coverage",
"travis:lint": "yarn run lint && yarn run nsp"
"travis:lint": "yarn run lint && yarn run security",
"webpack-defaults": "webpack-defaults",
"lint-staged": "lint-staged",
"prepublish": "yarn run build",
"release": "yarn run standard-version"
},
"dependencies": {
"ajv": "^4.11.2"
Expand All @@ -27,22 +31,27 @@
"babel-cli": "^6.22.2",
"babel-jest": "^18.0.0",
"babel-polyfill": "^6.22.0",
"babel-preset-env": "^1.2.1",
"babel-preset-webpack": "^1.0.0",
"chai": "^3.5.0",
"codecov": "^1.0.1",
"cross-env": "^3.1.4",
"del-cli": "^0.2.1",
"eslint": "^3.14.1",
"eslint-config-webpack": "^1.0.0",
"eslint-plugin-import": "^2.2.0",
"greenkeeper-postpublish": "^1.0.1",
"jest": "^18.1.0",
"lint-staged": "^3.3.1",
"nodemon": "^1.11.0",
"nsp": "^2.6.2",
"pre-commit": "^1.2.2",
"shx": "^0.2.2",
"standard-version": "^4.0.0"
"standard-version": "^4.0.0",
"webpack-defaults": "^0.2.1"
},
"engines": {
"node": ">=4.3.0 <5.0.0 || >=5.10"
"node": ">=4.3 <5.0.0 || >=5.10"
},
"repository": {
"type": "git",
Expand All @@ -59,12 +68,23 @@
],
"author": "Webpack Contrib (https://github.com/webpack-contrib)",
"contributors": [
{ "name": "Juho Vepsäläinen <@bebraw>" },
{ "name": "Joshua Wiens <@d3viant0ne>" }
{
"name": "Juho Vepsäläinen <@bebraw>"
},
{
"name": "Joshua Wiens <@d3viant0ne>"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/webpack-contrib/schema-utils/issues"
},
"homepage": "https://github.com/webpack-contrib/schema-utils#readme"
"homepage": "https://github.com/webpack-contrib/schema-utils#readme",
"pre-commit": "lint-staged",
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
}
}
Loading

0 comments on commit 2d8eee4

Please sign in to comment.