mirror of
https://github.com/alexgo-io/reorg-notifier.git
synced 2026-01-12 14:44:32 +08:00
62 lines
1.5 KiB
JSON
62 lines
1.5 KiB
JSON
{
|
|
"name": "reorg-notifier",
|
|
"$schema": "node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "src",
|
|
"projectType": "application",
|
|
"tags": [],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/esbuild:esbuild",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"platform": "node",
|
|
"outputPath": "dist/reorg-notifier",
|
|
"format": ["cjs"],
|
|
"bundle": false,
|
|
"main": "src/main.ts",
|
|
"tsConfig": "tsconfig.app.json",
|
|
"assets": ["src/assets"],
|
|
"generatePackageJson": true,
|
|
"esbuildOptions": {
|
|
"sourcemap": true,
|
|
"outExtension": {
|
|
".js": ".js"
|
|
}
|
|
}
|
|
},
|
|
"configurations": {
|
|
"development": {},
|
|
"production": {
|
|
"generateLockfile": true,
|
|
"esbuildOptions": {
|
|
"sourcemap": false,
|
|
"outExtension": {
|
|
".js": ".js"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nx/js:node",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "reorg-notifier:build"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "reorg-notifier:build:development"
|
|
},
|
|
"production": {
|
|
"buildTarget": "reorg-notifier:build:production"
|
|
}
|
|
}
|
|
},
|
|
"docker-build": {
|
|
"dependsOn": ["build"],
|
|
"command": "docker build -f Dockerfile . -t reorg-notifier"
|
|
}
|
|
}
|
|
}
|