Skip to content

Commit

Permalink
chore:frontend: centralize parcel deps; use nx
Browse files Browse the repository at this point in the history
use nx for build and watch
  • Loading branch information
Laurin-W committed Oct 18, 2023
1 parent 3a63c05 commit dfe59df
Show file tree
Hide file tree
Showing 14 changed files with 2,501 additions and 3,741 deletions.
1 change: 0 additions & 1 deletion src/frontend/lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"version": "0.6.0-alpha.1",
"npmClient": "yarn",
"useWorkspaces": true,
"useNx": true,
"packages": ["packages/*", "templates/**"],
"command": {
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": []
"cacheableOperations": ["build", "yalc:publish"]
}
}
},
Expand Down
14 changes: 9 additions & 5 deletions src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"scripts": {
"bootstrap": "lerna bootstrap",
"build": "lerna run build && yarn run yalc:publish",
"build": "nx run-many --target=build --all",
"version": "lerna version --force-publish='*' --exact --tag-version-prefix='frontend-v'",
"publish": "lerna publish from-package --dist-tag latest",
"prettier": "prettier --write '**/*.{js,ts,json}'",
Expand All @@ -14,9 +14,12 @@
"lint-files": "eslint --ext .js,.jsx,.ts,.tsx",
"typecheck": "tsc --noEmit",
"preinstall": "git config core.hooksPath .git-hooks",
"yalc:publish": "lerna exec --parallel --scope @semapps/** -- yalc publish --push --changed"
"test-watch": "nx watch --all -- nx run $NX_PROJECT_NAME:build"
},
"devDependencies": {
"@parcel/packager-ts": "^2.10.0",
"@parcel/transformer-typescript-types": "^2.10.0",
"parcel": "^2.10.0",
"@types/react": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
Expand All @@ -29,11 +32,12 @@
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"lerna": "^3.19.0",
"nx": "16.5.1",
"lerna": "^7.4.1",
"nx": "^16.10.0",
"prettier": "^3.0.3",
"typescript": "^5.1.6",
"yalc": "1.0.0-pre.53"
"yalc": "1.0.0-pre.53",
"nodemon": "^3.0.1"
},
"workspaces": [
"packages/*",
Expand Down
8 changes: 3 additions & 5 deletions src/frontend/packages/activitypub-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist"
],
"scripts": {
"build": "parcel build",
"watch": "parcel watch"
"build": "parcel build && yalc publish --push --changed",
"watch": "nodemon --watch src --exec 'yarn build'"
},
"dependencies": {
"@semapps/auth-provider": "0.6.0-alpha.1",
Expand All @@ -36,7 +36,5 @@
"publishConfig": {
"access": "public"
},
"devDependencies": {
"parcel": "^2.9.3"
}
"devDependencies": {}
}
6 changes: 1 addition & 5 deletions src/frontend/packages/auth-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,5 @@
"publishConfig": {
"access": "public"
},
"devDependencies": {
"parcel": "^2.9.3",
"yalc": "1.0.0-pre.53",
"nodemon": "3.0.1"
}
"devDependencies": {}
}
7 changes: 2 additions & 5 deletions src/frontend/packages/date-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dist"
],
"scripts": {
"build": "yarn typecheck && parcel build",
"watch": "parcel watch",
"build": "parcel build && yalc publish --push --changed",
"watch": "nodemon --watch src --exec 'yarn build'",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -37,9 +37,6 @@
"devDependencies": {
"@mui/material": "^5.13.1",
"@mui/styles": "^5.13.1",
"@parcel/packager-ts": "^2.9.3",
"@parcel/transformer-typescript-types": "^2.9.3",
"parcel": "^2.9.3",
"react": "^18.2.0",
"react-admin": "^4.11.0",
"react-router-dom": "^6.1.0"
Expand Down
8 changes: 3 additions & 5 deletions src/frontend/packages/field-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist"
],
"scripts": {
"build": "parcel build",
"watch": "parcel watch"
"build": "parcel build && yalc publish --push --changed",
"watch": "nodemon --watch src --exec 'yarn build'"
},
"dependencies": {
"@semapps/semantic-data-provider": "0.6.0-alpha.1",
Expand All @@ -30,7 +30,5 @@
"publishConfig": {
"access": "public"
},
"devDependencies": {
"parcel": "^2.9.3"
}
"devDependencies": {}
}
8 changes: 3 additions & 5 deletions src/frontend/packages/geo-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist"
],
"scripts": {
"build": "parcel build",
"watch": "parcel watch"
"build": "parcel build && yalc publish --push --changed",
"watch": "nodemon --watch src --exec 'yarn build'"
},
"dependencies": {
"@react-leaflet/core": "^2.1.0",
Expand All @@ -35,7 +35,5 @@
"publishConfig": {
"access": "public"
},
"devDependencies": {
"parcel": "^2.9.3"
}
"devDependencies": {}
}
8 changes: 3 additions & 5 deletions src/frontend/packages/input-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist"
],
"scripts": {
"build": "parcel build",
"watch": "parcel watch"
"build": "parcel build && yalc publish --push --changed",
"watch": "nodemon --watch src --exec 'yarn build'"
},
"dependencies": {
"@semapps/semantic-data-provider": "0.6.0-alpha.1"
Expand All @@ -25,7 +25,5 @@
"publishConfig": {
"access": "public"
},
"devDependencies": {
"parcel": "^2.9.3"
}
"devDependencies": {}
}
8 changes: 3 additions & 5 deletions src/frontend/packages/interop-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist"
],
"scripts": {
"build": "parcel build",
"watch": "parcel watch"
"build": "parcel build && yalc publish --push --changed",
"watch": "nodemon --watch src --exec 'yarn build'"
},
"dependencies": {
"@semapps/input-components": "0.6.0-alpha.1",
Expand All @@ -32,7 +32,5 @@
"publishConfig": {
"access": "public"
},
"devDependencies": {
"parcel": "^2.9.3"
}
"devDependencies": {}
}
8 changes: 3 additions & 5 deletions src/frontend/packages/list-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist"
],
"scripts": {
"build": "parcel build",
"watch": "parcel watch"
"build": "parcel build && yalc publish --push --changed",
"watch": "nodemon --watch src --exec 'yarn build'"
},
"dependencies": {
"@semapps/semantic-data-provider": "0.6.0-alpha.1",
Expand All @@ -29,7 +29,5 @@
"publishConfig": {
"access": "public"
},
"devDependencies": {
"parcel": "^2.9.3"
}
"devDependencies": {}
}
7 changes: 2 additions & 5 deletions src/frontend/packages/markdown-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dist"
],
"scripts": {
"build": "yarn typecheck && parcel build",
"watch": "parcel watch",
"build": "parcel build && yalc publish --push --changed",
"watch": "nodemon --watch src --exec 'yarn build'",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -31,9 +31,6 @@
},
"devDependencies": {
"@mui/material": "^5.13.1",
"@parcel/packager-ts": "^2.9.3",
"@parcel/transformer-typescript-types": "^2.9.3",
"parcel": "^2.9.3",
"react": "^18.2.0",
"react-admin": "^4.11.0"
}
Expand Down
8 changes: 3 additions & 5 deletions src/frontend/packages/semantic-data-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist"
],
"scripts": {
"build": "parcel build",
"watch": "parcel watch"
"build": "parcel build && yalc publish --push --changed",
"watch": "nodemon --watch src --exec 'yarn build'"
},
"dependencies": {
"@rdfjs/data-model": "^1.3.4",
Expand All @@ -32,8 +32,6 @@
"publishConfig": {
"access": "public"
},
"devDependencies": {
"parcel": "^2.9.3"
},
"devDependencies": {},
"gitHead": "4fa70690c5932b8c9d9cb5eb4c36a10f687703ff"
}
Loading

0 comments on commit dfe59df

Please sign in to comment.