Skip to content

Commit

Permalink
feat(nx-plugin): initial setup and init command (#51)
Browse files Browse the repository at this point in the history
This PR includes:
- initial setup
- init command implementation, basic tests init generator

Related to #9
  • Loading branch information
BioPhoton committed Sep 22, 2023
1 parent 89a5e4c commit c8dd4d9
Show file tree
Hide file tree
Showing 24 changed files with 1,060 additions and 606 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ node_modules

# IDEs and editors
/.idea
/.vscode
.project
.classpath
.c9/
Expand Down
7 changes: 0 additions & 7 deletions .vscode/extensions.json

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

5 changes: 5 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { getJestProjects } from '@nx/jest';

export default {
projects: getJestProjects(),
};
3 changes: 3 additions & 0 deletions jest.preset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const nxPreset = require('@nx/jest/preset').default;

module.exports = { ...nxPreset };
7 changes: 5 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]
},
"test": {
"inputs": ["default", "^production"]
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
},
"e2e": {
"dependsOn": ["^build"],
Expand All @@ -34,8 +34,11 @@
"default",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/**/?(*.)mock.[jt]s?(x)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/src/test-setup.[jt]s",
"!{projectRoot}/test-setup.[jt]s",
"!{projectRoot}/**/?(*.)mock.[jt]s?(x)",
"!{projectRoot}/vite.config.[jt]s"
],
"sharedGlobals": []
Expand Down
Loading

0 comments on commit c8dd4d9

Please sign in to comment.