Skip to content

Commit 42e2b9d

Browse files
committed
feat: Initial commit
0 parents  commit 42e2b9d

27 files changed

+9807
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [["@babel/preset-env", {"targets": {"node": "current"}}]]
3+
}

.github/workflows/index.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "deploy"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- beta
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '16'
15+
- run: yarn install
16+
- run: yarn test:ci
17+
- run: yarn build
18+
- run: npx semantic-release
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
21+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
- uses: codecov/codecov-action@v1
23+
with:
24+
file: coverage/lcov.info

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Build
2+
.cache/
3+
dist/
4+
stats.html
5+
6+
# Dependencies
7+
node_modules/
8+
9+
# Misc
10+
.DS_STORE
11+
12+
# NPM
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
package-lock.json
17+
.yarn
18+
19+
# Webstorm
20+
.idea/
21+
*.iml
22+
23+
# Jest
24+
coverage/
25+
__snapshots__/

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx commitlint --edit $1

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn test:ci
5+
yarn prettier

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.husky/
2+
.idea/
3+
build/
4+
coverage/
5+
node_modules/

.prettierrc

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"pluginSearchDirs": ["."],
3+
"printWidth": 120,
4+
"useTabs": true,
5+
"tabWidth": 4,
6+
"singleQuote": true,
7+
"semi": false,
8+
"trailingComma": "es5",
9+
"bracketSpacing": true,
10+
"overrides": [
11+
{
12+
"files": "./**/*.js",
13+
"options": {
14+
"parser": "babylon"
15+
}
16+
},
17+
{
18+
"files": "./**/*.svelte",
19+
"options": {
20+
"svelteBracketNewLine": false,
21+
"svelteAllowShorthand": false,
22+
"svelteSortOrder" : "options-scripts-styles-markup",
23+
"plugins": [
24+
"prettier-plugin-svelte"
25+
]
26+
}
27+
},
28+
{
29+
"files": "./**/*.json",
30+
"options": {
31+
"parser": "json"
32+
}
33+
},
34+
{
35+
"files": ".prettierrc",
36+
"options": {
37+
"parser": "json"
38+
}
39+
}
40+
]
41+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Vincent Le Badezet
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<h1 align="center">
2+
svelte-use-drop-outside
3+
</h1>
4+
<p align="center">
5+
Svelte action to drop an element outside an area
6+
</p>

commitlint.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'subject-case': [2, 'always', ['sentence-case']],
5+
'scope-case': [2, 'always', ['lower-case', 'upper-case']],
6+
},
7+
}

0 commit comments

Comments
 (0)