corvée(déps) ajoute TypeScript et SWC

This commit is contained in:
gcch 2024-08-09 18:46:11 +02:00
commit f52e3285f2
3 changed files with 48 additions and 1 deletions

31
.swcrc Normal file
View file

@ -0,0 +1,31 @@
{
"$schema": "https://swc.rs/schema.json",
"jsc": {
"externalHelpers": false,
"keepClassNames": false,
"loose": false,
"minify": {
"compress": true,
"mangle": true
},
"parser": {
"decorators": false,
"decoratorsBeforeExport": false,
"dynamicImport": false,
"exportDefaultFrom": false,
"exportNamespaceFrom": false,
"functionBind": false,
"importMeta": false,
"jsx": false,
"privateMethod": false,
"syntax": "typescript",
"topLevelAwait": false,
"tsx": false
},
"preserveAllComments": false,
"target": "es2022",
"transform": null
},
"minify": true,
"sourceMaps": true
}

View file

@ -16,6 +16,9 @@
"@prettier/plugin-php": "^0.22.2",
"@prettier/plugin-xml": "^3.4.1",
"@zackad/prettier-plugin-twig-melody": "^0.6.0",
"@swc/cli": "^0.4.0",
"@swc/core": "^1.7.9",
"browserslist": "^4.23.3",
"prettier": "^3.3.3",
"prettier-plugin-pkg": "^0.18.1",
"prettier-plugin-sh": "^0.14.0",
@ -26,6 +29,11 @@
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
"stylelint-plugin-logical-css": "^1.2.1",
"typescript": "^5.5.4",
"vite": "^5.4.0"
}
},
"browserslist": [
"last 5 major version",
"not dead"
]
}

8
tsconfig.json Normal file
View file

@ -0,0 +1,8 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"isolatedModules": true,
"strict": true
}
}