@pushwoosh/frontend-builder-engine 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/pushwoosh-engine.js
CHANGED
|
@@ -10,19 +10,21 @@ const { loadPushwooshConfig } = require('./helpers');
|
|
|
10
10
|
program
|
|
11
11
|
.version('1.0.0')
|
|
12
12
|
.description('Build lib')
|
|
13
|
-
//.option('-n, --name <type>', 'Your name')
|
|
14
|
-
//.option('-a, --age <type>', 'Your age')
|
|
15
13
|
.command('lib:build')
|
|
16
14
|
.action(async () => {
|
|
15
|
+
const pushwooshConfig = loadPushwooshConfig();
|
|
17
16
|
const curDir = process.cwd();
|
|
18
|
-
const targetDir = `${curDir}/dist`;
|
|
19
|
-
const tsConfig = loadTsConfig({
|
|
17
|
+
const targetDir = pushwooshConfig.libBuildTargetDir ?? `${curDir}/dist`;
|
|
18
|
+
const tsConfig = loadTsConfig({
|
|
19
|
+
compilerOptions: {
|
|
20
|
+
outDir: targetDir,
|
|
21
|
+
}
|
|
22
|
+
});
|
|
20
23
|
await buildTs(curDir, tsConfig);
|
|
21
24
|
await buildStyledComponents(targetDir, targetDir);
|
|
22
25
|
await fs.copyFile(`${curDir}/package.json`, `${targetDir}/package.json`);
|
|
23
26
|
await fs.copyFile(`${curDir}/.npmrc`, `${targetDir}/.npmrc`);
|
|
24
|
-
})
|
|
25
|
-
.option('-s, --ss <type>', 'output extra debugging');
|
|
27
|
+
});
|
|
26
28
|
|
|
27
29
|
program
|
|
28
30
|
.addCommand(
|
|
@@ -44,15 +44,6 @@ module.exports = (webpackConfigEnv, argv) => {
|
|
|
44
44
|
'~/src': path.resolve(cwd, './src'),
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
|
-
module: {
|
|
48
|
-
rules: [
|
|
49
|
-
{
|
|
50
|
-
test: /\.svg$/i,
|
|
51
|
-
exclude: /node_modules/,
|
|
52
|
-
type: "asset/inline",
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
47
|
externals: peerDependenciesList,
|
|
57
48
|
plugins: [
|
|
58
49
|
new webpack.DefinePlugin({
|