@elliemae/pui-cli 6.0.0-beta.56 → 6.0.0-beta.57

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.
@@ -11,7 +11,6 @@ const { esBuild, TARGETS } = require('../transpile/esbuild');
11
11
  const { name } = require('../../package.json');
12
12
 
13
13
  async function buildWebApp() {
14
- logInfo('Build in progress...');
15
14
  await exec(`rimraf ./build`);
16
15
  await exec(
17
16
  `cross-env NODE_ENV=production webpack --config node_modules/${name}/lib/webpack/webpack.prod.babel.js --color`,
@@ -32,6 +31,7 @@ async function buildService() {
32
31
 
33
32
  async function handler({ service = false }) {
34
33
  try {
34
+ logInfo('Build in progress...');
35
35
  if (service) await buildService();
36
36
  else await buildWebApp();
37
37
  logSuccess('Build completed');
@@ -43,7 +43,7 @@ async function handler({ service = false }) {
43
43
 
44
44
  exports.command = 'build';
45
45
 
46
- exports.describe = 'builds application';
46
+ exports.describe = 'builds front end application or NodeJS service';
47
47
 
48
48
  exports.builder = {
49
49
  service: {
@@ -5,15 +5,17 @@ const { esBuild } = require('../transpile/esbuild');
5
5
  const { name } = require('../../package.json');
6
6
 
7
7
  const compileTypeScript = async () => {
8
- logInfo('Compiling typescript files...');
9
- await exec('tsc');
8
+ logInfo('Generating types...');
9
+ await exec('tsc --emitDeclarationOnly');
10
+ logInfo('Types generation completed...');
10
11
  };
11
12
 
12
13
  const webBuild = async (productionBuild) => {
13
- logInfo('Compiling source files for browser environment...');
14
+ logInfo('Building source files for browser environment...');
14
15
  const devCmd = `node_modules/${name}/lib/webpack/webpack.lib.dev.babel.js --color`;
15
16
  const prodCmd = `node_modules/${name}/lib/webpack/webpack.lib.prod.babel.js --color`;
16
17
  await exec(`webpack --config ${productionBuild ? prodCmd : devCmd}`);
18
+ logInfo('Building source files for browser environment completed...');
17
19
  };
18
20
 
19
21
  const pack = async ({ production, target, srcPath }) => {
@@ -24,8 +26,9 @@ const pack = async ({ production, target, srcPath }) => {
24
26
  }
25
27
  if (target !== 'node') await webBuild(production);
26
28
  if (target !== 'web') {
27
- logInfo('building source files for nodejs environment');
29
+ logInfo('Building source files for nodejs environment...');
28
30
  await esBuild({ srcdir: srcPath });
31
+ logInfo('Building source files for nodejs environment completed.');
29
32
  }
30
33
  };
31
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "6.0.0-beta.56",
3
+ "version": "6.0.0-beta.57",
4
4
  "private": false,
5
5
  "description": "ICE MT UI Platform CLI",
6
6
  "sideEffects": false,
@@ -65,7 +65,7 @@
65
65
  "@babel/runtime": "~7.16.7",
66
66
  "@commitlint/cli": "~16.1.0",
67
67
  "@commitlint/config-conventional": "~16.0.0",
68
- "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.2.1",
68
+ "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.3.0",
69
69
  "@pmmmwh/react-refresh-webpack-plugin": "~0.5.4",
70
70
  "@semantic-release/changelog": "~6.0.1",
71
71
  "@semantic-release/exec": "~6.0.3",