mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 14:05:44 +01:00
Do not fork ui-script commands
Forking of the commands could lead to open processes, even if the parent was stopped with ctrl+c.
This commit is contained in:
committed by
René Pfeuffer
parent
0a4b5d0439
commit
d8a04a1113
@@ -24,22 +24,22 @@
|
||||
const yarn = require("../yarn");
|
||||
const versions = require("../versions");
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
module.exports = args => {
|
||||
if (args.length < 1) {
|
||||
console.log("usage ui-scripts publish <version>");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (args.length < 1) {
|
||||
console.log("usage ui-scripts publish <version>");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const version = args[0];
|
||||
const index = version.indexOf("-SNAPSHOT");
|
||||
if (index > 0) {
|
||||
const snapshotVersion = `${version.substring(0, index)}-${versions.createSnapshotVersion()}`;
|
||||
console.log(`publish snapshot release ${snapshotVersion}`);
|
||||
yarn.version(snapshotVersion);
|
||||
yarn.publish(snapshotVersion);
|
||||
yarn.version(version);
|
||||
} else {
|
||||
// ?? not sure
|
||||
yarn.publish(version);
|
||||
}
|
||||
const version = args[0];
|
||||
const index = version.indexOf("-SNAPSHOT");
|
||||
if (index > 0) {
|
||||
const snapshotVersion = `${version.substring(0, index)}-${versions.createSnapshotVersion()}`;
|
||||
console.log(`publish snapshot release ${snapshotVersion}`);
|
||||
yarn.version(snapshotVersion);
|
||||
yarn.publish(snapshotVersion);
|
||||
yarn.version(version);
|
||||
} else {
|
||||
// ?? not sure
|
||||
yarn.publish(version);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -24,11 +24,15 @@
|
||||
const webpack = require("webpack");
|
||||
const createPluginConfig = require("../createPluginConfig");
|
||||
|
||||
const config = createPluginConfig("development");
|
||||
const compiler = webpack(config);
|
||||
module.exports = () => {
|
||||
const config = createPluginConfig("development");
|
||||
const compiler = webpack(config);
|
||||
|
||||
compiler.watch({}, (err, stats) => {
|
||||
console.log(stats.toString({
|
||||
colors: true
|
||||
}));
|
||||
});
|
||||
compiler.watch({}, (err, stats) => {
|
||||
console.log(
|
||||
stats.toString({
|
||||
colors: true
|
||||
})
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -24,13 +24,17 @@
|
||||
const webpack = require("webpack");
|
||||
const createPluginConfig = require("../createPluginConfig");
|
||||
|
||||
const config = createPluginConfig("production");
|
||||
module.exports = () => {
|
||||
const config = createPluginConfig("production");
|
||||
|
||||
webpack(config, (err, stats) => {
|
||||
console.log(stats.toString({
|
||||
colors: true
|
||||
}));
|
||||
if (err || stats.hasErrors()) {
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
webpack(config, (err, stats) => {
|
||||
console.log(
|
||||
stats.toString({
|
||||
colors: true
|
||||
})
|
||||
);
|
||||
if (err || stats.hasErrors()) {
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -24,26 +24,22 @@
|
||||
const lerna = require("../lerna");
|
||||
const versions = require("../versions");
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
|
||||
if (args.length < 1) {
|
||||
console.log("usage ui-scripts publish <version>");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const version = args[0];
|
||||
const index = version.indexOf("-SNAPSHOT");
|
||||
if (index > 0) {
|
||||
const snapshotVersion = version.substring(0, index) + "-" + versions.createSnapshotVersion();
|
||||
console.log("publish snapshot release " + snapshotVersion);
|
||||
lerna.version(snapshotVersion);
|
||||
lerna.publish();
|
||||
lerna.version(version);
|
||||
} else {
|
||||
// ?? not sure
|
||||
lerna.publish();
|
||||
}
|
||||
|
||||
|
||||
|
||||
module.exports = args => {
|
||||
if (args.length < 1) {
|
||||
console.log("usage ui-scripts publish <version>");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const version = args[0];
|
||||
const index = version.indexOf("-SNAPSHOT");
|
||||
if (index > 0) {
|
||||
const snapshotVersion = `${version.substring(0, index)}-${versions.createSnapshotVersion()}`;
|
||||
console.log(`publish snapshot release ${snapshotVersion}`);
|
||||
lerna.version(snapshotVersion);
|
||||
lerna.publish();
|
||||
lerna.version(version);
|
||||
} else {
|
||||
// ?? not sure
|
||||
lerna.publish();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
*/
|
||||
const lerna = require("../lerna");
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
module.exports = args => {
|
||||
if (args.length < 1) {
|
||||
console.log("usage ui-scripts version <new-version>");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (args.length < 1) {
|
||||
console.log("usage ui-scripts version <new-version>");
|
||||
process.exit(1);
|
||||
}
|
||||
const version = args[0];
|
||||
|
||||
const version = args[0];
|
||||
|
||||
lerna.version(version);
|
||||
lerna.version(version);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user