[ci:force] - fixed build for testing 1

This commit is contained in:
VitoAlbano
2024-10-11 00:43:02 +01:00
parent a6c6356b8b
commit 36db2f2c58
10 changed files with 2720 additions and 976 deletions

View File

@@ -13,6 +13,7 @@
"main": "lib/testing/index.ts",
"generatePackageJson": true,
"tsConfig": "lib/testing/tsconfig.lib.prod.json",
"webpackConfig": "lib/testing/webpack.config.js",
"stylePreprocessorOptions": {
"includePaths": ["lib", "lib/core/src/lib"]
},
@@ -25,7 +26,7 @@
"outputPath": "dist/libs/testing",
"main": "lib/testing/index.ts",
"generatePackageJson": true,
"tsConfig": "lib/testing/tsconfig.lib.prod.json"
"tsConfig": "lib/testing/tsconfig.lib.prod.json",
}
},
"defaultConfiguration": "production"

View File

@@ -0,0 +1,20 @@
var NxAppWebpackPlugin = require('@nx/webpack/app-plugin').NxAppWebpackPlugin;
var join = require('path').join;
module.exports = {
output: {
path: join(__dirname, '../../dist/libs/testing')
},
devServer: {
port: 4200
},
plugins: [
new NxAppWebpackPlugin({
main: './src/index.ts',
tsConfig: './tsconfig.lib.json',
index: './src/index.ts',
outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none',
optimization: process.env['NODE_ENV'] === 'production'
})
]
};