ultimate-jekyll-manager 0.0.27 → 0.0.29
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.
|
@@ -82,10 +82,6 @@ jobs:
|
|
|
82
82
|
run: |
|
|
83
83
|
echo "All files in the repo: "
|
|
84
84
|
ls -R *
|
|
85
|
-
- name: Attempt to log full GH_TOKEN
|
|
86
|
-
run: |
|
|
87
|
-
echo "GH_TOKEN: $GH_TOKEN"
|
|
88
|
-
echo "GH_TOKEN(4): ${GH_TOKEN:0:4}"
|
|
89
85
|
- name: Run node build
|
|
90
86
|
run: |
|
|
91
87
|
UJ_BUILD_MODE=true UJ_IS_SERVER=true npx uj setup && npm run build
|
|
@@ -52,9 +52,6 @@ const FILE_MAP = {
|
|
|
52
52
|
},
|
|
53
53
|
|
|
54
54
|
// Files to run templating on
|
|
55
|
-
'.github/workflows/build.yml': {
|
|
56
|
-
template: cleanVersions,
|
|
57
|
-
},
|
|
58
55
|
'.nvmrc': {
|
|
59
56
|
template: cleanVersions,
|
|
60
57
|
},
|
|
@@ -64,6 +61,11 @@ const FILE_MAP = {
|
|
|
64
61
|
? `path: File.expand_path('~/Developer/Repositories/ITW-Creative-Works/jekyll-uj-powertools')`
|
|
65
62
|
: '"~> 1.0"'
|
|
66
63
|
},
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
// Files to skip
|
|
67
|
+
'.DS_Store': {
|
|
68
|
+
skip: true,
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
|
|
@@ -71,10 +73,6 @@ const FILE_MAP = {
|
|
|
71
73
|
const input = [
|
|
72
74
|
// Files to include
|
|
73
75
|
`${rootPathPackage}/dist/defaults/**/*`,
|
|
74
|
-
`${rootPathPackage}/dist/defaults/**/.*`,
|
|
75
|
-
|
|
76
|
-
// Files to exclude
|
|
77
|
-
'!**/.DS_Store',
|
|
78
76
|
];
|
|
79
77
|
const output = './';
|
|
80
78
|
const delay = 250;
|
|
@@ -91,11 +89,18 @@ function defaults(complete) {
|
|
|
91
89
|
logger.log('Starting...');
|
|
92
90
|
logger.log('input', input)
|
|
93
91
|
|
|
92
|
+
// Log files being used
|
|
93
|
+
logger.log('Files being used:');
|
|
94
|
+
|
|
94
95
|
// Complete
|
|
95
96
|
// return src(input, { base: 'src' })
|
|
96
97
|
// src(input, { base: `${rootPathPackage}/dist/defaults` })
|
|
97
|
-
return src(input)
|
|
98
|
-
|
|
98
|
+
return src(input, { dot: true, })
|
|
99
|
+
// .pipe(through2.obj(function (file, _, callback) {
|
|
100
|
+
// // Log each file being processed
|
|
101
|
+
// logger.log(` - ${file.path}`);
|
|
102
|
+
// callback(null, file);
|
|
103
|
+
// }))
|
|
99
104
|
.pipe(customTransform())
|
|
100
105
|
.pipe(dest(output))
|
|
101
106
|
.on('finish', () => {
|
|
@@ -213,7 +218,7 @@ function customTransform() {
|
|
|
213
218
|
}
|
|
214
219
|
function defaultsWatcher(complete) {
|
|
215
220
|
// Quit if in build mode
|
|
216
|
-
if (Manager.isBuildMode()) {
|
|
221
|
+
if (Manager.isBuildMode() || process.env.UJ_SKIP_DEFAULTS_WATCHER === 'true') {
|
|
217
222
|
logger.log('[watcher] Skipping watcher in build mode');
|
|
218
223
|
return complete();
|
|
219
224
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultimate-jekyll-manager",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"description": "Ultimate Jekyll dependency manager",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"projectScripts": {
|
|
25
25
|
"preinstall": "bundle install && bundle update",
|
|
26
|
+
"postinstall": "npx uj clean && npx uj setup && UJ_SKIP_DEFAULTS_WATCHER=true bundle exec npm run gulp -- defaults",
|
|
26
27
|
"start": "npx uj clean && npx uj setup && bundle exec npm run gulp --",
|
|
27
28
|
"gulp": "gulp --cwd ./ --gulpfile ./node_modules/ultimate-jekyll-manager/dist/gulp/main.js",
|
|
28
29
|
"build": "npx uj clean && npx uj setup && UJ_BUILD_MODE=true bundle exec npm run gulp -- build"
|