refactor(scripts): Reorganize Build Scripts (#1847)
This commit is contained in:
committed by
GitHub
parent
d3313a460e
commit
8108df39a1
+16
-12
@@ -5,20 +5,24 @@
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"clearMultisrc": "find . -type f -wholename \"*plugins*\\[*\\]*.[t,j]s\" -delete",
|
||||
"clearMultisrc-windows": "powershell -Command \"Get-ChildItem -Recurse -Include \\\"*].ts\\\",\\\"*].js\\\" | Where-Object { $_.FullName -like \\\"*plugins*\\\" } | Remove-Item\"",
|
||||
"clean:multisrc": "find . -type f -wholename \"*plugins*\\[*\\]*.[t,j]s\" -delete",
|
||||
"clean:multisrc:windows": "powershell -Command \"Get-ChildItem -Recurse -Include \\\"*].ts\\\",\\\"*].js\\\" | Where-Object { $_.FullName -like \\\"*plugins*\\\" } | Remove-Item\"",
|
||||
"dev": "vite",
|
||||
"generate": "node ./scripts/multisrc/generate.js",
|
||||
"host-linux": "chmod +x ./host.sh && ./host.sh",
|
||||
"host-windows": "powershell ./host.ps1",
|
||||
"host-dev": "npx tsc --project tsconfig.production.json && node --env-file=.env ./scripts/json_plugins.js && serve",
|
||||
"icons": "npm run clearMultisrc && npm run generate && npx tsc --project tsconfig.production.json && npm run json && node ./scripts/icon_reloading.js",
|
||||
"json": "node ./scripts/json_plugins.js",
|
||||
"dev:start": "node generate-plugin-index.js && vite",
|
||||
"build:multisrc": "node ./scripts/multisrc/generate-multisrc-plugins.js",
|
||||
"build:compile": "npx tsc --project tsconfig.production.json",
|
||||
"build:manifest": "node ./scripts/build-plugin-manifest.js",
|
||||
"build:manifest:dev": "node --env-file=.env ./scripts/build-plugin-manifest.js",
|
||||
"build:icons": "npm run clean:multisrc && npm run build:multisrc && npm run build:compile && npm run build:manifest && node ./scripts/download-plugin-icons.js",
|
||||
"build:full": "npm run clean:multisrc && npm run build:multisrc && npm run build:compile && npm run build:manifest",
|
||||
"publish:plugins": "chmod +x ./publish-plugins.sh && ./publish-plugins.sh",
|
||||
"publish:plugins:windows": "powershell ./publish-plugins.ps1",
|
||||
"serve:dev": "npm run build:compile && npm run build:manifest:dev && serve",
|
||||
"lint": "npx eslint .",
|
||||
"prepare": "husky",
|
||||
"prettier": "prettier --write \"./**/*.{js,ts}\"",
|
||||
"start": "node importPlugins.js && vite",
|
||||
"test": "exit 0"
|
||||
"lint:fix": "npx eslint . --fix",
|
||||
"format": "prettier --write \"./**/*.{js,ts}\"",
|
||||
"format:check": "prettier --check \"./**/*.{js,ts}\"",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"author": "LNReader",
|
||||
"license": "MIT",
|
||||
|
||||
Reference in New Issue
Block a user