@polylith/builder 0.0.29 → 0.0.31
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/App.js +7 -7
- package/Files.js +1 -1
- package/package.json +1 -1
package/App.js
CHANGED
|
@@ -41,18 +41,18 @@ export default class App {
|
|
|
41
41
|
* @param {String} name a name for the app
|
|
42
42
|
* @param {String} root the root directory of the project. All other
|
|
43
43
|
* paths will be relative to this path.
|
|
44
|
-
* @param {String} index the path to the main source file
|
|
45
|
-
* source paths will be assumed to be relative to this path.
|
|
46
|
-
* @param {String} dest the path to the destination folder
|
|
47
|
-
* rolled up files
|
|
44
|
+
* @param {String} index the relative path to the main source file from the
|
|
45
|
+
* root. All source paths will be assumed to be relative to this path.
|
|
46
|
+
* @param {String} dest the relative path to the destination folder from the
|
|
47
|
+
* root for rolled up files
|
|
48
48
|
*/
|
|
49
49
|
|
|
50
|
-
constructor(name, root, index
|
|
50
|
+
constructor(name, root, index, dest) {
|
|
51
51
|
root = App.fixPath(root);
|
|
52
52
|
this.root = root;
|
|
53
53
|
|
|
54
54
|
var filename = path.posix.join(root, index);
|
|
55
|
-
this.sourcePath = path.posix.dirname(filename);
|
|
55
|
+
this.sourcePath = path.posix.join(root, path.posix.dirname(filename));
|
|
56
56
|
this.destPath = path.posix.join(root, dest);
|
|
57
57
|
|
|
58
58
|
this.name = name;
|
|
@@ -65,7 +65,7 @@ export default class App {
|
|
|
65
65
|
this.configs = {};
|
|
66
66
|
this.manualChunkType = 'function';
|
|
67
67
|
this.manualChunks = [];
|
|
68
|
-
this.files = new Files(sourcePath,
|
|
68
|
+
this.files = new Files(sourcePath, destPath)
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
static fileToPath(filename) {
|
package/Files.js
CHANGED
|
@@ -32,7 +32,7 @@ export default class Files {
|
|
|
32
32
|
*
|
|
33
33
|
* @param {String} dest the absolute filepath to the application's
|
|
34
34
|
* destination directory
|
|
35
|
-
* @param {String} src
|
|
35
|
+
* @param {String} src the abolute path to the applications source
|
|
36
36
|
* directory
|
|
37
37
|
*/
|
|
38
38
|
constructor(dest, src) {
|