Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Commit e8b5bab

Browse files
feat(atlauncher-scripts): add in babel-run and build commands
1 parent 67917cf commit e8b5bab

File tree

6 files changed

+8559
-3672
lines changed

6 files changed

+8559
-3672
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# node modules folder
22
node_modules/
33

4-
# IntelliJ IDE files
4+
# Editor/IDE files
55
.idea/
6+
.vscode/
67

78
# NPM debug log
89
npm-debug.log
@@ -11,4 +12,4 @@ npm-debug.log
1112
lerna-debug.log
1213

1314
# changelog directory
14-
.changelog
15+
.changelog

packages/atlauncher-scripts/bin/atlauncher-scripts.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const args = process.argv.slice(3);
88
switch (script) {
99
case 'lint':
1010
case 'test':
11-
case 'clean': {
11+
case 'build':
12+
case 'clean':
13+
case 'babel-run': {
1214
const result = spawn.sync('node', [require.resolve(`../scripts/${script}`)].concat(args), {
1315
stdio: 'inherit',
1416
});
@@ -18,13 +20,13 @@ switch (script) {
1820
console.log(
1921
'The build failed because the process exited too early. ' +
2022
'This probably means the system ran out of memory or someone called ' +
21-
'`kill -9` on the process.',
23+
'`kill -9` on the process.'
2224
);
2325
} else if (result.signal === 'SIGTERM') {
2426
console.log(
2527
'The build failed because the process exited too early. ' +
2628
'Someone might have called `kill` or `killall`, or the system could ' +
27-
'be shutting down.',
29+
'be shutting down.'
2830
);
2931
}
3032
process.exit(1);

0 commit comments

Comments
 (0)