diff --git a/.changeset/nervous-masks-work.md b/.changeset/nervous-masks-work.md new file mode 100644 index 0000000..9195a4e --- /dev/null +++ b/.changeset/nervous-masks-work.md @@ -0,0 +1,5 @@ +--- +"site": patch +--- + +Add clean script diff --git a/apps/site/package.json b/apps/site/package.json index f26d510..510dee5 100644 --- a/apps/site/package.json +++ b/apps/site/package.json @@ -4,12 +4,14 @@ "private": true, "type": "module", "scripts": { + "clean": "rimraf dist", "dev": "vocs dev", "build": "vocs build -o dist", "preview": "vocs preview" }, "devDependencies": { "@guidanoli/cmioc": "workspace:*", + "rimraf": "^5.0.5", "vocs": "1.0.0-alpha.52" } } diff --git a/package.json b/package.json index 349ee2a..58af012 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,20 @@ "private": true, "scripts": { "build": "run-s build:packages build:apps", - "build:packages": "run-s build:core build:testsuite", "build:apps": "run-p build:cli build:site", - "build:core": "pnpm run --filter @guidanoli/cmioc build", "build:cli": "pnpm run --filter @guidanoli/cmioc-cli build", + "build:core": "pnpm run --filter @guidanoli/cmioc build", + "build:packages": "run-s build:core build:testsuite", "build:site": "pnpm run --filter site build", "build:testsuite": "pnpm run --filter testsuite build", "check-format": "prettier --check .", + "clean": "run-s clean:packages clean:apps", + "clean:apps": "run-s clean:cli clean:site", + "clean:cli": "pnpm run --filter @guidanoli/cmioc-cli clean", + "clean:core": "pnpm run --filter @guidanoli/cmioc clean", + "clean:packages": "run-s clean:core clean:testsuite", + "clean:site": "pnpm run --filter site clean", + "clean:testsuite": "pnpm run --filter testsuite clean", "format": "prettier --check --write .", "publish": "changeset publish", "release": "run-s build publish", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c22ca71..70ca6a3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,6 +63,9 @@ importers: '@guidanoli/cmioc': specifier: workspace:* version: link:../../packages/core + rimraf: + specifier: ^5.0.5 + version: 5.0.9 vocs: specifier: 1.0.0-alpha.52 version: 1.0.0-alpha.52(@types/node@20.14.10)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(rollup@4.18.1)(ts-node@10.9.2(@types/node@20.14.10)(typescript@5.5.3))(typescript@5.5.3)