-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Add generator option for standalone projects (#71)
Add a generator option for app, lib, and test to make standalone projects Co-authored-by: Ben Callaghan <bcallaghan@selectbankcard.com>
- Loading branch information
1 parent
705777d
commit 8db11d4
Showing
52 changed files
with
1,481 additions
and
1,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"projectType": "application", | ||
"root": "apps/docs-site", | ||
"sourceRoot": "apps/docs-site/src", | ||
"targets": { | ||
"build": { | ||
"executor": "@nx-plus/docusaurus:browser", | ||
"options": { | ||
"outputPath": "dist/apps/docs-site" | ||
} | ||
}, | ||
"serve": { | ||
"executor": "@nx-plus/docusaurus:dev-server", | ||
"options": { | ||
"port": 3000 | ||
} | ||
}, | ||
"deploy": { | ||
"executor": "@nrwl/workspace:run-commands", | ||
"options": { | ||
"commands": [ | ||
"nx workspace-schematic generate-docs", | ||
"nx build docs-site", | ||
"npx ts-node tools/scripts/publish-docs-site" | ||
], | ||
"parallel": false | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"projectType": "application", | ||
"root": "apps/nx-ghpages-e2e", | ||
"sourceRoot": "apps/nx-ghpages-e2e/src", | ||
"targets": { | ||
"e2e": { | ||
"executor": "@nrwl/nx-plugin:e2e", | ||
"options": { | ||
"target": "nx-ghpages:build", | ||
"npmPackageName": "@nx-dotnet/nx-ghpages", | ||
"pluginOutputPath": "dist/packages/nx-ghpages", | ||
"jestConfig": "apps/nx-ghpages-e2e/jest.config.js" | ||
} | ||
} | ||
}, | ||
"tags": [], | ||
"implicitDependencies": ["nx-ghpages"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"projectType": "application", | ||
"root": "e2e/core-e2e", | ||
"sourceRoot": "e2e/core-e2e/src", | ||
"targets": { | ||
"e2e": { | ||
"executor": "@nrwl/nx-plugin:e2e", | ||
"options": { | ||
"target": "core:build", | ||
"npmPackageName": "@nx-dotnet/core", | ||
"pluginOutputPath": "dist/packages/core", | ||
"jestConfig": "e2e/core-e2e/jest.config.js" | ||
} | ||
} | ||
}, | ||
"tags": [], | ||
"implicitDependencies": ["core"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"projectType": "application", | ||
"root": "e2e/nxdoc-e2e", | ||
"sourceRoot": "e2e/nxdoc-e2e/src", | ||
"targets": { | ||
"e2e": { | ||
"executor": "@nrwl/nx-plugin:e2e", | ||
"options": { | ||
"target": "nxdoc:build", | ||
"npmPackageName": "@nx-dotnet/nxdoc", | ||
"pluginOutputPath": "dist/packages/nxdoc", | ||
"jestConfig": "e2e/nxdoc-e2e/jest.config.js" | ||
} | ||
} | ||
}, | ||
"tags": [], | ||
"implicitDependencies": ["nxdoc"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
describe('nxdoc e2e', () => { | ||
it('should have a test', async (done) => { | ||
it('should have a test', async () => { | ||
expect(true).toBeTruthy(); | ||
done(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"projectType": "application", | ||
"root": "e2e/typescript-e2e", | ||
"sourceRoot": "e2e/typescript-e2e/src", | ||
"targets": { | ||
"e2e": { | ||
"executor": "@nrwl/nx-plugin:e2e", | ||
"options": { | ||
"target": "typescript:build", | ||
"npmPackageName": "@nx-dotnet/typescript", | ||
"pluginOutputPath": "dist/packages/typescript", | ||
"jestConfig": "e2e/typescript-e2e/jest.config.js" | ||
} | ||
} | ||
}, | ||
"tags": [], | ||
"implicitDependencies": ["typescript"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
module.exports = { | ||
projects: [ | ||
'<rootDir>/packages/core', | ||
'<rootDir>/e2e\\core-e2e', | ||
'<rootDir>/e2e/core-e2e', | ||
'<rootDir>/packages/typescript', | ||
'<rootDir>/e2e\\typescript-e2e', | ||
'<rootDir>/e2e/typescript-e2e', | ||
'<rootDir>/packages/dotnet', | ||
'<rootDir>/packages/utils', | ||
'<rootDir>/packages/utils', | ||
'<rootDir>/packages/dotnet', | ||
'<rootDir>/packages/nxdoc', | ||
'<rootDir>/e2e\\nxdoc-e2e', | ||
'<rootDir>/e2e/nxdoc-e2e', | ||
'<rootDir>/packages/nx-ghpages', | ||
'<rootDir>/apps\\nx-ghpages-e2e', | ||
'<rootDir>/apps/nx-ghpages-e2e', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
{ | ||
"migrations": [ | ||
{ | ||
"version": "12.1.0-beta.1", | ||
"version": "12.5.0-beta.1", | ||
"description": "Rename the workspace-schematic script into workspace-generator script", | ||
"factory": "./src/migrations/update-12-5-0/add-target-dependencies", | ||
"cli": "nx", | ||
"description": "Update jest-preset-angular to version 8.4.0", | ||
"factory": "./src/migrations/update-12-1-2/update-jest-preset-angular", | ||
"package": "@nrwl/workspace", | ||
"name": "add-target-dependencies" | ||
}, | ||
{ | ||
"version": "12.4.0-beta.1", | ||
"cli": "nx", | ||
"description": "Add testEnvironment: 'jsdom' in web apps + libraries", | ||
"factory": "./src/migrations/update-12-4-0/add-test-environment-for-node", | ||
"package": "@nrwl/jest", | ||
"name": "update-jest-preset-angular-8-4-0" | ||
"name": "support-jest-27" | ||
}, | ||
{ | ||
"version": "12.1.2-beta.1", | ||
"version": "12.4.0-beta.1", | ||
"cli": "nx", | ||
"description": "Replace tsConfig with tsconfig for ts-jest in jest.config.js", | ||
"factory": "./src/migrations/update-12-1-2/update-ts-jest", | ||
"description": "Support for Jest 27 via updating ts-jest + jest-preset-angular", | ||
"factory": "./src/migrations/update-12-4-0/update-jest-preset-angular", | ||
"package": "@nrwl/jest", | ||
"name": "update-ts-jest-6-5-5" | ||
"name": "update-ts-jest-and-jest-preset-angular" | ||
}, | ||
{ | ||
"cli": "nx", | ||
"version": "12.4.0-beta.0", | ||
"description": "Remove ESLint parserOptions.project config if no rules requiring type-checking are in use", | ||
"factory": "./src/migrations/update-12-4-0/remove-eslint-project-config-if-no-type-checking-rules", | ||
"package": "@nrwl/linter", | ||
"name": "remove-eslint-project-config-if-no-type-checking-rules" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"root": "packages/core", | ||
"sourceRoot": "packages/core/src", | ||
"projectType": "library", | ||
"targets": { | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"options": { | ||
"lintFilePatterns": ["packages/core/**/*.ts"] | ||
} | ||
}, | ||
"test": { | ||
"executor": "@nrwl/jest:jest", | ||
"outputs": ["coverage/packages/core"], | ||
"options": { | ||
"jestConfig": "packages/core/jest.config.js", | ||
"passWithNoTests": true | ||
} | ||
}, | ||
"build": { | ||
"executor": "@nrwl/node:package", | ||
"outputs": ["{options.outputPath}"], | ||
"options": { | ||
"outputPath": "dist/packages/core", | ||
"tsConfig": "packages/core/tsconfig.lib.json", | ||
"packageJson": "packages/core/package.json", | ||
"main": "packages/core/src/index.ts", | ||
"updateBuildableProjectDepsInPackageJson": true, | ||
"assets": [ | ||
"packages/core/*.md", | ||
{ | ||
"input": "./packages/core/src", | ||
"glob": "**/!(*.ts)", | ||
"output": "./src" | ||
}, | ||
{ | ||
"input": "./packages/core/src", | ||
"glob": "**/*.d.ts", | ||
"output": "./src" | ||
}, | ||
{ | ||
"input": "./packages/core", | ||
"glob": "generators.json", | ||
"output": "." | ||
}, | ||
{ | ||
"input": "./packages/core", | ||
"glob": "executors.json", | ||
"output": "." | ||
}, | ||
"LICENSE", | ||
"CHANGELOG.md", | ||
"README.md", | ||
{ | ||
"input": "./packages/core", | ||
"glob": "migrations.json", | ||
"output": "." | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
Oops, something went wrong.