ultimate-jekyll-manager 0.0.32 → 0.0.34

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.
@@ -33,6 +33,7 @@ module.exports = async function (options) {
33
33
  options.createCname = force(options.createCname || true, 'boolean');
34
34
  options.fetchFirebaseAuth = force(options.fetchFirebaseAuth || true, 'boolean');
35
35
  options.checkLocality = force(options.checkLocality || true, 'boolean');
36
+ options.updateBundle = force(options.updateBundle || true, 'boolean');
36
37
 
37
38
  // Log
38
39
  logger.log(`Welcome to ${package.name} v${package.version}!`);
@@ -93,6 +94,11 @@ module.exports = async function (options) {
93
94
  if (options.checkLocality) {
94
95
  await checkLocality();
95
96
  }
97
+
98
+ // Check which locality we are using
99
+ if (options.updateBundle && !Manager.isServer()) {
100
+ await updateBundle();
101
+ }
96
102
  } catch (e) {
97
103
  // Throw error
98
104
  throw e;
@@ -235,6 +241,16 @@ function checkLocality() {
235
241
  }
236
242
  }
237
243
 
244
+ async function updateBundle() {
245
+ // Log
246
+ logger.log('Running bundle install...');
247
+ await execute('bundle install', { log: true })
248
+
249
+ // Log
250
+ logger.log('Running bundle update...');
251
+ await execute('bundle update', { log: true })
252
+ }
253
+
238
254
  function install(package, ver, location) {
239
255
  // Default to latest
240
256
  ver || 'latest';
@@ -42,9 +42,12 @@ jobs:
42
42
  bundler-cache: false
43
43
  - name: Install specific bundler version
44
44
  run: gem install bundler -v ${{ env.BUNDLER_VERSION }}
45
- - name: Run bundle install # TODO: [DEPRECATED] MIGRATE TO: bundle config set --local path 'vendor/bundle'
45
+ # - name: Run bundle install # TODO: [DEPRECATED] MIGRATE TO: bundle config set --local path 'vendor/bundle'
46
+ # run: |
47
+ # bundle install --path vendor/bundle
48
+ - name: Run bundle install
46
49
  run: |
47
- bundle install --path vendor/bundle
50
+ bundle install
48
51
  - name: Setup node
49
52
  uses: actions/setup-node@v4
50
53
  with:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -22,8 +22,6 @@
22
22
  "replace": {}
23
23
  },
24
24
  "projectScripts": {
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",
27
25
  "start": "npx uj clean && npx uj setup && bundle exec npm run gulp --",
28
26
  "gulp": "gulp --cwd ./ --gulpfile ./node_modules/ultimate-jekyll-manager/dist/gulp/main.js",
29
27
  "build": "npx uj clean && npx uj setup && UJ_BUILD_MODE=true bundle exec npm run gulp -- build"