File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11/// <reference lib="deno.ns" />
22import * as esbuild from '@esbuild' ;
33import { denoPlugin as esbuildPluginDeno } from "@deno/esbuild-plugin" ;
4- import { green } from '@std/fmt/colors' ;
4+ import { bold , green , magenta } from '@std/fmt/colors' ;
55import { parseArgs } from '@std/cli/parse-args' ;
66
77const args = parseArgs < {
@@ -39,7 +39,7 @@ const copyConfig : esbuild.BuildOptions = {
3939 './src/client/**/index.css' ,
4040 './src/client/**/assets/*' ,
4141 './src/client/static/**/*'
42- ]
42+ ] ,
4343}
4444
4545const filesConfig : esbuild . BuildOptions = {
@@ -73,7 +73,7 @@ const filesConfig : esbuild.BuildOptions = {
7373 ]
7474}
7575
76- console . log ( ' Build process started.' ) ;
76+ console . log ( bold ( ` Build process started. Building and bundling for ${ magenta ( args . develop ? '[Development]' : '[Production]' ) } .` ) ) ;
7777
7878const timestampNow = Date . now ( ) ;
7979
@@ -83,7 +83,7 @@ if (args.watch) {
8383} else {
8484 Promise . all ( [
8585 esbuild . build ( copyConfig ) ,
86- esbuild . build ( filesConfig ) ,
86+ esbuild . build ( filesConfig )
8787 ] ) . then ( ( ) => {
8888 esbuild . stop ( ) ;
8989 console . log ( green ( `esbuild ${ esbuild . version } finished build in ${ ( Date . now ( ) - timestampNow ) . toString ( ) } ms.` ) ) ;
You can’t perform that action at this time.
0 commit comments