Skip to content

Commit

Permalink
Add: Infos
Browse files Browse the repository at this point in the history
  • Loading branch information
edelciomolina committed Dec 6, 2023
1 parent 077e402 commit 2487b16
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const generate = require('./lib/generate.js')
const minify = require('./lib/minify.js')
const clean = require('./lib/clean.js')

core.info(` ${process.argv.join(' ')}`)
core.info(` ${process.argv.join(' ')}`)

const args = process.argv.slice(2)
const bundleConfigFolder = args[args.indexOf('--bundle-config-folder') + 1]
Expand All @@ -17,7 +17,7 @@ const delete_input_files = (deleteInputFiles || 'true') === 'true'
const create_bundle_config = (createBundleConfig || 'true') === 'true'

try {
core.info(` You are here "${process.cwd()}"`)
core.info(` You are here "${process.cwd()}"`)

core.info(`✅ Input Parameters`)
core.info(` - bundle_config_folder: ${bundle_config_folder}`)
Expand All @@ -26,6 +26,7 @@ try {
core.info(` - delete_input_files: ${delete_input_files}`)

if (create_bundle_config) {
core.info(`⏩ Generate"`)
generate.Process({
bundle_config_folder,
search_extensions,
Expand All @@ -36,6 +37,7 @@ try {
core.info('✅ The bundleconfig.json was generated!')
}

core.info(`⏩ Minify"`)
minify.Process({
bundle_config_folder,
progress: (result) => {
Expand All @@ -45,6 +47,7 @@ try {
core.info('✅ All files minified!')

if (delete_input_files) {
core.info(`⏩ Clean"`)
clean.Process({
bundle_config_folder,
progress: (result) => {
Expand Down

0 comments on commit 2487b16

Please sign in to comment.