generator-bitloops 0.3.2 → 0.3.3
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/package.json +1 -1
- package/setup/index.js +9 -0
package/package.json
CHANGED
package/setup/index.js
CHANGED
|
@@ -197,6 +197,14 @@ export default class extends Generator {
|
|
|
197
197
|
);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
+
|
|
201
|
+
this.commitChanges = async function() {
|
|
202
|
+
this.log('Committing changes to git...');
|
|
203
|
+
await new Promise((resolve, error) => {exec('git add . && git commit -m "Initial setup"').on('exit', (code) => {
|
|
204
|
+
this.log('Git changes committed!');
|
|
205
|
+
resolve();
|
|
206
|
+
});});
|
|
207
|
+
}
|
|
200
208
|
}
|
|
201
209
|
|
|
202
210
|
initializing() {
|
|
@@ -222,6 +230,7 @@ export default class extends Generator {
|
|
|
222
230
|
this.installCypress();
|
|
223
231
|
this.log('Patching files');
|
|
224
232
|
await this.patchFiles();
|
|
233
|
+
await this.commitChanges();
|
|
225
234
|
}
|
|
226
235
|
|
|
227
236
|
end() {
|