Skip to content
Permalink
Browse files

feat: semantic-release + commitizen

Configure semantic-release with commitizen integration. Add LICENCE, automatic generation of
CHANGELOG and update README.

close #1
  • Loading branch information...
Matteo Badini
Matteo Badini committed Apr 26, 2019
1 parent 1a81385 commit 33d529a37354e6d67f7256871d7638ae837543a7
Showing with 10,434 additions and 1,614 deletions.
  1. +7 −6 .eslintrc
  2. +11 −0 .releaserc
  3. +14 −16 .travis.yml
  4. +21 −0 LICENCE
  5. +4 −0 README.md
  6. +10,303 −0 package-lock.json
  7. +69 −43 package.json
  8. +4 −3 rollup.config.js
  9. +1 −1 src/utils.js
  10. 0 test/index.js
  11. +0 −1,545 yarn.lock
@@ -1,5 +1,5 @@
{
"extends": "eslint:recommended",
"extends": ["eslint:recommended", "standard"],
"env": {
"browser": true,
"node": true,
@@ -8,10 +8,11 @@
"parserOptions": {
"sourceType": "module"
},
"rules": {
"quotes": [2, "single", { "avoidEscape": true }],
"semi": [2, "never"],
"rules": {
"curly": "off",
"indent": ["error", "tab"],
"no-console": "off",
"no-throw-literal": "error"
}
"no-tabs": "off",
"space-before-function-paren": "off"
}
}
@@ -0,0 +1,11 @@
{
"branch": "master",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/changelog",
"@semantic-release/git"
],
"repositoryUrl": "https://github.com/matteobad/focus-within-polyfill.git"
}
@@ -1,17 +1,15 @@
sudo: false
language: node_js
node_js:
- "10"
branches:
only:
- master
- /^feature\/.*$/
cache:
directories:
- node_modules
before_install:
- npm update
install:
- npm install
script:
- npm run build
- 8

jobs:
include:
# Define the release stage that runs semantic-release
- stage: release
node_js: lts/*
# Advanced: optionally overwrite your default `script` step to skip the tests
# script: skip
deploy:
provider: script
skip_cleanup: true
script:
- npx semantic-release
21 LICENCE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Matteo Badini

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 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.
@@ -41,6 +41,10 @@ focusWithin.loadPolyfill() // load polyfill
focusWithin.unloadPolyfill() // unload polyfill
```

## Notes

This polyfill does not support shadow DOM. The goal is to polyfill a feature that is missing in IE and EDGE and since shadow DOM is another feature that [needs polyfilling](https://caniuse.com/#feat=shadowdomv1) in this browser I won't implement such feature, but any PR is well accepted.

## Browser Support

* _Natively supported in Chrome_

0 comments on commit 33d529a

Please sign in to comment.
You can’t perform that action at this time.