Skip to content

Commit

Permalink
fix: tup-274 core-styles dependencies to root (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Oct 28, 2022
1 parent 9469e72 commit 6192821
Show file tree
Hide file tree
Showing 4 changed files with 16,422 additions and 10,099 deletions.
4 changes: 2 additions & 2 deletions libs/core-styles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/TACC/Core-Styles",
"repository": "git@github.com:TACC/Core-Styles.git",
"dependencies": {
"peerDependencies": {
"commander": "^9.0.0",
"cssnano": "^4.1.10",
"js-yaml": "^3.13.1",
Expand All @@ -37,7 +37,7 @@
"postcss-preset-env": "^6.7.0",
"postcss-replace": "1.1.3"
},
"// dependencies": {
"// peerDependencies": {
"commander": "To create CLI",
"cssnano": "To minify CSS",
"js-yaml": "To parse PostCSS configs",
Expand Down
40 changes: 9 additions & 31 deletions libs/core-styles/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"projectType": "library",
"targets": {
"lint": {
"executor": "@nrwl/workspace:run-commands",
"executor": "nx:run-commands",
"options": {
"commands": [
"nx lint-scripts core-styles",
Expand All @@ -21,7 +21,7 @@
}
},
"lint-styles": {
"executor": "@nrwl/workspace:run-commands",
"executor": "nx:run-commands",
"options": {
"commands": ["npx stylelint libs/core-styles/**/*.css"]
}
Expand All @@ -35,36 +35,14 @@
}
},
"build": {
"executor": "@nrwl/workspace:run-commands",
"executor": "nx:run-commands",
"options": {
"commands": ["nx build-local core-styles", "nx build-root core-styles"],
"parallel": false
}
},
"build-local": {
"executor": "@nrwl/workspace:run-commands",
"options": {
"commands": ["npm ci", "npm run build"],
"cwd": "libs/core-styles",
"parallel": false
}
},
"build-root": {
"executor": "@nrwl/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/core-styles",
"tsConfig": "libs/core-styles/tsconfig.lib.json",
"packageJson": "libs/core-styles/package.json",
"main": "libs/core-styles/src/index.js",
"assets": [
"libs/core-styles/README.md",
"libs/core-styles/**/*.js",
"libs/core-styles/dist/**/*.css",
"libs/core-styles/src/lib/_imports/**/*.css",
"libs/core-styles/src/lib/_themes/*.json",
"libs/core-styles/src/.postcssrc.base.yml"
]
"commands": [
{
"command": "npm run build"
}
],
"cwd": "libs/core-styles"
}
}
},
Expand Down
Loading

0 comments on commit 6192821

Please sign in to comment.