quackage 1.0.7 → 1.0.8
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
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"test": "./node_modules/.bin/mocha -u tdd -R spec",
|
|
52
52
|
"coverage": "./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",
|
|
53
53
|
|
|
54
|
-
"build": "
|
|
55
|
-
"build-compatible": "GULP_CUSTOM_BUILD_TARGET=compatible ./node_modules/.bin/gulp build",
|
|
54
|
+
"build": "npx quack build",
|
|
56
55
|
|
|
57
56
|
"docker-dev-build": "docker build ./ -f Dockerfile_LUXURYCode -t {~Data:AppData.Package.name~}-image:local",
|
|
58
57
|
"docker-dev-run": "docker run -it -d --name {~Data:AppData.Package.name~}-dev -p 30001:8080 -p 38086:8086 -v \"$PWD/.config:/home/coder/.config\" -v \"$PWD:/home/coder/{~Data:AppData.Package.name~}\" -u \"$(id -u):$(id -g)\" -e \"DOCKER_USER=$USER\" {~Data:AppData.Package.name~}-image:local",
|
|
59
58
|
"docker-dev-shell": "docker exec -it {~Data:AppData.Package.name~}-dev /bin/bash"
|
|
60
59
|
},
|
|
60
|
+
"CopyAfterBuild": [],
|
|
61
61
|
"LuxuryIDEPort": 0,
|
|
62
62
|
"LuxuryWebPort": -1,
|
|
63
63
|
"LuxuryMySQLPort": -1
|
|
@@ -82,7 +82,7 @@ class QuackageCommandBuild extends libCommandLineCommand
|
|
|
82
82
|
// ## .gulpfile-quackage.js
|
|
83
83
|
libFS.writeFileSync(`${this.fable.AppData.CWD}/.gulpfile-quackage.js`, this.fable.parseTemplateByHash('Gulpfile-QuackageBase', { AppData: this.fable.AppData, Record: pAction }));
|
|
84
84
|
// ## gulpfile.js
|
|
85
|
-
libFS.writeFileSync(`${this.fable.AppData.CWD}/gulpfile.js`, this.fable.parseTemplateByHash('Gulpfile-QuackageBase', { AppData: this.fable.AppData, Record: pAction }));
|
|
85
|
+
//libFS.writeFileSync(`${this.fable.AppData.CWD}/gulpfile.js`, this.fable.parseTemplateByHash('Gulpfile-QuackageBase', { AppData: this.fable.AppData, Record: pAction }));
|
|
86
86
|
|
|
87
87
|
// Now execute the gulpfile using our custom service provider!
|
|
88
88
|
// We are forcing the gulp to run from the node_modules folder of the package -- this allows you to run quackage globally
|
|
@@ -91,6 +91,16 @@ class QuackageCommandBuild extends libCommandLineCommand
|
|
|
91
91
|
},
|
|
92
92
|
(pError) =>
|
|
93
93
|
{
|
|
94
|
+
// Now process the CopyAfterBuild directives
|
|
95
|
+
if (this.fable.AppData.QuackagePackage.CopyAfterBuild.length > 0)
|
|
96
|
+
{
|
|
97
|
+
//this.log.info(`Copying the following files to :`, { Files: this.fable.AppData.QuackagePackage.CopyAfterBuild });
|
|
98
|
+
for (let i = 0; i < this.fable.AppData.QuackagePackage.CopyAfterBuild.length; i++)
|
|
99
|
+
{
|
|
100
|
+
// TODO: FilePersistence needs a copy recursive with globbing.
|
|
101
|
+
//libFS.copyFileSync(`${this.fable.AppData.CWD}/${this.fable.AppData.QuackagePackage.CopyAfterBuild[i]}`, `${this.fable.AppData.CWD}/dist/${this.fable.AppData.QuackagePackage.CopyAfterBuild[i]}`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
94
104
|
if (typeof (fCallback) == 'function')
|
|
95
105
|
{
|
|
96
106
|
return fCallback(pError);
|