quackage 1.0.4 → 1.0.6
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/debug/gulpfile.js +1 -0
- package/debug/package.json +2 -27
- package/package.json +1 -1
- package/source/commands/Quackage-Command-Build.js +3 -3
- package/source/commands/Quackage-Command-Lint.js +1 -1
- package/source/commands/Quackage-Command-UpdatePackage.js +2 -2
- package/source/services/Quackage-Execute-Process.js +7 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('/Users/steven/Code/retold/modules/utility/quackage/gulp/Quackage-Gulpfile.js');
|
package/debug/package.json
CHANGED
|
@@ -4,34 +4,9 @@
|
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "Harness.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "./node_modules/.bin/mocha -u tdd -R spec"
|
|
8
|
-
"start": "node Harness.js",
|
|
9
|
-
"coverage": "./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",
|
|
10
|
-
"build": "./node_modules/.bin/gulp build",
|
|
11
|
-
"build-compatible": "GULP_CUSTOM_BUILD_TARGET=compatible ./node_modules/.bin/gulp build",
|
|
12
|
-
"docker-dev-build": "docker build ./ -f Dockerfile_LUXURYCode -t quackage-debug-image:local",
|
|
13
|
-
"docker-dev-run": "docker run -it -d --name quackage-debug-dev -p 30001:8080 -p 38086:8086 -v \"$PWD/.config:/home/coder/.config\" -v \"$PWD:/home/coder/quackage-debug\" -u \"$(id -u):$(id -g)\" -e \"DOCKER_USER=$USER\" quackage-debug-image:local",
|
|
14
|
-
"docker-dev-shell": "docker exec -it quackage-debug-dev /bin/bash"
|
|
7
|
+
"test": "./node_modules/.bin/mocha -u tdd -R spec"
|
|
15
8
|
},
|
|
16
9
|
"keywords": [],
|
|
17
10
|
"author": "steven velozo",
|
|
18
|
-
"license": "MIT"
|
|
19
|
-
"mocha": {
|
|
20
|
-
"diff": true,
|
|
21
|
-
"extension": [
|
|
22
|
-
"js"
|
|
23
|
-
],
|
|
24
|
-
"package": "./package.json",
|
|
25
|
-
"reporter": "spec",
|
|
26
|
-
"slow": "75",
|
|
27
|
-
"timeout": "5000",
|
|
28
|
-
"ui": "tdd",
|
|
29
|
-
"watch-files": [
|
|
30
|
-
"source/**/*.js",
|
|
31
|
-
"test/**/*.js"
|
|
32
|
-
],
|
|
33
|
-
"watch-ignore": [
|
|
34
|
-
"lib/vendor"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
11
|
+
"license": "MIT"
|
|
37
12
|
}
|
package/package.json
CHANGED
|
@@ -19,12 +19,12 @@ class QuackageCommandBuild extends libCommandLineCommand
|
|
|
19
19
|
this.addCommand();
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
run(pArgumentString, pCommand, fCallback)
|
|
22
|
+
run(pArgumentString, pOptions, pCommand, fCallback)
|
|
23
23
|
{
|
|
24
24
|
let tmpActionsToExecute = pArgumentString.toUpperCase();
|
|
25
25
|
let tmpActionSet = [];
|
|
26
26
|
|
|
27
|
-
let tmpOptions =
|
|
27
|
+
let tmpOptions = pOptions;
|
|
28
28
|
|
|
29
29
|
this.log.info(`Building browserified module ${tmpActionsToExecute} from the command...`,tmpOptions);
|
|
30
30
|
|
|
@@ -85,7 +85,7 @@ class QuackageCommandBuild extends libCommandLineCommand
|
|
|
85
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
|
-
this.fable.QuackageProcess.execute(`${this.fable.AppData.QuackageFolder}
|
|
88
|
+
this.fable.QuackageProcess.execute(`${this.fable.AppData.QuackageFolder}/../.bin/gulp`, [`--gulpfile`, `${this.fable.AppData.CWD}/.gulpfile-quackage.js`], {cwd:this.fable.AppData.CWD}, fActionCallback);
|
|
89
89
|
},
|
|
90
90
|
(pError) =>
|
|
91
91
|
{
|
|
@@ -19,12 +19,12 @@ class QuackageCommandLint extends libCommandLineCommand
|
|
|
19
19
|
this.addCommand();
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
run(
|
|
22
|
+
run(pOptions, pCommand, fCallback)
|
|
23
23
|
{
|
|
24
24
|
// Execute the command
|
|
25
25
|
this.log.info(`Updating package.json...`);
|
|
26
26
|
|
|
27
|
-
let tmpOptions =
|
|
27
|
+
let tmpOptions = pOptions;
|
|
28
28
|
|
|
29
29
|
// The package.json from the project we are quackin at
|
|
30
30
|
let tmpProjectPackage = JSON.parse(JSON.stringify(this.fable.AppData.Package));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const libQuackageExecuteProcessBase = require(`./Quackage-Execute-Process-Base.js`);
|
|
2
2
|
const libChildProcess = require('child_process');
|
|
3
|
+
const libPath = require('path');
|
|
3
4
|
|
|
4
5
|
class BaseQuackageProcessExecutionService extends libQuackageExecuteProcessBase
|
|
5
6
|
{
|
|
@@ -17,7 +18,12 @@ class BaseQuackageProcessExecutionService extends libQuackageExecuteProcessBase
|
|
|
17
18
|
|
|
18
19
|
quackageFolder()
|
|
19
20
|
{
|
|
20
|
-
return `${__dirname}
|
|
21
|
+
return libPath.resolve(`${__dirname}/../..`);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
node_modules_folder()
|
|
25
|
+
{
|
|
26
|
+
return libPath.resolve(`${this.quackagefolder}/..`);
|
|
21
27
|
}
|
|
22
28
|
|
|
23
29
|
exitParentProcess(pCode)
|