ultimate-jekyll-manager 0.0.27 → 0.0.28

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.
@@ -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
- // src(input)
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', () => {
@@ -165,13 +170,13 @@ function customTransform() {
165
170
  }
166
171
 
167
172
  // Log
168
- // logger.log(`Processing file: ${relativePath}`);
169
- // logger.log(` _ORIG: ${file.path}`);
170
- // logger.log(` name: ${item.name}`);
171
- // logger.log(` destination: ${item.destination}`);
172
- // logger.log(` overwrite: ${options.overwrite}`);
173
- // logger.log(` skip: ${options.skip}`);
174
- // logger.log(` _FINAL: ${fullOutputPath}`);
173
+ logger.log(`Processing file: ${relativePath}`);
174
+ logger.log(` _ORIG: ${file.path}`);
175
+ logger.log(` name: ${item.name}`);
176
+ logger.log(` destination: ${item.destination}`);
177
+ logger.log(` overwrite: ${options.overwrite}`);
178
+ logger.log(` skip: ${options.skip}`);
179
+ logger.log(` _FINAL: ${fullOutputPath}`);
175
180
 
176
181
  // Run template if required
177
182
  if (options.template) {
@@ -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
  }
@@ -42,7 +42,7 @@ function distribute() {
42
42
  await createBuildJSON();
43
43
 
44
44
  // Complete
45
- return src(input, { base: 'src' })
45
+ return src(input, { base: 'src', dot: true, })
46
46
  // .pipe(customTransform())
47
47
  .pipe(dest(output))
48
48
  .on('end', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
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"