Skip to content

Commit 17cd104

Browse files
feat: added the whole codebase after re-write
0 parents  commit 17cd104

File tree

160 files changed

+21300
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+21300
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const tsconfig = require("./tsconfig.node.json");
2+
require("ts-node").register(tsconfig);
3+
const { default: config } = require("./eslintrc.ts");
4+
5+
module.exports = config;

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @borys-malinowski @KrzysztofZawisla @ShootGan
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["bug", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: What happened?
14+
description: Also tell us, what did you expect to happen?
15+
placeholder: Tell us what you see!
16+
value: "A bug happened!"
17+
validations:
18+
required: true
19+
- type: input
20+
id: contact
21+
attributes:
22+
label: Version
23+
description: What version you use?
24+
placeholder: ex. 1.0.0
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: logs
29+
attributes:
30+
label: Relevant log output
31+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
32+
render: shell
33+
- type: textarea
34+
id: how-to-reproduce
35+
attributes:
36+
label: How to reproduce?
37+
description: Tell us how to reproduce this issue.
38+
placeholder: What are you clicking!
39+
value: "Click chrome.exe"
40+
- type: checkboxes
41+
id: terms
42+
attributes:
43+
label: Code of Conduct
44+
description: By submitting this issue, you agree to follow our Code of Conduct
45+
options:
46+
- label: "I agree to follow this project's Code of Conduct"
47+
required: true

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
open-pull-requests-limit: 1000
6+
schedule:
7+
interval: "daily"
8+
target-branch: "development"

.github/worflows/deploy.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Deploy PyScriptReact
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: "lts/*"
18+
registry-url: "https://registry.npmjs.org"
19+
20+
- name: Install dependencies
21+
run: yarn --ignore-engines
22+
23+
- name: Run tests
24+
run: yarn run test
25+
26+
- name: Build project
27+
run: yarn run build --target npm
28+
29+
- name: Create zip lib
30+
uses: vimtor/action-zip@v1
31+
with:
32+
files: library/
33+
dest: pyscript-react.zip
34+
35+
- name: Get current tag
36+
run: |
37+
echo "current_tag=v`grep version package.json | sed 's/.*"version": "\(.*\)".*/\1/'`" >> $GITHUB_ENV
38+
39+
- name: Create new tag
40+
uses: rickstaa/action-create-tag@v1
41+
id: "tag_create"
42+
with:
43+
tag: "${{ env.current_tag }}"
44+
tag_exists_error: true
45+
message: "Latest release"
46+
47+
- name: Create GitHub realese
48+
uses: "marvinpinto/action-automatic-releases@latest"
49+
with:
50+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
51+
automatic_release_tag: "${{ env.current_tag }}"
52+
prerelease: false
53+
files: |
54+
LICENSE.txt
55+
pyscript-react.zip
56+
57+
- name: Publish to npm 🚀
58+
run: yarn publish
59+
env:
60+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
tsconfig.tsbuildinfo
3+
yarn-error.log
4+
coverage
5+
.docusaurus
6+
bundle-analyzes
7+
library/
8+
.webpackCache/
9+
!source/library/

.husky/post-merge

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

.husky/pre-commit

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

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
destination/
2+
yarn.lock
3+
.husky/
4+
bundle-analyzes/
5+
coverage/

0 commit comments

Comments
 (0)