@zohodesk/client_build_tool 0.0.6-exp.2 → 0.0.6-exp.4

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.
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.commandExecutor = commandExecutor;
7
7
 
8
- var _constants = require("../../shared/constants");
9
-
10
8
  var _watchRun = require("../../shared/fileUtils/watchRun");
11
9
 
12
10
  function commandExecutor(options) {
@@ -20,13 +18,10 @@ function commandExecutor(options) {
20
18
  extraArgs.splice(index, 1);
21
19
  }
22
20
 
23
- let [src, target] = extraArgs;
24
- src = (0, _constants.joinWithAppPath)(src || 'src');
25
- target = (0, _constants.joinWithAppPath)(target || 'es');
26
21
  (0, _watchRun.watchRun)({
27
22
  options,
28
- src,
29
- target,
23
+ src: 'src',
24
+ target: 'es',
30
25
  canWatch,
31
26
  mode: 'es'
32
27
  });
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.commandExecutor = commandExecutor;
7
7
 
8
- var _constants = require("../../shared/constants");
9
-
10
8
  var _watchRun = require("../../shared/fileUtils/watchRun");
11
9
 
12
10
  function commandExecutor(options) {
@@ -20,13 +18,10 @@ function commandExecutor(options) {
20
18
  extraArgs.splice(index, 1);
21
19
  }
22
20
 
23
- let [src, target] = extraArgs;
24
- src = (0, _constants.joinWithAppPath)(src || 'src');
25
- target = (0, _constants.joinWithAppPath)(target || 'lib');
26
21
  (0, _watchRun.watchRun)({
27
22
  options,
28
- src,
29
- target,
23
+ src: 'src',
24
+ target: 'target',
30
25
  canWatch,
31
26
  mode: 'lib'
32
27
  });
@@ -324,7 +324,10 @@ var _default = {
324
324
  i18nAttributes: null
325
325
  },
326
326
  typeScript: {
327
- enable: false
327
+ enable: {
328
+ value: false,
329
+ cli: 'type_script_enable'
330
+ }
328
331
  }
329
332
  };
330
333
  exports.default = _default;
@@ -20,6 +20,7 @@ function runBabelForTSFile({
20
20
  const {
21
21
  enable
22
22
  } = options.typeScript;
23
+ console.log('typescript', enable);
23
24
 
24
25
  if (enable) {
25
26
  // const jsSourceCode = readFileSync(filename).toString();
@@ -9,10 +9,11 @@ function tsLoaders(options) {
9
9
  const {
10
10
  enable
11
11
  } = options.typeScript;
12
+ console.log('typescript', enable);
12
13
 
13
14
  if (enable) {
14
15
  return [{
15
- test: /\.js$/,
16
+ test: /\.(ts|tsx)$/,
16
17
  exclude: /node_modules/,
17
18
  use: 'ts-loader' // include: path.join(appPath, folder)
18
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.6-exp.2",
3
+ "version": "0.0.6-exp.4",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {