chore(repo): format fixes
This commit is contained in:
parent
16c61b7001
commit
821fc07723
@ -6,6 +6,24 @@
|
||||
"source": "/packages/nx/src",
|
||||
"generators": [],
|
||||
"executors": [
|
||||
{
|
||||
"name": "noop",
|
||||
"implementation": "/packages/nx/src/executors/noop/noop.impl.ts",
|
||||
"schema": {
|
||||
"title": "Noop",
|
||||
"description": "An executor that does nothing",
|
||||
"type": "object",
|
||||
"cli": "nx",
|
||||
"outputCapture": "pipe",
|
||||
"properties": {},
|
||||
"additionalProperties": false,
|
||||
"presets": []
|
||||
},
|
||||
"description": "An executor that does nothing",
|
||||
"aliases": [],
|
||||
"hidden": false,
|
||||
"path": "/packages/nx/src/executors/noop/schema.json"
|
||||
},
|
||||
{
|
||||
"name": "run-commands",
|
||||
"implementation": "/packages/nx/src/executors/run-commands/run-commands.impl.ts",
|
||||
|
||||
@ -172,7 +172,10 @@
|
||||
{
|
||||
"name": "nx",
|
||||
"path": "generated/packages/nx.json",
|
||||
"schemas": { "executors": ["run-commands", "run-script"], "generators": [] }
|
||||
"schemas": {
|
||||
"executors": ["noop", "run-commands", "run-script"],
|
||||
"generators": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "nx-plugin",
|
||||
|
||||
@ -128,13 +128,13 @@ describe('run-one', () => {
|
||||
const originalWorkspace = readProjectConfig(myapp);
|
||||
updateProjectConfig(myapp, (config) => {
|
||||
config.targets.prep = {
|
||||
executor: "nx:run-commands",
|
||||
executor: 'nx:run-commands',
|
||||
options: {
|
||||
command: "echo PREP"
|
||||
}
|
||||
command: 'echo PREP',
|
||||
},
|
||||
};
|
||||
config.targets.build.dependsOn = [
|
||||
"prep",
|
||||
'prep',
|
||||
{
|
||||
target: 'build',
|
||||
projects: 'dependencies',
|
||||
@ -150,7 +150,7 @@ describe('run-one', () => {
|
||||
expect(output).toContain(myapp);
|
||||
expect(output).toContain(mylib1);
|
||||
expect(output).toContain(mylib2);
|
||||
expect(output).toContain("PREP");
|
||||
expect(output).toContain('PREP');
|
||||
|
||||
updateProjectConfig(myapp, () => originalWorkspace);
|
||||
}, 10000);
|
||||
|
||||
4
nx.json
4
nx.json
@ -2,9 +2,7 @@
|
||||
"implicitDependencies": {
|
||||
"package.json": "*",
|
||||
".eslintrc.json": "*",
|
||||
"scripts/vercel/*": [
|
||||
"nx-dev"
|
||||
],
|
||||
"scripts/vercel/*": ["nx-dev"],
|
||||
".circleci/config.yml": "*",
|
||||
"tools/eslint-rules/**/*": "*"
|
||||
},
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nrwl/nx-source",
|
||||
"version": "14.0.3",
|
||||
"version": "14.1.0-beta.2",
|
||||
"description": "Smart, Fast and Extensible Build System",
|
||||
"homepage": "https://nx.dev",
|
||||
"private": true,
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
{
|
||||
"executors": {
|
||||
"noop": {
|
||||
"implementation": "./src/executors/noop/noop.impl",
|
||||
"schema": "./src/executors/noop/schema.json",
|
||||
"description": "An executor that does nothing"
|
||||
},
|
||||
"run-commands": {
|
||||
"implementation": "./src/executors/run-commands/run-commands.impl",
|
||||
"schema": "./src/executors/run-commands/schema.json",
|
||||
|
||||
@ -126,7 +126,7 @@ export interface TargetConfiguration {
|
||||
/**
|
||||
* This describes other targets that a target depends on.
|
||||
*/
|
||||
dependsOn?: (TargetDependencyConfig|string)[];
|
||||
dependsOn?: (TargetDependencyConfig | string)[];
|
||||
|
||||
/**
|
||||
* Target's options. They are passed in to the executor.
|
||||
|
||||
@ -524,6 +524,7 @@ export function globForProjectFiles(
|
||||
projectGlobCacheKey = cacheKey;
|
||||
|
||||
const projectGlobPatterns: string[] = [
|
||||
'project.json',
|
||||
'**/project.json',
|
||||
...getGlobPatternsFromPackageManagerWorkspaces(root),
|
||||
];
|
||||
|
||||
@ -7,23 +7,15 @@
|
||||
"presets": [
|
||||
{
|
||||
"name": "Arguments forwarding",
|
||||
"keys": [
|
||||
"commands"
|
||||
]
|
||||
"keys": ["commands"]
|
||||
},
|
||||
{
|
||||
"name": "Custom done conditions",
|
||||
"keys": [
|
||||
"commands",
|
||||
"readyWhen"
|
||||
]
|
||||
"keys": ["commands", "readyWhen"]
|
||||
},
|
||||
{
|
||||
"name": "Setting the cwd",
|
||||
"keys": [
|
||||
"commands",
|
||||
"cwd"
|
||||
]
|
||||
"keys": ["commands", "cwd"]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
@ -81,9 +73,7 @@
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"command"
|
||||
]
|
||||
"required": ["command"]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
|
||||
@ -212,7 +212,10 @@ export function createTasksForProjectToRun(
|
||||
params: Omit<TaskParams, 'project' | 'errorIfCannotFindConfiguration'>,
|
||||
projectGraph: ProjectGraph,
|
||||
initiatingProject: string | null,
|
||||
defaultDependencyConfigs: Record<string, (TargetDependencyConfig|string)[]> = {}
|
||||
defaultDependencyConfigs: Record<
|
||||
string,
|
||||
(TargetDependencyConfig | string)[]
|
||||
> = {}
|
||||
) {
|
||||
const tasksMap: Map<string, Task> = new Map<string, Task>();
|
||||
const seenSet = new Set<string>();
|
||||
@ -251,7 +254,10 @@ function addTasksForProjectTarget(
|
||||
overrides,
|
||||
errorIfCannotFindConfiguration,
|
||||
}: TaskParams,
|
||||
defaultDependencyConfigs: Record<string, (TargetDependencyConfig|string)[]> = {},
|
||||
defaultDependencyConfigs: Record<
|
||||
string,
|
||||
(TargetDependencyConfig | string)[]
|
||||
> = {},
|
||||
projectGraph: ProjectGraph,
|
||||
originalTargetExecutor: string,
|
||||
tasksMap: Map<string, Task>,
|
||||
@ -349,7 +355,7 @@ function addTasksForProjectDependencyConfig(
|
||||
overrides,
|
||||
}: Pick<TaskParams, 'target' | 'configuration' | 'overrides'>,
|
||||
dependencyConfig: TargetDependencyConfig,
|
||||
defaultDependencyConfigs: Record<string, (TargetDependencyConfig|string)[]>,
|
||||
defaultDependencyConfigs: Record<string, (TargetDependencyConfig | string)[]>,
|
||||
projectGraph: ProjectGraph,
|
||||
originalTargetExecutor: string,
|
||||
tasksMap: Map<string, Task>,
|
||||
|
||||
@ -8,7 +8,7 @@ export class TaskGraphCreator {
|
||||
private readonly projectGraph: ProjectGraph,
|
||||
private readonly defaultTargetDependencies: Record<
|
||||
string,
|
||||
(TargetDependencyConfig|string)[]
|
||||
(TargetDependencyConfig | string)[]
|
||||
>
|
||||
) {}
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ export function getCommandAsString(task: Task) {
|
||||
|
||||
export function getDependencyConfigs(
|
||||
{ project, target }: { project: string; target: string },
|
||||
defaultDependencyConfigs: Record<string, (TargetDependencyConfig|string)[]>,
|
||||
defaultDependencyConfigs: Record<string, (TargetDependencyConfig | string)[]>,
|
||||
projectGraph: ProjectGraph
|
||||
): TargetDependencyConfig[] | undefined {
|
||||
// DependencyConfigs configured in workspace.json override configurations at the root.
|
||||
|
||||
@ -9,87 +9,36 @@
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"skipLibCheck": true,
|
||||
"types": [
|
||||
"node",
|
||||
"jest"
|
||||
],
|
||||
"lib": [
|
||||
"es2019"
|
||||
],
|
||||
"types": ["node", "jest"],
|
||||
"lib": ["es2019"],
|
||||
"declaration": true,
|
||||
"resolveJsonModule": true,
|
||||
"baseUrl": ".",
|
||||
"rootDir": ".",
|
||||
"paths": {
|
||||
"@nrwl/angular": [
|
||||
"./packages/angular"
|
||||
],
|
||||
"@nrwl/angular/*": [
|
||||
"./packages/angular/*"
|
||||
],
|
||||
"@nrwl/cli": [
|
||||
"./packages/cli"
|
||||
],
|
||||
"@nrwl/cli/*": [
|
||||
"./packages/cli/*"
|
||||
],
|
||||
"@nrwl/cypress": [
|
||||
"./packages/cypress"
|
||||
],
|
||||
"@nrwl/cypress/*": [
|
||||
"./packages/cypress/*"
|
||||
],
|
||||
"@nrwl/detox": [
|
||||
"./packages/detox"
|
||||
],
|
||||
"@nrwl/devkit": [
|
||||
"./packages/devkit"
|
||||
],
|
||||
"@nrwl/devkit/ngcli-adapter": [
|
||||
"./packages/devkit/ngcli-adapter"
|
||||
],
|
||||
"@nrwl/devkit/testing": [
|
||||
"./packages/devkit/testing"
|
||||
],
|
||||
"@nrwl/e2e/cli": [
|
||||
"./e2e/cli"
|
||||
],
|
||||
"@nrwl/e2e/utils": [
|
||||
"./e2e/utils"
|
||||
],
|
||||
"@nrwl/eslint-plugin-nx": [
|
||||
"./packages/eslint-plugin-nx/src"
|
||||
],
|
||||
"@nrwl/express": [
|
||||
"./packages/express"
|
||||
],
|
||||
"@nrwl/jest": [
|
||||
"./packages/jest"
|
||||
],
|
||||
"@nrwl/jest/*": [
|
||||
"./packages/jest/*"
|
||||
],
|
||||
"@nrwl/js": [
|
||||
"./packages/js/src"
|
||||
],
|
||||
"@nrwl/js/*": [
|
||||
"./packages/js/*"
|
||||
],
|
||||
"@nrwl/linter": [
|
||||
"./packages/linter"
|
||||
],
|
||||
"@nrwl/nest": [
|
||||
"./packages/nest"
|
||||
],
|
||||
"@nrwl/next": [
|
||||
"./packages/next"
|
||||
],
|
||||
"@nrwl/node": [
|
||||
"./packages/node"
|
||||
],
|
||||
"@nrwl/node/*": [
|
||||
"./packages/node/*"
|
||||
],
|
||||
"@nrwl/angular": ["./packages/angular"],
|
||||
"@nrwl/angular/*": ["./packages/angular/*"],
|
||||
"@nrwl/cli": ["./packages/cli"],
|
||||
"@nrwl/cli/*": ["./packages/cli/*"],
|
||||
"@nrwl/cypress": ["./packages/cypress"],
|
||||
"@nrwl/cypress/*": ["./packages/cypress/*"],
|
||||
"@nrwl/detox": ["./packages/detox"],
|
||||
"@nrwl/devkit": ["./packages/devkit"],
|
||||
"@nrwl/devkit/ngcli-adapter": ["./packages/devkit/ngcli-adapter"],
|
||||
"@nrwl/devkit/testing": ["./packages/devkit/testing"],
|
||||
"@nrwl/e2e/cli": ["./e2e/cli"],
|
||||
"@nrwl/e2e/utils": ["./e2e/utils"],
|
||||
"@nrwl/eslint-plugin-nx": ["./packages/eslint-plugin-nx/src"],
|
||||
"@nrwl/express": ["./packages/express"],
|
||||
"@nrwl/jest": ["./packages/jest"],
|
||||
"@nrwl/jest/*": ["./packages/jest/*"],
|
||||
"@nrwl/js": ["./packages/js/src"],
|
||||
"@nrwl/js/*": ["./packages/js/*"],
|
||||
"@nrwl/linter": ["./packages/linter"],
|
||||
"@nrwl/nest": ["./packages/nest"],
|
||||
"@nrwl/next": ["./packages/next"],
|
||||
"@nrwl/node": ["./packages/node"],
|
||||
"@nrwl/node/*": ["./packages/node/*"],
|
||||
"@nrwl/nx-dev-feature-package-schema-viewer": [
|
||||
"./nx-dev/feature-package-schema-viewer/src/index.ts"
|
||||
],
|
||||
@ -114,93 +63,37 @@
|
||||
"@nrwl/nx-dev/feature-flavor-selection": [
|
||||
"./nx-dev/feature-flavor-selection/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/feature-search": [
|
||||
"./nx-dev/feature-search/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/feature-storage": [
|
||||
"./nx-dev/feature-storage/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/feature-search": ["./nx-dev/feature-search/src/index.ts"],
|
||||
"@nrwl/nx-dev/feature-storage": ["./nx-dev/feature-storage/src/index.ts"],
|
||||
"@nrwl/nx-dev/feature-versions-and-flavors": [
|
||||
"./nx-dev/feature-versions-and-flavors/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/models-document": [
|
||||
"./nx-dev/models-document/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/models-menu": [
|
||||
"./nx-dev/models-menu/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/models-package": [
|
||||
"./nx-dev/models-package/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/ui-commands": [
|
||||
"./nx-dev/ui-commands/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/ui-common": [
|
||||
"./nx-dev/ui-common/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/ui-community": [
|
||||
"./nx-dev/ui-community/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/ui-conference": [
|
||||
"./nx-dev/ui-conference/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/ui-home": [
|
||||
"./nx-dev/ui-home/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/ui-member-card": [
|
||||
"./nx-dev/ui-member-card/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-dev/ui-sponsor-card": [
|
||||
"./nx-dev/ui-sponsor-card/src/index.ts"
|
||||
],
|
||||
"@nrwl/nx-plugin": [
|
||||
"./packages/nx-plugin"
|
||||
],
|
||||
"@nrwl/react": [
|
||||
"./packages/react"
|
||||
],
|
||||
"@nrwl/react-native": [
|
||||
"./packages/react-native"
|
||||
],
|
||||
"@nrwl/react/*": [
|
||||
"./packages/react/*"
|
||||
],
|
||||
"@nrwl/storybook": [
|
||||
"./packages/storybook"
|
||||
],
|
||||
"@nrwl/storybook/*": [
|
||||
"./packages/storybook/*"
|
||||
],
|
||||
"@nrwl/tao": [
|
||||
"./packages/tao"
|
||||
],
|
||||
"@nrwl/tao/*": [
|
||||
"./packages/tao/*"
|
||||
],
|
||||
"@nrwl/typedoc-theme": [
|
||||
"/typedoc-theme/src/index.ts"
|
||||
],
|
||||
"@nrwl/web": [
|
||||
"./packages/web"
|
||||
],
|
||||
"@nrwl/web/*": [
|
||||
"./packages/web/*"
|
||||
],
|
||||
"@nrwl/workspace": [
|
||||
"./packages/workspace"
|
||||
],
|
||||
"@nrwl/workspace/*": [
|
||||
"./packages/workspace/*"
|
||||
],
|
||||
"@nrwl/workspace/testing": [
|
||||
"./packages/workspace/testing"
|
||||
],
|
||||
"nx": [
|
||||
"./packages/nx"
|
||||
],
|
||||
"nx/*": [
|
||||
"./packages/nx/*"
|
||||
]
|
||||
"@nrwl/nx-dev/models-document": ["./nx-dev/models-document/src/index.ts"],
|
||||
"@nrwl/nx-dev/models-menu": ["./nx-dev/models-menu/src/index.ts"],
|
||||
"@nrwl/nx-dev/models-package": ["./nx-dev/models-package/src/index.ts"],
|
||||
"@nrwl/nx-dev/ui-commands": ["./nx-dev/ui-commands/src/index.ts"],
|
||||
"@nrwl/nx-dev/ui-common": ["./nx-dev/ui-common/src/index.ts"],
|
||||
"@nrwl/nx-dev/ui-community": ["./nx-dev/ui-community/src/index.ts"],
|
||||
"@nrwl/nx-dev/ui-conference": ["./nx-dev/ui-conference/src/index.ts"],
|
||||
"@nrwl/nx-dev/ui-home": ["./nx-dev/ui-home/src/index.ts"],
|
||||
"@nrwl/nx-dev/ui-member-card": ["./nx-dev/ui-member-card/src/index.ts"],
|
||||
"@nrwl/nx-dev/ui-sponsor-card": ["./nx-dev/ui-sponsor-card/src/index.ts"],
|
||||
"@nrwl/nx-plugin": ["./packages/nx-plugin"],
|
||||
"@nrwl/react": ["./packages/react"],
|
||||
"@nrwl/react-native": ["./packages/react-native"],
|
||||
"@nrwl/react/*": ["./packages/react/*"],
|
||||
"@nrwl/storybook": ["./packages/storybook"],
|
||||
"@nrwl/storybook/*": ["./packages/storybook/*"],
|
||||
"@nrwl/tao": ["./packages/tao"],
|
||||
"@nrwl/tao/*": ["./packages/tao/*"],
|
||||
"@nrwl/typedoc-theme": ["/typedoc-theme/src/index.ts"],
|
||||
"@nrwl/web": ["./packages/web"],
|
||||
"@nrwl/web/*": ["./packages/web/*"],
|
||||
"@nrwl/workspace": ["./packages/workspace"],
|
||||
"@nrwl/workspace/*": ["./packages/workspace/*"],
|
||||
"@nrwl/workspace/testing": ["./packages/workspace/testing"],
|
||||
"nx": ["./packages/nx"],
|
||||
"nx/*": ["./packages/nx/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user