Skip to content

Commit 3bf5892

Browse files
committed
feature #380 Add alias prod for production command (vince83110)
This PR was squashed before being merged into the master branch (closes #380). Discussion ---------- Add alias prod for production command Very simple PR, everytime I write `yarn run encore prod` instead of `yarn run encore production`, I guess it's because we use _dev_ for _development_. I kept the `production` command of course. Commits ------- 5c06db9 Add alias prod for production command
2 parents 524547a + 5c06db9 commit 3bf5892

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/encore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if (runtimeConfig.useDevServer) {
6464
}
6565

6666
function showUsageInstructions() {
67-
const validCommands = ['dev', 'production', 'dev-server'];
67+
const validCommands = ['dev', 'prod', 'production', 'dev-server'];
6868

6969
console.log(`usage ${chalk.green('encore')} [${ validCommands.map(command => chalk.green(command)).join('|') }]`);
7070
console.log();

lib/config/parse-runtime.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = function(argv, cwd) {
3434
runtimeConfig.verbose = true;
3535
break;
3636
case 'production':
37+
case 'prod':
3738
runtimeConfig.isValidCommand = true;
3839
runtimeConfig.environment = 'production';
3940
runtimeConfig.verbose = false;

0 commit comments

Comments
 (0)