Skip to content

Commit

Permalink
feat: add project json file
Browse files Browse the repository at this point in the history
  • Loading branch information
khoilen committed Dec 2, 2024
1 parent 6359721 commit 2de09d4
Show file tree
Hide file tree
Showing 4 changed files with 197 additions and 83 deletions.
82 changes: 41 additions & 41 deletions apps/base-ui-toolkit-react/project.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
{
"targets": {
"typecheck": {
"executor": "nx:run-commands",
"options": {
"commands": ["tsc -p tsconfig.app.json --noEmit"],
"cwd": "apps/base-ui-toolkit-react",
"forwardAllArgs": false
}
}
},
"test": {
"executor": "@nrwl/vite:test",
"outputs": ["coverage/apps/base-ui-toolkit-react"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "../../coverage/apps/sample-react-app"
}
},
"build": {
"executor": "@nrwl/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/base-ui-toolkit-react"
"targets": {
"typecheck": {
"executor": "nx:run-commands",
"options": {
"commands": ["tsc -p tsconfig.app.json --noEmit"],
"cwd": "apps/base-ui-toolkit-react",
"forwardAllArgs": false
}
}
},
"configurations": {
"development": {
"mode": "development"
},
"production": {
"mode": "production"
}
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"apps/base-ui-toolkit-react/**/*.{ts,tsx,js,jsx}"
]
"test": {
"executor": "@nrwl/vite:test",
"outputs": ["coverage/apps/base-ui-toolkit-react"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "../../coverage/apps/sample-react-app"
}
},
"build": {
"executor": "@nrwl/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/base-ui-toolkit-react"
},
"configurations": {
"development": {
"mode": "development"
},
"production": {
"mode": "production"
}
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": [
"apps/base-ui-toolkit-react/**/*.{ts,tsx,js,jsx}"
]
}
}
}
}
11 changes: 5 additions & 6 deletions apps/nt-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"packageManager": "[email protected]",
"scripts": {
"build": "pnpm exec tailwindcss -i ./src/styles.scss -o ./dist/output.css --minify"
"build:css": "pnpm exec postcss src/styles.css -o dist/styles.css",
"publish:css": "pnpm run build:css && npm publish dist/apps/nt-css"
},
"engines": {
"node": "20"
Expand All @@ -14,11 +15,9 @@
"license": "ISC",
"devDependencies": {
"@types/node": "20.4.9",
"tailwindcss": "3.4.0",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.0",
"typescript": "^5.6.3"
},
"dependencies": {
"autoprefixer": "10.4.16",
"postcss": "^8.4.32"
}
}
13 changes: 13 additions & 0 deletions apps/nt-css/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "nt-css",
"targets": {
"build": {
"executor": "@nrwl/node:build",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/nt-css",
"assets": ["src/**/*"]
}
}
}
}
Loading

0 comments on commit 2de09d4

Please sign in to comment.