mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2024-11-21 10:46:22 +00:00
feat: export testing to different project
This commit is contained in:
parent
4336074a18
commit
f4542082a2
7
index.js
7
index.js
@ -1,4 +1,9 @@
|
||||
require = require('esm')(module /*, options*/);
|
||||
module.exports = {
|
||||
...require('./dist/libs/skeleton'),
|
||||
// For npm run build:libs
|
||||
...require('./dist/libs/skeleton/src'),
|
||||
...require('./dist/libs/prisma/src'),
|
||||
// For Prisma Only
|
||||
// ...require('./dist/libs/prisma/prisma/src'),
|
||||
// ...require('./dist/libs/prisma/skeleton/src'),
|
||||
};
|
||||
|
@ -1,3 +1,4 @@
|
||||
export * from './prisma.module';
|
||||
export * from './prisma.service';
|
||||
export * from './constants';
|
||||
export * from './processes/list.process';
|
||||
|
@ -9,6 +9,7 @@ export class PrismaListProcess extends PrismaProcess implements ListProcess {
|
||||
}
|
||||
|
||||
result() {
|
||||
console.log('ASDASDASDASD');
|
||||
return this.data;
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,25 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"declaration": true,
|
||||
"outDir": "../../dist/libs/prisma"
|
||||
"noImplicitAny": false,
|
||||
"removeComments": true,
|
||||
"noLib": false,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"target": "es6",
|
||||
"sourceMap": false,
|
||||
"outDir": "../../dist/libs/prisma",
|
||||
"skipLibCheck": true,
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist", "test", "**/*spec.ts"]
|
||||
}
|
||||
"include": [
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist",
|
||||
"test",
|
||||
"**/*spec.ts"
|
||||
]
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
export * from './constants';
|
||||
export * from './skeleton-crud.controller';
|
||||
|
||||
|
@ -8,6 +8,8 @@
|
||||
"scripts": {
|
||||
"build": "nest build",
|
||||
"build:lib:skeleton": "tsc -p libs/skeleton/tsconfig.lib.json",
|
||||
"build:lib:prisma": "tsc -p libs/prisma/tsconfig.lib.json",
|
||||
"build:libs": "tsc -p tsconfig.lib.json",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"libs/**/*.ts\"",
|
||||
"start": "nest start",
|
||||
"start:dev": "nest start --watch",
|
||||
@ -78,4 +80,4 @@
|
||||
"^@autocrud/prisma(|/.*)$": "<rootDir>/libs/prisma/src/$1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
26
tsconfig.lib.json
Normal file
26
tsconfig.lib.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"declaration": true,
|
||||
"noImplicitAny": false,
|
||||
"removeComments": true,
|
||||
"noLib": false,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"target": "es6",
|
||||
"sourceMap": false,
|
||||
"outDir": "./dist/libs",
|
||||
"skipLibCheck": true,
|
||||
},
|
||||
"include": [
|
||||
"libs/prisma/src/**/*",
|
||||
"libs/skeleton/src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist",
|
||||
"test",
|
||||
"**/*spec.ts"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user