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.
- package/lib/Rollup.js +17 -1
- 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('
|
|
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');
|