Skip to content

Commit edbb965

Browse files
committed
chore: initial commit
Packages: * @wdpr/ast - AST types for Wikidot markup * @wdpr/parser - Parser for Wikidot markup * @wdpr/render - HTML renderer for Wikidot markup * @wdpr/runtime - Client-side runtime for Wikidot markup
0 parents  commit edbb965

File tree

582 files changed

+56451
-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.

582 files changed

+56451
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "r74tech/wdpr" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "develop",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [develop, release]
6+
push:
7+
branches: [develop]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: oven-sh/setup-bun@v2
16+
with:
17+
bun-version: latest
18+
19+
- run: bun install --frozen-lockfile
20+
21+
- run: bun run build
22+
23+
- run: bun run lint
24+
25+
- run: bun run format
26+
27+
- run: bun run typecheck
28+
29+
- run: bun test

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [release]
6+
7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: oven-sh/setup-bun@v2
20+
with:
21+
bun-version: latest
22+
23+
- run: bun install --frozen-lockfile
24+
25+
- run: bun run build
26+
27+
- name: Create Release Pull Request or Publish
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
version: bun changeset version
32+
publish: bun changeset publish
33+
title: "chore: release packages"
34+
commit: "chore: release packages"
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# dependencies (bun install)
2+
node_modules
3+
4+
# output
5+
out
6+
dist
7+
*.tgz
8+
9+
# code coverage
10+
coverage
11+
*.lcov
12+
13+
# logs
14+
logs
15+
_.log
16+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
17+
18+
# dotenv environment variable files
19+
.env
20+
.env.development.local
21+
.env.test.local
22+
.env.production.local
23+
.env.local
24+
25+
# caches
26+
.eslintcache
27+
.cache
28+
*.tsbuildinfo
29+
30+
# IntelliJ based IDEs
31+
.idea
32+
33+
# Finder (MacOS) folder config
34+
.DS_Store

.oxfmtrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"ignorePatterns": ["tests/fixtures/**/*.html", "packages/**/dist/**/*"]
4+
}

.oxlintrc.json

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": [
4+
"unicorn",
5+
"typescript",
6+
"oxc"
7+
],
8+
"categories": {},
9+
"rules": {
10+
"constructor-super": "warn",
11+
"for-direction": "warn",
12+
"no-async-promise-executor": "warn",
13+
"no-caller": "warn",
14+
"no-class-assign": "warn",
15+
"no-compare-neg-zero": "warn",
16+
"no-cond-assign": "warn",
17+
"no-const-assign": "warn",
18+
"no-constant-binary-expression": "warn",
19+
"no-constant-condition": "warn",
20+
"no-control-regex": "warn",
21+
"no-debugger": "warn",
22+
"no-delete-var": "warn",
23+
"no-dupe-class-members": "warn",
24+
"no-dupe-else-if": "warn",
25+
"no-dupe-keys": "warn",
26+
"no-duplicate-case": "warn",
27+
"no-empty-character-class": "warn",
28+
"no-empty-pattern": "warn",
29+
"no-empty-static-block": "warn",
30+
"no-eval": "warn",
31+
"no-ex-assign": "warn",
32+
"no-extra-boolean-cast": "warn",
33+
"no-func-assign": "warn",
34+
"no-global-assign": "warn",
35+
"no-import-assign": "warn",
36+
"no-invalid-regexp": "warn",
37+
"no-irregular-whitespace": "warn",
38+
"no-loss-of-precision": "warn",
39+
"no-new-native-nonconstructor": "warn",
40+
"no-nonoctal-decimal-escape": "warn",
41+
"no-obj-calls": "warn",
42+
"no-self-assign": "warn",
43+
"no-setter-return": "warn",
44+
"no-shadow-restricted-names": "warn",
45+
"no-sparse-arrays": "warn",
46+
"no-this-before-super": "warn",
47+
"no-unassigned-vars": "warn",
48+
"no-unsafe-finally": "warn",
49+
"no-unsafe-negation": "warn",
50+
"no-unsafe-optional-chaining": "warn",
51+
"no-unused-expressions": "warn",
52+
"no-unused-labels": "warn",
53+
"no-unused-private-class-members": "warn",
54+
"no-unused-vars": "warn",
55+
"no-useless-backreference": "warn",
56+
"no-useless-catch": "warn",
57+
"no-useless-escape": "warn",
58+
"no-useless-rename": "warn",
59+
"no-with": "warn",
60+
"require-yield": "warn",
61+
"use-isnan": "warn",
62+
"valid-typeof": "warn",
63+
"oxc/bad-array-method-on-arguments": "warn",
64+
"oxc/bad-char-at-comparison": "warn",
65+
"oxc/bad-comparison-sequence": "warn",
66+
"oxc/bad-min-max-func": "warn",
67+
"oxc/bad-object-literal-comparison": "warn",
68+
"oxc/bad-replace-all-arg": "warn",
69+
"oxc/const-comparisons": "warn",
70+
"oxc/double-comparisons": "warn",
71+
"oxc/erasing-op": "warn",
72+
"oxc/missing-throw": "warn",
73+
"oxc/number-arg-out-of-range": "warn",
74+
"oxc/only-used-in-recursion": "warn",
75+
"oxc/uninvoked-array-callback": "warn",
76+
"typescript/await-thenable": "warn",
77+
"typescript/no-array-delete": "warn",
78+
"typescript/no-base-to-string": "warn",
79+
"typescript/no-duplicate-enum-values": "warn",
80+
"typescript/no-duplicate-type-constituents": "warn",
81+
"typescript/no-extra-non-null-assertion": "warn",
82+
"typescript/no-floating-promises": "warn",
83+
"typescript/no-for-in-array": "warn",
84+
"typescript/no-implied-eval": "warn",
85+
"typescript/no-meaningless-void-operator": "warn",
86+
"typescript/no-misused-new": "warn",
87+
"typescript/no-misused-spread": "warn",
88+
"typescript/no-non-null-asserted-optional-chain": "warn",
89+
"typescript/no-redundant-type-constituents": "warn",
90+
"typescript/no-this-alias": "warn",
91+
"typescript/no-unnecessary-parameter-property-assignment": "warn",
92+
"typescript/no-unsafe-declaration-merging": "warn",
93+
"typescript/no-unsafe-unary-minus": "warn",
94+
"typescript/no-useless-empty-export": "warn",
95+
"typescript/no-wrapper-object-types": "warn",
96+
"typescript/prefer-as-const": "warn",
97+
"typescript/require-array-sort-compare": "warn",
98+
"typescript/restrict-template-expressions": "warn",
99+
"typescript/triple-slash-reference": "warn",
100+
"typescript/unbound-method": "warn",
101+
"unicorn/no-await-in-promise-methods": "warn",
102+
"unicorn/no-empty-file": "warn",
103+
"unicorn/no-invalid-fetch-options": "warn",
104+
"unicorn/no-invalid-remove-event-listener": "warn",
105+
"unicorn/no-new-array": "warn",
106+
"unicorn/no-single-promise-in-promise-methods": "warn",
107+
"unicorn/no-thenable": "warn",
108+
"unicorn/no-unnecessary-await": "warn",
109+
"unicorn/no-useless-fallback-in-spread": "warn",
110+
"unicorn/no-useless-length-check": "warn",
111+
"unicorn/no-useless-spread": "warn",
112+
"unicorn/prefer-set-size": "warn",
113+
"unicorn/prefer-string-starts-ends-with": "warn"
114+
},
115+
"settings": {
116+
"jsx-a11y": {
117+
"polymorphicPropName": null,
118+
"components": {},
119+
"attributes": {}
120+
},
121+
"next": {
122+
"rootDir": []
123+
},
124+
"react": {
125+
"formComponents": [],
126+
"linkComponents": [],
127+
"version": null
128+
},
129+
"jsdoc": {
130+
"ignorePrivate": false,
131+
"ignoreInternal": false,
132+
"ignoreReplacesDocs": true,
133+
"overrideReplacesDocs": true,
134+
"augmentsExtendsReplacesDocs": false,
135+
"implementsReplacesDocs": false,
136+
"exemptDestructuredRootsFromChecks": false,
137+
"tagNamePreference": {}
138+
},
139+
"vitest": {
140+
"typecheck": false
141+
}
142+
},
143+
"env": {
144+
"builtin": true
145+
},
146+
"globals": {},
147+
"ignorePatterns": []
148+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"biome.enabled": false,
3+
"compile-hero.disable-compile-files-on-did-save-code": false
4+
}

0 commit comments

Comments
 (0)