innetjs 1.11.0 → 1.11.1

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/bin/innet CHANGED
@@ -99,7 +99,7 @@ function getFile(file) {
99
99
  return file;
100
100
  }
101
101
  const reporter = (options, outputOptions, info) => {
102
- logger__default["default"].log(`${chalk__default["default"].yellow(info.fileName)} ${chalk__default["default"].green(info.bundleSize)} [ min: ${chalk__default["default"].green(info.minSize)}, gzip: ${chalk__default["default"].green(info.gzipSize)} ]`);
102
+ logger__default["default"].log(`${chalk__default["default"].yellow(info.fileName)} ${chalk__default["default"].green(info.bundleSize)} [ gzip: ${chalk__default["default"].green(info.gzipSize)} ]`);
103
103
  return '';
104
104
  };
105
105
  class InnetJS {
@@ -171,9 +171,6 @@ class InnetJS {
171
171
  json__default["default"](),
172
172
  typescript__default["default"](),
173
173
  jsx__default["default"](),
174
- filesize__default["default"]({
175
- reporter,
176
- }),
177
174
  ]
178
175
  };
179
176
  const outputOptions = {
@@ -216,7 +213,12 @@ class InnetJS {
216
213
  minimize: true
217
214
  }));
218
215
  outputOptions.format = 'es';
219
- outputOptions.plugins = [rollupPluginTerser.terser()];
216
+ outputOptions.plugins = [
217
+ rollupPluginTerser.terser(),
218
+ filesize__default["default"]({
219
+ reporter,
220
+ }),
221
+ ];
220
222
  }
221
223
  yield logger__default["default"].start('Build production bundle', () => __awaiter(this, void 0, void 0, function* () {
222
224
  const bundle = yield rollup__default["default"].rollup(inputOptions);
@@ -454,7 +456,7 @@ class InnetJS {
454
456
  }
455
457
  }
456
458
 
457
- var version = "1.11.0";
459
+ var version = "1.11.1";
458
460
 
459
461
  require('dotenv').config();
460
462
  const innetJS = new InnetJS();
package/index.es6.js CHANGED
@@ -74,7 +74,7 @@ function getFile(file) {
74
74
  return file;
75
75
  }
76
76
  const reporter = (options, outputOptions, info) => {
77
- logger.log(`${chalk.yellow(info.fileName)} ${chalk.green(info.bundleSize)} [ min: ${chalk.green(info.minSize)}, gzip: ${chalk.green(info.gzipSize)} ]`);
77
+ logger.log(`${chalk.yellow(info.fileName)} ${chalk.green(info.bundleSize)} [ gzip: ${chalk.green(info.gzipSize)} ]`);
78
78
  return '';
79
79
  };
80
80
  class InnetJS {
@@ -146,9 +146,6 @@ class InnetJS {
146
146
  json(),
147
147
  typescript(),
148
148
  jsx(),
149
- filesize({
150
- reporter,
151
- }),
152
149
  ]
153
150
  };
154
151
  const outputOptions = {
@@ -191,7 +188,12 @@ class InnetJS {
191
188
  minimize: true
192
189
  }));
193
190
  outputOptions.format = 'es';
194
- outputOptions.plugins = [terser()];
191
+ outputOptions.plugins = [
192
+ terser(),
193
+ filesize({
194
+ reporter,
195
+ }),
196
+ ];
195
197
  }
196
198
  yield logger.start('Build production bundle', () => __awaiter(this, void 0, void 0, function* () {
197
199
  const bundle = yield rollup.rollup(inputOptions);
package/index.js CHANGED
@@ -97,7 +97,7 @@ function getFile(file) {
97
97
  return file;
98
98
  }
99
99
  const reporter = (options, outputOptions, info) => {
100
- logger__default["default"].log(`${chalk__default["default"].yellow(info.fileName)} ${chalk__default["default"].green(info.bundleSize)} [ min: ${chalk__default["default"].green(info.minSize)}, gzip: ${chalk__default["default"].green(info.gzipSize)} ]`);
100
+ logger__default["default"].log(`${chalk__default["default"].yellow(info.fileName)} ${chalk__default["default"].green(info.bundleSize)} [ gzip: ${chalk__default["default"].green(info.gzipSize)} ]`);
101
101
  return '';
102
102
  };
103
103
  class InnetJS {
@@ -169,9 +169,6 @@ class InnetJS {
169
169
  json__default["default"](),
170
170
  typescript__default["default"](),
171
171
  jsx__default["default"](),
172
- filesize__default["default"]({
173
- reporter,
174
- }),
175
172
  ]
176
173
  };
177
174
  const outputOptions = {
@@ -214,7 +211,12 @@ class InnetJS {
214
211
  minimize: true
215
212
  }));
216
213
  outputOptions.format = 'es';
217
- outputOptions.plugins = [rollupPluginTerser.terser()];
214
+ outputOptions.plugins = [
215
+ rollupPluginTerser.terser(),
216
+ filesize__default["default"]({
217
+ reporter,
218
+ }),
219
+ ];
218
220
  }
219
221
  yield logger__default["default"].start('Build production bundle', () => __awaiter(this, void 0, void 0, function* () {
220
222
  const bundle = yield rollup__default["default"].rollup(inputOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",
@@ -8,6 +8,6 @@
8
8
  "innet": "^1.0.0"
9
9
  },
10
10
  "devDependencies": {
11
- "innetjs": "^1.11.0"
11
+ "innetjs": "^1.11.1"
12
12
  }
13
13
  }
@@ -9,6 +9,6 @@
9
9
  "watch-state": "^3.4.3"
10
10
  },
11
11
  "devDependencies": {
12
- "innetjs": "^1.11.0"
12
+ "innetjs": "^1.11.1"
13
13
  }
14
14
  }