Skip to content

Commit

Permalink
feat(action): add tippy action
Browse files Browse the repository at this point in the history
  • Loading branch information
mdauner committed Oct 12, 2019
0 parents commit 8f20d52
Show file tree
Hide file tree
Showing 25 changed files with 10,402 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 1
update_configs:

- package_manager: "javascript"
directory: "/"
update_schedule: "live"
commit_message:
prefix: "chore"
include_scope: true
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
public
dist
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
env: {
browser: true,
node: true,
es6: true,
'jest/globals': true,
},
extends: ['eslint:recommended', 'plugin:jest/recommended', 'prettier'],
overrides: [
{
files: '*.svelte',
processor: 'svelte3/svelte3',
},
],
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
},
plugins: ['svelte3', 'jest'],
};
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
26 changes: 26 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: yarn install, build, and test
run: |
yarn install
yarn run build
yarn run lint
yarn run prettier
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: yarn install, build, and release
run: |
yarn install
yarn run build
yarn run semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
dist
node_modules
public/bundle.*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"singleQuote": true
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CHANGELOG

The changelog is automatically updated using
[semantic-release](https://github.com/semantic-release/semantic-release). You
can see it on the [releases page](../../releases).
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Michael Dauner

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.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# sveltejs-tippy

![npm](https://img.shields.io/npm/v/sveltejs-tippy)
![npm bundle size](https://img.shields.io/bundlephobia/minzip/sveltejs-tippy)
![npm](https://img.shields.io/npm/dw/sveltejs-tippy)

![GitHub](https://img.shields.io/github/license/mdauner/sveltejs-tippy)
![Actions Status](https://github.com/mdauner/sveltejs-tippy/workflows/CI/badge.svg)

Tippy.js for [Svelte](https://svelte.dev/).

## Install

```shell
$ npm i sveltejs-tippy
```

or

```shell
$ yarn add sveltejs-tippy
```
14 changes: 14 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
include: ['**/**/*.js', '**/**/*.mjs', '**/**/*.html', '**/**/*.svelte'],
plugins: [
'@babel/plugin-syntax-dynamic-import',
[
'@babel/plugin-transform-runtime',
{
useESModules: true,
},
],
],
presets: ['@babel/preset-env'],
ignore: ['node_modules/**'],
};
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.svelte$': 'svelte-jest',
},
moduleFileExtensions: ['js', 'json', 'svelte'],
bail: false,
verbose: true,
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
};
94 changes: 94 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"name": "sveltejs-tippy",
"description": "Tippy.js for Svelte",
"version": "0.0.0-semantically-released",
"license": "MIT",
"repository": "github:mdauner/sveltejs-tippy",
"svelte": "src/index.js",
"module": "dist/index.min.mjs",
"main": "dist/index.min.js",
"devDependencies": {
"@babel/core": "7.6.3",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-transform-runtime": "7.6.0",
"@babel/preset-env": "7.6.3",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@testing-library/jest-dom": "4.1.1",
"@testing-library/svelte": "1.9.0",
"@types/jest": "24.0.18",
"autoprefixer": "9.6.4",
"babel-jest": "24.9.0",
"cz-conventional-changelog": "3.0.2",
"eslint": "6.4.0",
"eslint-config-prettier": "6.3.0",
"eslint-plugin-jest": "22.17.0",
"eslint-plugin-svelte3": "2.7.3",
"husky": "3.0.5",
"jest": "24.9.0",
"lint-staged": "9.4.2",
"npm-run-all": "4.1.5",
"postcss": "7.0.18",
"prettier": "1.18.2",
"prettier-plugin-svelte": "^0.7.0",
"rollup": "1.23.1",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-livereload": "1.0.4",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-postcss": "2.0.3",
"rollup-plugin-replace": "2.2.0",
"rollup-plugin-svelte": "5.1.0",
"rollup-plugin-terser": "5.1.2",
"semantic-release": "^15.13.24",
"sirv-cli": "0.4.4",
"svelte": "3.12.1",
"svelte-jest": "0.3.1",
"svelte-preprocess": "3.1.1"
},
"dependencies": {
"tippy.js": "5.0.2"
},
"scripts": {
"prettier": "prettier --check '**/*.{svelte, html, css, scss, stylus, js, ts, json, yml, md}' --plugin-search-dir=.",
"lint": "eslint --color './**/*.{js,svelte}'",
"test": "jest",
"autobuild": "rollup -c -w",
"start:dev": "sirv public --single --dev",
"dev": "run-p start:dev autobuild",
"build": "rollup -c",
"prepublishOnly": "npm run build",
"semantic-release": "semantic-release"
},
"browserslist": [
"defaults"
],
"keywords": [
"svelte"
],
"files": [
"src",
"dist"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.{js, svelte}": [
"eslint --fix",
"git add"
],
"*.{html, css, scss, stylus, js, ts, json, yml, md}": [
"prettier --write",
"git add"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
3 changes: 3 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [require('autoprefixer')],
};
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<meta name="viewport" content="width=device-width" />

<title>Svelte component</title>

<link rel="stylesheet" href="bundle.css" />
</head>

<body>
<script src="bundle.js"></script>
</body>
</html>
Loading

0 comments on commit 8f20d52

Please sign in to comment.