diff --git a/bin.js b/bin.js index a8b049f..d60e4ae 100644 --- a/bin.js +++ b/bin.js @@ -15,18 +15,33 @@ switch (args[0]) { case 'dev': try { - execSync('grunt --env=development', { stdio: 'inherit', cwd: __dirname }); + execSync('grunt --env=development', { stdio: 'inherit', cwd: __dirname }); } catch (error) { - console.error('Error ejecutando grunt:', error.message); + console.error('Error ejecutando grunt:', error.message); } break; - default: - const isoletedEnv = args[0].split(':')[1]; + case 'build:qa': try { - execSync('grunt build --env=' + isoletedEnv, { stdio: 'inherit', cwd: __dirname }); + execSync('grunt build --env=qa', { stdio: 'inherit', cwd: __dirname }); } catch (error) { - console.error('Error ejecutando grunt:', error.message); + console.error('Error ejecutando grunt:', error.message); + } + break; + + case 'build:staging': + try { + execSync('grunt build --env=staging', { stdio: 'inherit', cwd: __dirname }); + } catch (error) { + console.error('Error ejecutando grunt:', error.message); + } + break; + + case 'build:prod': + try { + execSync('grunt build --env=production', { stdio: 'inherit', cwd: __dirname }); + } catch (error) { + console.error('Error ejecutando grunt:', error.message); } break; } \ No newline at end of file diff --git a/package.json b/package.json index 0c90332..f471ced 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vanilla-jet", - "version": "1.0.37", + "version": "1.0.38", "description": "VannilaJet framework", "main": "index.js", "bin": {