@esportsplus/template 0.16.0 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +9 -9
- package/.gitattributes +2 -2
- package/.github/dependabot.yml +24 -24
- package/.github/workflows/bump.yml +8 -8
- package/.github/workflows/dependabot.yml +11 -11
- package/.github/workflows/publish.yml +16 -16
- package/README.md +385 -385
- package/build/compiler/codegen.js +9 -9
- package/build/compiler/index.js +3 -3
- package/{src/llm.txt → llm.txt} +403 -403
- package/package.json +11 -4
- package/src/attributes.ts +312 -312
- package/src/compiler/codegen.ts +492 -492
- package/src/compiler/constants.ts +24 -24
- package/src/compiler/index.ts +87 -87
- package/src/compiler/parser.ts +242 -242
- package/src/compiler/plugins/tsc.ts +6 -6
- package/src/compiler/plugins/vite.ts +10 -10
- package/src/compiler/ts-analyzer.ts +89 -89
- package/src/compiler/ts-parser.ts +112 -112
- package/src/constants.ts +44 -44
- package/src/event/index.ts +130 -130
- package/src/event/onconnect.ts +22 -22
- package/src/event/onresize.ts +37 -37
- package/src/event/ontick.ts +59 -59
- package/src/html.ts +18 -18
- package/src/index.ts +18 -18
- package/src/render.ts +13 -13
- package/src/slot/array.ts +257 -257
- package/src/slot/cleanup.ts +37 -37
- package/src/slot/effect.ts +114 -114
- package/src/slot/index.ts +16 -16
- package/src/slot/render.ts +61 -61
- package/src/svg.ts +27 -27
- package/src/types.ts +40 -40
- package/src/utilities.ts +53 -53
- package/test/attributes.test.ts +311 -0
- package/test/compiler/parser.test.ts +402 -0
- package/test/compiler/ts-analyzer.test.ts +296 -0
- package/test/constants.test.ts +153 -0
- package/test/event/index.test.ts +359 -0
- package/test/html.test.ts +33 -0
- package/test/index.ts +648 -648
- package/test/render.test.ts +154 -0
- package/test/slot/array.test.ts +475 -0
- package/test/slot/cleanup.test.ts +243 -0
- package/test/slot/effect.test.ts +263 -0
- package/test/slot/index.test.ts +176 -0
- package/test/slot/render.test.ts +216 -0
- package/test/svg.test.ts +92 -0
- package/test/utilities.test.ts +242 -0
- package/tsconfig.json +8 -8
- package/vitest.config.ts +21 -0
package/.editorconfig
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
indent_style = space
|
|
5
|
-
indent_size = 4
|
|
6
|
-
charset = utf-8
|
|
7
|
-
trim_trailing_whitespace = true
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
end_of_line = lf
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 4
|
|
6
|
+
charset = utf-8
|
|
7
|
+
trim_trailing_whitespace = true
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
end_of_line = lf
|
package/.gitattributes
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# Auto detect text files and perform LF normalization
|
|
2
|
-
* text=auto
|
|
1
|
+
# Auto detect text files and perform LF normalization
|
|
2
|
+
* text=auto
|
package/.github/dependabot.yml
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
-
|
|
6
|
-
version: 2
|
|
7
|
-
|
|
8
|
-
registries:
|
|
9
|
-
npm-npmjs:
|
|
10
|
-
token: ${{secrets.NPM_TOKEN}}
|
|
11
|
-
type: npm-registry
|
|
12
|
-
url: https://registry.npmjs.org
|
|
13
|
-
|
|
14
|
-
updates:
|
|
15
|
-
- package-ecosystem: "npm"
|
|
16
|
-
directory: "/"
|
|
17
|
-
groups:
|
|
18
|
-
production-dependencies:
|
|
19
|
-
dependency-type: "production"
|
|
20
|
-
development-dependencies:
|
|
21
|
-
dependency-type: "development"
|
|
22
|
-
registries:
|
|
23
|
-
- npm-npmjs
|
|
24
|
-
schedule:
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
|
|
8
|
+
registries:
|
|
9
|
+
npm-npmjs:
|
|
10
|
+
token: ${{secrets.NPM_TOKEN}}
|
|
11
|
+
type: npm-registry
|
|
12
|
+
url: https://registry.npmjs.org
|
|
13
|
+
|
|
14
|
+
updates:
|
|
15
|
+
- package-ecosystem: "npm"
|
|
16
|
+
directory: "/"
|
|
17
|
+
groups:
|
|
18
|
+
production-dependencies:
|
|
19
|
+
dependency-type: "production"
|
|
20
|
+
development-dependencies:
|
|
21
|
+
dependency-type: "development"
|
|
22
|
+
registries:
|
|
23
|
+
- npm-npmjs
|
|
24
|
+
schedule:
|
|
25
25
|
interval: "daily"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
name: bump version
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: '**' # only trigger on branches, not on tags
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
bump:
|
|
1
|
+
name: bump version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: '**' # only trigger on branches, not on tags
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
bump:
|
|
9
9
|
uses: esportsplus/typescript/.github/workflows/bump.yml@main
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
name: dependabot automerge
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
types: [opened, synchronize, labeled]
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
automerge:
|
|
10
|
-
secrets:
|
|
11
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
1
|
+
name: dependabot automerge
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize, labeled]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
automerge:
|
|
10
|
+
secrets:
|
|
11
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
12
12
|
uses: esportsplus/typescript/.github/workflows/dependabot.yml@main
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
name: publish to npm
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [published]
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
workflow_run:
|
|
8
|
-
workflows: [bump version]
|
|
9
|
-
types:
|
|
10
|
-
- completed
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
publish:
|
|
14
|
-
secrets:
|
|
15
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
16
|
-
uses: esportsplus/typescript/.github/workflows/publish.yml@main
|
|
1
|
+
name: publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
workflow_run:
|
|
8
|
+
workflows: [bump version]
|
|
9
|
+
types:
|
|
10
|
+
- completed
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
publish:
|
|
14
|
+
secrets:
|
|
15
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
16
|
+
uses: esportsplus/typescript/.github/workflows/publish.yml@main
|