Skip to content

Commit

Permalink
build(template): migrate to nx
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sa committed Sep 11, 2023
1 parent 1dbbe46 commit 5e8248b
Show file tree
Hide file tree
Showing 26 changed files with 289 additions and 633 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
"@types/mongodb": "3.5.25",
"@types/sqlstring": "^2.2.1",
"@types/pg": "^7.14.7",
"@types/ws": "^8.5.3"
"@types/ws": "^8.5.3",
"@types/estree": "^0.0.45"
},
"dependencies": {
"@angular-devkit/build-angular": "^15.0.0",
Expand Down Expand Up @@ -154,10 +155,11 @@
"format-util": "^1.0.5",
"saslprep": "^1.0.3",
"mariadb": "^2.5.2",
"pg": "^8.5.1"
"pg": "^8.5.1",
"pg-native": "^3.0.0",
"fast-glob": "^3.2.5",
"sqlstring-sqlite": "^0.1.1"
"sqlstring-sqlite": "^0.1.1",
"abstract-syntax-tree": "^2.9.4"
},
"engines": {
"node": ">= 16.0.0"
Expand Down
28 changes: 28 additions & 0 deletions packages/template/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/template/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": "error"
}
}
]
}
1 change: 0 additions & 1 deletion packages/template/.npmignore

This file was deleted.

Empty file removed packages/template/dist/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion packages/template/dist/esm/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions packages/template/index.ts

This file was deleted.

13 changes: 13 additions & 0 deletions packages/template/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Config } from 'jest';

export default {
displayName: 'template',
preset: '../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
'^.+\\.[tj]sx$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../coverage/packages/template',
} as Config;
Loading

0 comments on commit 5e8248b

Please sign in to comment.