Skip to content

Commit

Permalink
ensure each package minus the frontend doesnt need nx
Browse files Browse the repository at this point in the history
Signed-off-by: Kaden Emley <[email protected]>
  • Loading branch information
kemley76 committed Jul 30, 2024
1 parent 826dd13 commit 8796c90
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
16 changes: 13 additions & 3 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"make:view": "vue-cli-service make:view",
"prepack": "vue-cli-service build --dest dist && cp ../../README.md README.md && cp package.json package.json.orig && cat package.json.orig | jq '.dependencies = (.dependencies | with_entries(select(.key | contains(\"express\"))))' > package.json",
"postpack": "mv package.json.orig package.json && rm README.md",
"start:dev": "yarn workspace @mitre/hdf-converters build && vue-cli-service serve",
"start:dev": "vue-cli-service serve",
"test": "jest"
},
"dependencies": {
Expand Down Expand Up @@ -122,6 +122,7 @@
"chai-as-promised": "^7.1.1",
"jest": "^27.0.6",
"jest-useragent-mock": "^0.1.1",
"nx": "^19.5.3",
"sinon": "^18.0.0",
"ts-jest": "^29.1.0",
"vue-jest": "^3.0.7"
Expand All @@ -134,10 +135,19 @@
"issues": "/issues/new/choose",
"readme": "README.md",
"nx": {
"implicitDependencies": ["@mitre/hdf-converters"],
"implicitDependencies": [
"@mitre/hdf-converters"
],
"targets": {
"start:dev": {
"dependsOn": [
"^build"
]
},
"test": {
"dependsOn": ["^build"]
"dependsOn": [
"^build"
]
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"test"
],
"scripts": {
"backend": "yarn workspace heimdall-server nx",
"backend": "yarn workspace heimdall-server",
"build": "nx run-many --target=build --all",
"cypress-test": "yarn workspace @heimdall/cypress-tests nx",
"cypress-test": "yarn workspace @heimdall/cypress-tests",
"frontend": "yarn workspace @mitre/heimdall-lite nx",
"hdf-converters": "yarn workspace @mitre/hdf-converters nx",
"inspecjs": "yarn workspace inspecjs nx",
"hdf-converters": "yarn workspace @mitre/hdf-converters",
"inspecjs": "yarn workspace inspecjs",
"lint": "nx run-many --target=lint --all",
"lint:ci": "nx run-many --target=lint:ci --all",
"pack:all": "nx exec --parallel -p inspecjs @mitre/hdf-converters @mitre/heimdall-lite -- yarn pack",
Expand Down

0 comments on commit 8796c90

Please sign in to comment.