mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-02 20:12:04 +01:00
* Move declaration.d.ts to @types Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Load customisations.json without `require` Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove webpack rule from when we were consuming shared-components ts vs js Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Avoid hardcoding paths to modules in webpack config Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Convert webpack config to typescript Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Stub js webpack/postcss plugins Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Patch broken rollup types until https://github.com/getsentry/sentry-javascript-bundler-plugins/pull/870 is released Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Install @types/postcss-import Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix fdir relying on @types/picomatch Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update pnpm-lock.yaml Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
67 lines
2.4 KiB
JSON
67 lines
2.4 KiB
JSON
{
|
|
"$schema": "./node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"implicitDependencies": ["@element-hq/web-shared-components"],
|
|
"targets": {
|
|
"clean": {
|
|
"command": "rimraf webapp",
|
|
"outputs": ["{projectRoot}/webapp/"]
|
|
},
|
|
"prebuild:i18n": {
|
|
"cache": true,
|
|
"command": "node scripts/copy-res.ts",
|
|
"dependsOn": ["clean"],
|
|
"inputs": ["{projectRoot}/src/i18n/strings/*.json"],
|
|
"outputs": ["{projectRoot}/webapp/i18n/"]
|
|
},
|
|
"prebuild:module_system": {
|
|
"cache": true,
|
|
"command": "node module_system/scripts/install.ts",
|
|
"inputs": ["{projectRoot}/build_config.yaml"],
|
|
"outputs": ["{projectRoot}/src/modules.js", "{projectRoot}/package.json", "{workspaceRoot}/pnpm-lock.yaml"]
|
|
},
|
|
"prebuild:rethemendex": {
|
|
"cache": true,
|
|
"executor": "nx:run-script",
|
|
"options": {
|
|
"script": "rethemendex"
|
|
},
|
|
"inputs": ["{projectRoot}/res/css/**/*"],
|
|
"outputs": ["{projectRoot}/res/css/_components.pcss"]
|
|
},
|
|
"build": {
|
|
"command": "webpack-cli --disable-interpret --progress --mode production",
|
|
"outputs": ["{projectRoot}/webapp"]
|
|
},
|
|
"start:i18n": {
|
|
"command": "node scripts/copy-res.ts -w",
|
|
"dependsOn": ["clean"],
|
|
"continuous": true
|
|
},
|
|
"start": {
|
|
"command": "webpack-dev-server --disable-interpret --output-path webapp --output-filename=bundles/_dev_/[name].js --output-chunk-filename=bundles/_dev_/[name].js --mode development",
|
|
"dependsOn": ["prebuild:*", "start:i18n", "^start"],
|
|
"continuous": true
|
|
},
|
|
"lint:types": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"tsc --noEmit --project ./tsconfig.module_system.json",
|
|
"tsc --noEmit",
|
|
"tsc --noEmit -p playwright"
|
|
],
|
|
"parallel": false
|
|
},
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"test:unit": {
|
|
"executor": "@nx/jest:jest",
|
|
"options": {
|
|
"jestConfig": "jest.config.ts"
|
|
},
|
|
"dependsOn": ["^build"]
|
|
}
|
|
}
|
|
}
|