Skip to content

Commit edd3dc2

Browse files
Merge pull request #631 from universal-ember/add-dev
Add dev command
2 parents 0e75ad9 + 848ee3b commit edd3dc2

9 files changed

Lines changed: 27 additions & 19 deletions

File tree

docs-app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222
"lint:prettier": "pnpm -w exec lint prettier",
2323
"lint:types": "ember-tsc --noEmit",
2424
"start": "pnpm vite",
25+
"dev": "vite",
2526
"sync": "echo 'pnpm is syncing injected deps. (this is configured in .npmrc)'",
2627
"test": "vite build --mode development && ember test --path dist",
2728
"test:ember": "vite build --mode development && ember test --path dist"
2829
},
2930
"dependencies": {
3031
"@shikijs/rehype": "^3.14.0",
31-
"@universal-ember/docs-support": "^0.8.1",
32+
"@universal-ember/docs-support": "workspace:*",
3233
"assert": "^2.0.0",
3334
"change-case": "^5.4.4",
3435
"decorator-transforms": "^2.3.0",

ember-primitives/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"lint:types": "ember-tsc --noEmit --declaration false --declarationMap false --emitDeclarationOnly false",
3232
"pack": "pnpm pack",
3333
"start": "rollup --config --watch",
34+
"dev": "rollup --config --watch --no-watch.clearScreen",
3435
"test": "echo 'A v2 addon does not have tests, run tests in test-app'",
3536
"prepack": "pnpm build"
3637
},

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
"license": "MIT",
1010
"author": "",
1111
"scripts": {
12-
"_start:docs": "pnpm --filter docs-app start",
13-
"_start:package": "pnpm --filter 'ember-primitives' start --no-watch.clearScreen",
14-
"_start:tests": "pnpm --filter test-app start",
1512
"build": "turbo run build --output-logs errors-only",
1613
"lint": "turbo run _:lint --output-logs errors-only",
1714
"lint:fix": "turbo run _:lint:fix --output-logs errors-only",
18-
"start": "pnpm build; concurrently 'npm:_start:*' --prefix ' ' --restart-after 5000 --restart-tries -1",
15+
"dev": "pnpm turbo dev --ui tui",
1916
"sync": "pnpm --filter '*' sync",
2017
"test": "turbo run test --output-logs errors-only"
2118
},

packages/docs-support/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"author": "nullvoxpopuli",
1111
"exports": {
1212
".": {
13-
"types": "./declarations/index.gts.d.ts",
13+
"types": "./declarations/index.d.ts",
1414
"default": "./dist/index.js"
1515
},
1616
"./tailwind": {
1717
"import": "./tailwind.mjs"
1818
},
1919
"./*": {
20-
"types": "./declarations/*.gts.d.ts",
20+
"types": "./declarations/*.d.ts",
2121
"default": "./dist/*.js"
2222
},
2323
"./addon-main.js": "./addon-main.cjs"
@@ -46,6 +46,7 @@
4646
"lint:js:fix": "eslint . --fix",
4747
"lint:types": "ember-tsc --noEmit",
4848
"prepack": "pnpm build",
49+
"dev": "rollup --config --watch --no-watch.clearScreen",
4950
"start": "rollup --config --watch --no-watch.clearScreen"
5051
},
5152
"dependencies": {

packages/docs-support/rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
output: addon.output(),
1111

1212
plugins: [
13-
addon.publicEntrypoints(["index.js", "template-registry.js"]),
13+
addon.publicEntrypoints(["index.js", "template-registry.js", "icons.js"]),
1414
addon.dependencies(),
1515
babel({
1616
extensions: [".js", ".gjs", ".ts", ".gts"],

packages/which-heading-do-i-need/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"dist"
2626
],
2727
"scripts": {
28+
"dev": "rollup --config --watch --no-watch.clearScreen",
2829
"build": "rollup --config",
2930
"format": "prettier . --cache --write",
3031
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto",

pnpm-lock.yaml

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-app/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"lint:prettier": "pnpm -w exec lint prettier",
2222
"lint:types": "ember-tsc --noEmit",
2323
"start": "pnpm vite",
24+
"dev": "vite",
2425
"sync": "echo 'pnpm is syncing injected deps. (this is configured in .npmrc)'",
2526
"test": "vite build --mode development && ember test --path dist",
2627
"test:ember": "vite build --mode development && ember test --path dist"
@@ -31,8 +32,8 @@
3132
"ember-resources": "^7.0.7",
3233
"ember-route-template": "^1.0.3",
3334
"qunit-assertions-extra": "^1.0.3",
34-
"which-heading-do-i-need": "workspace:*",
35-
"reactiveweb": "^1.9.1"
35+
"reactiveweb": "^1.9.1",
36+
"which-heading-do-i-need": "workspace:*"
3637
},
3738
"dependenciesMeta": {
3839
"ember-primitives": {
@@ -43,6 +44,7 @@
4344
"@babel/core": "^7.28.5",
4445
"@babel/plugin-transform-runtime": "^7.28.5",
4546
"@babel/plugin-transform-typescript": "^7.28.5",
47+
"@babel/runtime": "^7.28.4",
4648
"@ember/app-tsconfig": "^1.0.0",
4749
"@ember/optional-features": "^2.3.0",
4850
"@ember/string": "^4.0.0",

turbo.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@
4747
/////////////////////////////////////////////////
4848
/////////////////////////////////////////////////
4949
"dev": {
50-
"dependsOn": ["^dev"],
51-
"cache": false
50+
"dependsOn": ["^build"],
51+
"cache": false,
52+
"persistent": true
5253
},
5354
"start": {
5455
"dependsOn": ["_syncPnpm", "^build"],
@@ -76,8 +77,9 @@
7677
// production
7778
"build": {
7879
"outputs": ["dist/**", "dist-types/**", "declarations/**", "docs.json"],
79-
"dependsOn": ["_syncPnpm"]
80+
"dependsOn": ["_syncPnpm", "//#sync"]
8081
},
82+
"//#sync": {},
8183
"_syncPnpm": {
8284
"dependsOn": ["^build"],
8385
"cache": false
@@ -123,7 +125,7 @@
123125
"lint:js": { "outputs": [], "dependsOn": ["^build"] },
124126
"lint:hbs": { "outputs": [] },
125127
"lint:prettier": { "outputs": [] },
126-
"lint:types": { "outputs": [], "dependsOn": ["_syncPnpm"] },
128+
"lint:types": { "outputs": [], "dependsOn": ["^build"] },
127129
"lint:package": { "outputs": [], "dependsOn": ["build"] },
128130
"lint:published-types": { "outputs": [], "dependsOn": ["pack"] },
129131

0 commit comments

Comments
 (0)