jizy-packer 2.1.9 → 2.1.11

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.
Files changed (2) hide show
  1. package/lib/Rollup.js +17 -1
  2. package/package.json +1 -1
package/lib/Rollup.js CHANGED
@@ -69,6 +69,13 @@ export default async function jPackRollup(config) {
69
69
  writeBundle() {
70
70
  onPacked();
71
71
  },
72
+ },
73
+
74
+ {
75
+ name: 'jcomplete',
76
+ writeBundle() {
77
+ onComplete();
78
+ },
72
79
  }
73
80
  ];
74
81
  };
@@ -134,7 +141,7 @@ function generateWrappedJs(code) {
134
141
  }
135
142
 
136
143
  function onPacked() {
137
- LogMe.log('Build completed successfully.');
144
+ LogMe.log('Packed successfully.');
138
145
 
139
146
  moveCssFiles();
140
147
 
@@ -149,6 +156,15 @@ function onPacked() {
149
156
  LogMe.log('Build process completed.');
150
157
  }
151
158
 
159
+ function onComplete() {
160
+ LogMe.log('All done.');
161
+
162
+ const onComplete = jPackConfig.get('onComplete');
163
+ if (typeof onComplete === 'function') {
164
+ onComplete();
165
+ }
166
+ }
167
+
152
168
  function moveCssFiles() {
153
169
  LogMe.log('Moving CSS files from js/ to css/ ...');
154
170
  const targetPath = jPackConfig.get('targetPath');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jizy-packer",
3
- "version": "2.1.9",
3
+ "version": "2.1.11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib/*.js"