Skip to content

Commit ab1f2a5

Browse files
committed
feat: initial commit
0 parents  commit ab1f2a5

22 files changed

+23029
-0
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# editorconfig.org
2+
root = true
3+
4+
# All files should use
5+
# - tabs unless specified otherwise
6+
# - unix-style newlines with a newline ending every file
7+
[*]
8+
indent_style = space
9+
indent_size = 2
10+
end_of_line = lf
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.github/PULL_REQUEST_TEMPLATE.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
2+
3+
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/release-please/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
4+
- [ ] Ensure the tests and linter pass
5+
- [ ] Code coverage does not decrease (if any source code was changed)
6+
- [ ] Appropriate docs were updated (if necessary)
7+
8+
Fixes #<issue_number_goes_here> 🦕

.github/workflows/ci.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Lint, Test and Build
2+
name: CI
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
ci:
8+
name: Lint, Test & Build
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [10.x, 12.x, 14.x]
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: node --version
22+
23+
- name: Cache ~/.npm
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/.npm
27+
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
npm-${{ runner.os }}
30+
npm-
31+
32+
- name: Cache ./node_modules
33+
id: cache-modules
34+
uses: actions/cache@v2
35+
with:
36+
path: node_modules
37+
key: node_modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
38+
39+
- name: Install dependencies
40+
if: steps.cache-modules.outputs.cache-hit != 'true'
41+
run: npm ci
42+
43+
- name: Lint
44+
run: npm run lint
45+
46+
- name: Run the tests and generate coverage report
47+
run: npm test -- --coverage
48+
49+
- name: Coveralls Parallel
50+
uses: coverallsapp/github-action@master
51+
with:
52+
github-token: ${{ secrets.GITHUB_TOKEN }}
53+
parallel: true
54+
55+
- name: Build
56+
run: npm run build --if-present
57+
58+
finish:
59+
name: Publish coverage data
60+
needs: ci
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Coveralls Finished
64+
uses: coverallsapp/github-action@master
65+
with:
66+
github-token: ${{ secrets.github_token }}
67+
parallel-finished: true

.github/workflows/release-please.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Manages release PR using conventional commits for updates to the main branch
2+
name: release-please
3+
4+
on:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Release Please
13+
uses: GoogleCloudPlatform/[email protected]
14+
id: release
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
release-type: node
18+
19+
# The logic below handles the npm publication:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
# these if statements ensure that a publication only occurs when
23+
# a new release is created:
24+
if: ${{ steps.release.outputs.release_created }}
25+
26+
- name: Use Node.js 12.x
27+
if: ${{ steps.release.outputs.release_created }}
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: 12.x
31+
registry-url: https://registry.npmjs.org/
32+
33+
- name: Cache ~/.npm
34+
if: ${{ steps.release.outputs.release_created }}
35+
uses: actions/cache@v2
36+
with:
37+
path: ~/.npm
38+
key: npm-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
39+
restore-keys: |
40+
npm-${{ runner.os }}
41+
npm-
42+
43+
- name: Cache ./node_modules
44+
if: ${{ steps.release.outputs.release_created }}
45+
id: cache-modules
46+
uses: actions/cache@v2
47+
with:
48+
path: node_modules
49+
key: node_modules-${{ runner.os }}-12.x-${{ hashFiles('**/package-lock.json') }}
50+
51+
- name: Install
52+
if: steps.release.outputs.release_created == 'true' && steps.cache-modules.outputs.cache-hit != 'true'
53+
run: npm ci
54+
55+
- name: Publish
56+
if: ${{ steps.release.outputs.release_created }}
57+
run: npm publish
58+
env:
59+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

.gitignore

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port
105+
106+
.vscode

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry = https://registry.npmjs.org/

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v14

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 100,
3+
"semi": false,
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"bracketSpacing": true
7+
}

.xo-config.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"envs": ["es2020", "browser"],
3+
"space": true,
4+
"prettier": true,
5+
"extends": [
6+
"xo-react",
7+
"plugin:jest/recommended",
8+
"plugin:jest/style",
9+
"plugin:jest-dom/recommended",
10+
"plugin:testing-library/recommended"
11+
],
12+
"overrides": [
13+
{
14+
"files": "src/**/*.js",
15+
"nodeVersion": ">=14"
16+
}
17+
],
18+
"settings": {
19+
"react": {
20+
"version": "16.3"
21+
}
22+
},
23+
"rules": {
24+
"react/react-in-jsx-scope": "off"
25+
}
26+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 [these people](https://github.com/sastan/svelte-jsx/graphs/contributors)
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.

0 commit comments

Comments
 (0)