Skip to content

Commit

Permalink
Setup npm to replace Lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
joswarmer committed May 9, 2024
1 parent 8a9815e commit 1cc71d6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
20 changes: 7 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
"name": "freon4dsl",
"private": true,
"scripts": {
"alive": "echo I am alive",
"bootstrap": "lerna bootstrap",
"cleanup": "rm -rf ./node_modules",
"start": "lerna run start --stream --parallel",
"build": "lerna run build --stream",
"build-release": "lerna run build-release --stream",
"test": "lerna run test --stream",
"lint": "lerna run lint --stream",
"nuke": "lerna exec \"rm -f package-lock.json npm-shrinkwrap.json\" && lerna clean --yes && lerna bootstrap && lerna exec --stream -- \"test -f package-lock.json || npm install --package-lock-only\"",
"clean": "rm -rf node_modules/ && npm run clean -w packages --if-present",
"start": "npm run start --stream --parallel",
"build": "npm run build -w packages --if-present",
"build-release": "npm run build-release -w packages --if-present",
"lint": "npm run lint -w packages --if-present",
"setup": "npm run setup -w packages --if-present",
"test": "npm run test -w packages --if-present",
"prettier": "prettier --write --print-width 120 --tab-width 4 packages/*/src/**/*.ts packages/*/src/**/*.tsx packages/*/src/**/*.css"
},
"devDependencies": {
Expand Down Expand Up @@ -55,10 +53,6 @@
"ts-node": "^10.9.1",
"ts-pegjs": "0.2.6",
"tslib": "2.4.0",
"tslint": "6.1.3",
"tslint-config-prettier": "1.18.0",
"tslint-eslint-rules": "5.4.0",
"tslint-microsoft-contrib": "6.2.0",
"typescript": "4.5.5",
"typescript-svelte-plugin": "0.3.14"
},
Expand Down
1 change: 1 addition & 0 deletions packages/core-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"scripts": {
"clean": "rm -rf node_modules/",
"build": "rollup -c",
"build-release": "yarn run build",
"dev": "rollup -c -w",
Expand Down
1 change: 1 addition & 0 deletions packages/meta/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"freon": "dist/bin/freon-generator.js"
},
"scripts": {
"clean": "rm -rf node_modules/",
"cleanup": "bash ../../scripts/cleanup.sh",
"lang-parser": "pegjs src/languagedef/parser/LanguageGrammar.pegjs",
"scop-parser": "pegjs src/scoperdef/parser/ScoperGrammar.pegjs",
Expand Down
3 changes: 2 additions & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "MIT",
"type": "module",
"scripts": {
"clean": "rm -rf node_modules/",
"build": "echo No build for playground",
"build-app": "rollup -c",
"dev": "cross-env NODE_PORT=3002 rollup -c -w",
Expand Down Expand Up @@ -81,7 +82,7 @@
"clean-all-examples": "yarn clean-calculator && yarn clean-example && yarn clean-graphviz && yarn clean-heating && yarn clean-json && yarn clean-libraries && yarn clean-expressions && yarn clean-octopus && yarn clean-openhab && yarn clean-pi-languages && yarn clean-rules && yarn clean-taxrules",
"clean-config": "rm */*/config/FreonConfiguration.ts",
"clean-custom": "rm */*/*/Custom*.ts",
"clean": "yarn clean-config && yarn clean-custom"
"clean-code": "yarn clean-config && yarn clean-custom"
},
"devDependencies": {
"@material/theme": "^13.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"model-server": "./dist/bin/start-server.js"
},
"scripts": {
"clean": "rm -rf node_modules/",
"cleanup": "bash ../../scripts/cleanup.sh",
"start": "cross-env NODE_ENV=development NODE_PORT=3002 nodemon --watch 'src/**/*' -e ts,tsx --exec ts-node ./src/server/server-starter.ts",
"build": "tsc --build",
Expand Down
3 changes: 2 additions & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"type": "module",
"scripts": {
"clean": "rm -rf node_modules/",
"cleanup": "bash ../../scripts/cleanup.sh",
"meta-it": "bash ../../scripts/freon-dev.sh -v meta-it -l src/demo/defs/LanguageDefinition.ast -o src/demo",
"scope-it": "bash ../../scripts/freon-dev.sh -v scope-it -l src/demo/defs/LanguageDefinition.ast -s src/demo/defs/LanguageDefinition.scope -o src/demo",
Expand All @@ -37,7 +38,7 @@
"clean-config": "rm */*/config/FreonConfiguration.ts",
"clean-custom": "rm */*/*/Custom*.ts",
"clean-parser": "rm -r */*/*parse*",
"clean": "yarn clean-config && yarn clean-custom",
"clean-code": "yarn clean-config && yarn clean-custom",
"clean-demo": "bash ../../scripts/freon-dev.sh clean-it -d src/demo/defs -o src/demo",
"clean-octopus": "bash ../../scripts/freon-dev.sh clean-it -f -d src/octopus-small/defs -o src/octopus-small",
"clean-parser-conc": "bash ../../scripts/freon-dev.sh clean-it -f -d src/parser-basic-concepts/defs -o src/parser-basic-concepts",
Expand Down

0 comments on commit 1cc71d6

Please sign in to comment.