Skip to content

Commit

Permalink
Merge pull request #265 from Availity/feat/authorize
Browse files Browse the repository at this point in the history
fix(nx-generator): nx updates
  • Loading branch information
LauRoxx authored Apr 23, 2024
2 parents f240c58 + ae81c98 commit 2f3c44a
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 85 deletions.
37 changes: 11 additions & 26 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,17 @@
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
],
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"cache": true
},
"build-storybook": {
"inputs": [
"default",
"^production",
"{projectRoot}/.storybook/**/*",
"{projectRoot}/tsconfig.storybook.json"
],
"inputs": ["default", "^production", "{projectRoot}/.storybook/**/*", "{projectRoot}/tsconfig.storybook.json"],
"cache": true
},
"@nx/jest:jest": {
"cache": true,
"inputs": [
"default",
"^production",
"{workspaceRoot}/jest.preset.js"
],
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"options": {
"passWithNoTests": true
},
Expand All @@ -38,18 +24,17 @@
}
},
"@nx/eslint:lint": {
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json"
],
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
},
"@nx/js:tsc": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
}
},
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [
"default",
"!{projectRoot}/.eslintrc.json",
Expand Down
11 changes: 9 additions & 2 deletions packages/nx-generator/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["./**/files"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand All @@ -15,7 +15,14 @@
"rules": {}
},
{
"files": ["./package.json", "./generators.json", "./executors.json"],
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": "error"
}
},
{
"files": ["./package.json", "./generators.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/nx-plugin-checks": "error"
Expand Down
10 changes: 0 additions & 10 deletions packages/nx-generator/executors.json

This file was deleted.

12 changes: 9 additions & 3 deletions packages/nx-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"name": "@availity/nx-generator",
"version": "0.0.1",
"main": "src/index.js",
"generators": "./generators.json",
"executors": "./executors.json"
"dependencies": {
"@nx/devkit": "18.2.4",
"tslib": "^2.3.0"
},
"type": "commonjs",
"main": "./src/index.js",
"typings": "./src/index.d.ts",
"private": true,
"generators": "./generators.json"
}
11 changes: 0 additions & 11 deletions packages/nx-generator/src/executors/build/executor.spec.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/nx-generator/src/executors/build/executor.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/nx-generator/src/executors/build/schema.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/nx-generator/src/executors/build/schema.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"tags": [],
"targets": {
"lint": {
"executor": "@nx/eslint:eslint",
"executor": "@nx/eslint:lint",
"options": {
"eslintConfig": ".eslintrc.json",
"lintFilePatterns": ["packages/<%= fileName %>/**/*.{js,ts}"],
"silent": false,
"fix": false,
"cache": true,
Expand All @@ -23,10 +22,9 @@
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["coverage/<%= fileName %>"],
"outputs": ["{workspaceRoot}/coverage/<%= fileName %>"],
"options": {
"jestConfig": "packages/<%= fileName %>/jest.config.js",
"passWithNoTests": true
"jestConfig": "packages/<%= fileName %>/jest.config.js"
}
},
"version": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Card as MuiCard, CardProps as MuiCardProps } from '@mui/material';
// For bundling purposes, always use the direct import for an mui component, i.e. '@mui/material/xxx'
import MuiCard, { CardProps as MuiCardProps } from '@mui/material/Card';

export interface <%= componentName %>Props extends MuiCardProps {
children?: React.ReactNode;
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion packages/nx-generator/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
export {};
3 changes: 3 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,9 @@ __metadata:
"@availity/nx-generator@workspace:packages/nx-generator":
version: 0.0.0-use.local
resolution: "@availity/nx-generator@workspace:packages/nx-generator"
dependencies:
"@nx/devkit": 18.2.4
tslib: ^2.3.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 2f3c44a

Please sign in to comment.