Changes for jsx from tempstream

Summary: T2738

Reviewers: #testers

Subscribers: kuba-orlik, jenkins-user

Maniphest Tasks: T2738

Differential Revision: https://hub.sealcode.org/D1363
master
Kuba Orlik 10 months ago
parent 199e1085ef
commit 7df920534c

@ -23,6 +23,14 @@ npm run watch
## Testing ## Testing
First time after installing the project run this command to download firefox
```
npx playwright install firefox
```
And then
``` ```
./npm.sh run test ./npm.sh run test
``` ```

26
package-lock.json generated

@ -14,16 +14,16 @@
"@hotwired/turbo": "^7.1.0", "@hotwired/turbo": "^7.1.0",
"@koa/router": "^12.0.1", "@koa/router": "^12.0.1",
"@playwright/test": "^1.36.1", "@playwright/test": "^1.36.1",
"@sealcode/sealgen": "^0.10.1", "@sealcode/sealgen": "^0.11.0",
"@sealcode/ts-predicates": "^0.4.3", "@sealcode/ts-predicates": "^0.4.3",
"@types/kill-port": "^2.0.0", "@types/kill-port": "^2.0.0",
"get-port": "^7.0.0", "get-port": "^7.0.0",
"locreq": "^3.0.0", "locreq": "^3.0.0",
"multiple-scripts-tmux": "^1.0.4", "multiple-scripts-tmux": "^1.0.4",
"nodemon": "^3.0.1", "nodemon": "^3.0.1",
"sealious": "^0.17.37", "sealious": "^0.17.48",
"stimulus": "^2.0.0", "stimulus": "^2.0.0",
"tempstream": "^0.0.21", "tempstream": "^0.3.0",
"vitest": "^1.1.0" "vitest": "^1.1.0"
}, },
"devDependencies": { "devDependencies": {
@ -1274,9 +1274,9 @@
} }
}, },
"node_modules/@sealcode/sealgen": { "node_modules/@sealcode/sealgen": {
"version": "0.10.1", "version": "0.11.0",
"resolved": "https://registry.npmjs.org/@sealcode/sealgen/-/sealgen-0.10.1.tgz", "resolved": "https://registry.npmjs.org/@sealcode/sealgen/-/sealgen-0.11.0.tgz",
"integrity": "sha512-Yp/MOOuIfJUiEQIZgUuRV4wY5uXCWtOF/rnrSVU1u94ldSUbBUnRxrhakT74K0L01wDJMeyg+xR1pswnwDCKdg==", "integrity": "sha512-Nl2/PccEqRNh7hnA0O7B3qeUfMvB7ttQyTj/WGbEqR/6Ry2oL+AANDtRnbEwe3FcTNPtz9k28FoLK2vBQFuo9A==",
"dependencies": { "dependencies": {
"@koa/router": "^12.0.1", "@koa/router": "^12.0.1",
"@sealcode/ts-predicates": "^0.4.3", "@sealcode/ts-predicates": "^0.4.3",
@ -1288,7 +1288,7 @@
"merge": "^2.1.1", "merge": "^2.1.1",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"prompts": "^2.4.2", "prompts": "^2.4.2",
"tempstream": "^0.0.21", "tempstream": "^0.3.0",
"tiny-glob": "^0.2.9", "tiny-glob": "^0.2.9",
"yargs": "^17.6.2" "yargs": "^17.6.2"
}, },
@ -9106,9 +9106,9 @@
} }
}, },
"node_modules/sealious": { "node_modules/sealious": {
"version": "0.17.37", "version": "0.17.48",
"resolved": "https://registry.npmjs.org/sealious/-/sealious-0.17.37.tgz", "resolved": "https://registry.npmjs.org/sealious/-/sealious-0.17.48.tgz",
"integrity": "sha512-9NXSkeLZ4Fst/OYyW4QfuTYq1bTNQNWNNComuAIgr0eIDomN6UWIIrE6BTX1gVNLB/dXhS4ei69MztVIVdmDqQ==", "integrity": "sha512-nHNV6gFlmWSL8RDW0j0oKL5Vf35SlT/Y7MuupjGtCegKjLEkTm7OQ8eRf1Zv0jauwg4fA+P1bLudDGRABUQaKw==",
"dependencies": { "dependencies": {
"@koa/router": "^12.0.1", "@koa/router": "^12.0.1",
"@sealcode/ts-predicates": "^0.4.3", "@sealcode/ts-predicates": "^0.4.3",
@ -10054,9 +10054,9 @@
} }
}, },
"node_modules/tempstream": { "node_modules/tempstream": {
"version": "0.0.21", "version": "0.3.0",
"resolved": "https://registry.npmjs.org/tempstream/-/tempstream-0.0.21.tgz", "resolved": "https://registry.npmjs.org/tempstream/-/tempstream-0.3.0.tgz",
"integrity": "sha512-k1lVWBxXiwe47sMNPW7iomCwmT2p/fAdSw1FGQy5I2z32y1+8auKcV8CND8JpKkQzFLxUeZiWjrq41REe8eJ5w==" "integrity": "sha512-GJgzlDLIRqYhzoobx+rTEhBQ6btaE4bTOVrshsC+I+5EO5qs9Ov3KUNR+1X811fi1CqlTHg4Ldrbua1wLHzFXA=="
}, },
"node_modules/terser": { "node_modules/terser": {
"version": "5.26.0", "version": "5.26.0",

@ -17,7 +17,7 @@
"test": "npm run test-cmd -- --ui", "test": "npm run test-cmd -- --ui",
"coverage": "npm run test --coverage", "coverage": "npm run test --coverage",
"postinstall": "sealgen make-env && npm install --prefix webhint", "postinstall": "sealgen make-env && npm install --prefix webhint",
"test-reports": "npm run test-cmd-once -- --coverage", "test-reports": "rm -f .xunit && npm run test-cmd-once -- --coverage --reporter=junit --outputFile=.xunit",
"show-coverage": "npm run test-reports; xdg-open coverage/index.html" "show-coverage": "npm run test-reports; xdg-open coverage/index.html"
}, },
"tmux-scripts": { "tmux-scripts": {
@ -35,7 +35,7 @@
"@hotwired/turbo": "^7.1.0", "@hotwired/turbo": "^7.1.0",
"@koa/router": "^12.0.1", "@koa/router": "^12.0.1",
"@playwright/test": "^1.36.1", "@playwright/test": "^1.36.1",
"@sealcode/sealgen": "^0.10.6", "@sealcode/sealgen": "^0.11.0",
"@sealcode/ts-predicates": "^0.4.3", "@sealcode/ts-predicates": "^0.4.3",
"@types/kill-port": "^2.0.0", "@types/kill-port": "^2.0.0",
"get-port": "^7.0.0", "get-port": "^7.0.0",
@ -44,7 +44,7 @@
"nodemon": "^3.0.1", "nodemon": "^3.0.1",
"sealious": "^0.17.48", "sealious": "^0.17.48",
"stimulus": "^2.0.0", "stimulus": "^2.0.0",
"tempstream": "^0.0.21", "tempstream": "^0.3.0",
"vitest": "^1.1.0" "vitest": "^1.1.0"
}, },
"devDependencies": { "devDependencies": {

@ -10,6 +10,8 @@
"lib": ["es6", "esnext"], "lib": ["es6", "esnext"],
"outDir": "../../dist/back", "outDir": "../../dist/back",
"keyofStringsOnly": true, "keyofStringsOnly": true,
"jsx": "react",
"reactNamespace": "TempstreamJSX",
"checkJs": false, "checkJs": false,
"allowJs": true, "allowJs": true,
"resolveJsonModule": true, "resolveJsonModule": true,

@ -14,7 +14,5 @@ export default defineConfig({
all: true, all: true,
include: ["src/**", "test?(-*).?(c|m)[jt]s?(x)"], include: ["src/**", "test?(-*).?(c|m)[jt]s?(x)"],
}, },
reporters: ["junit"],
outputFile: ".xunit",
}, },
}); });

Loading…
Cancel
Save