frontfire 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frontfire",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -21,26 +21,38 @@ for ( let ri = 0; ri < rootFiles.length; ri++ )
21
21
  rootFilesToCopy.push( `src/` + rootFiles[ ri ].name );
22
22
  }
23
23
 
24
- const buildDir = 'build';
24
+ const buildDir = `build`;
25
25
  const entryPoints = [
26
- "./src/app/main.js",
27
- ".src/app/app.css"
26
+ /*
27
+ "src/app/main.js",
28
+ "src/app/app.css"
29
+ */
28
30
  /*
29
31
  path.resolve( './src/app/main.js' ),
30
32
  path.resolve( './src/app/app.css' )
31
33
  */
32
- /*
33
34
  `.${path.sep}src${path.sep}app${path.sep}main.js`,
34
35
  `.${path.sep}src${path.sep}app${path.sep}app.css`
35
- */
36
36
  ];
37
37
 
38
- const outDirDebug = `${buildDir}${path.sep}debug${path.sep}app${path.sep}`
39
- const outDirRelease = `${buildDir}${path.sep}release${path.sep}app${path.sep}`;
38
+ const outDirDebug = `${buildDir}/debug/app/`
39
+ const outDirRelease = `${buildDir}/release/app`;
40
+
41
+ console.log( outDirRelease );
42
+
43
+ const staticAssetsDestDebug = `${buildDir}/debug/assets`;
44
+ const staticAssetsDestRelease = `${buildDir}/release/assets`;
45
+
46
+ /*
47
+ console.log( "Build folder:" );
48
+ console.log( buildDir );
49
+
40
50
 
41
- const staticAssetsDestDebug = `${buildDir}${path.sep}debug${path.sep}assets`;
42
- const staticAssetsDestRelease = `${buildDir}${path.sep}release${path.sep}assets`;
51
+ console.log( "Release folder:" );
52
+ console.log( outDirRelease );
43
53
 
54
+ console.log( "First entry point", entryPoints[ 0 ] );
55
+ */
44
56
  export default {
45
57
  "buildDir" : buildDir,
46
58
  "debug" : {
@@ -68,12 +80,12 @@ export default {
68
80
  assets: [
69
81
  {
70
82
  from: rootFilesToCopy,
71
- to: [`${buildDir}${path.sep}debug` ]
83
+ to: [`${buildDir}/debug` ]
72
84
  }
73
85
  ]
74
86
  }),
75
87
  copyStaticFiles({
76
- src: 'src/assets',
88
+ src: `src/assets`,
77
89
  dest: staticAssetsDestDebug,
78
90
  dereference: true,
79
91
  errorOnExist: false,
@@ -101,12 +113,12 @@ export default {
101
113
  assets: [
102
114
  {
103
115
  from: rootFilesToCopy,
104
- to: [`${buildDir}${path.sep}release` ]
116
+ to: [`${buildDir}/release` ]
105
117
  }
106
118
  ]
107
119
  }),
108
120
  copyStaticFiles({
109
- src: 'src/assets',
121
+ src: `src/assets`,
110
122
  dest: staticAssetsDestRelease,
111
123
  dereference: true,
112
124
  errorOnExist: false,
package/src/FrontFire.js CHANGED
@@ -20,6 +20,10 @@ export default async function frontFire( isWatch, cfg = {} )
20
20
  throw new Error( 'No valid buildDir.' );
21
21
  }
22
22
 
23
+
24
+ console.log( "Using root build dir:" )
25
+ console.log( rootBuildDir );
26
+
23
27
  fse.ensureDirSync( rootBuildDir );
24
28
  fse.ensureDirSync( `${rootBuildDir}${path.sep}debug` );
25
29
  fse.ensureDirSync( `${rootBuildDir}${path.sep}release` );
@@ -52,6 +56,8 @@ export default async function frontFire( isWatch, cfg = {} )
52
56
  esbuildOpts = _.get( config, 'release.esbuild' );
53
57
  }
54
58
 
59
+ console.log( esbuildOpts );
60
+
55
61
  let ctx = await esbuild.context( esbuildOpts );
56
62
 
57
63
  if ( true === isWatch )