@tangelo/tangelo-configuration-toolkit 1.8.0-beta.3 → 1.8.0-beta.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangelo/tangelo-configuration-toolkit",
3
- "version": "1.8.0-beta.3",
3
+ "version": "1.8.0-beta.4",
4
4
  "description": "Tangelo Configuration Toolkit is a command-line toolkit which offers support for developing a Tangelo configuration.",
5
5
  "bin": {
6
6
  "tct": "bin/index.js",
@@ -34,15 +34,14 @@
34
34
  "gulp-plumber": "^1.2.1",
35
35
  "gulp-print": "^5.0.2",
36
36
  "gulp-sass": "^5.0.0",
37
- "gulp-simple-rename": "^0.1.3",
38
37
  "gulp-sourcemaps": "^3.0.0",
39
38
  "inquirer": "^8.2.0",
40
39
  "istextorbinary": "^6.0.0",
41
40
  "minimatch": "^3.0.4",
42
41
  "node-ssh": "^12.0.2",
43
42
  "object-assign-deep": "^0.4.0",
44
- "replace-in-file": "^6.0.0",
45
- "sass": "^1.43.4",
43
+ "replace-in-file": "^3.4.4",
44
+ "sass": "^1.43.5",
46
45
  "saxon-js": "^2.3.0",
47
46
  "scp2": "^0.5.0",
48
47
  "tiny-lr": "^2.0.0",
@@ -2,17 +2,15 @@ const fs = require('fs-extra');
2
2
  const globby = require('globby');
3
3
  const gulp = require('gulp');
4
4
  const {NodeSSH} = require('node-ssh');
5
- const path = require('path');
6
5
  const through2 = require('through2');
7
6
  const {spawnSync} = require('child_process');
8
7
 
9
- const g_babel = require('gulp-babel');
10
8
  const g_babel_env = require('babel-preset-es2015-without-strict');
9
+ const g_babel = require('gulp-babel')({presets: [g_babel_env], comments: false, minified: true});
11
10
  const g_eol = require('gulp-eol');
12
11
  const g_filter = require('gulp-filter');
13
12
  const g_plumber = require('gulp-plumber');
14
13
  const g_print = require('gulp-print');
15
- const g_rename = require('gulp-simple-rename');
16
14
  const g_replace = require('../../lib/gulp-batch-replace-with-filter');
17
15
  const g_resolveIncl = require('../../lib/gulp-resolve-includes');
18
16
  const g_sass = require('gulp-sass')(require('sass'));
@@ -157,7 +155,7 @@ const transfer = (paths, lrServer) => {
157
155
  .pipe(xpsF.restore)
158
156
  .pipe(jsF)
159
157
  .pipe(g_sourcemaps.init())
160
- .pipe(g_babel({ presets: [g_babel_env], comments: false, minified: true }))
158
+ .pipe(g_babel)
161
159
  .pipe(g_sourcemaps.write('.'))
162
160
  .pipe(jsF.restore)
163
161
  .pipe(sassF)
@@ -170,8 +168,8 @@ const transfer = (paths, lrServer) => {
170
168
  .pipe(shF.restore)
171
169
  .pipe(g_plumber.stop())
172
170
  .pipe(g_replace(c.replaceStrings))
173
- .pipe(g_rename(path => path.replace(/fonto[\\\/]dist/, 'fonto').replace(/(fonto[\\\/]).+(assets[\\\/]schemas)/, '$1$2'))) // change destination path for fonto build and schemas
174
171
  .pipe(through2.obj((file, enc, cb) => {
172
+ if (file.path.match(/fonto[\\\/]dist/)) file.path = file.path.replace(/fonto[\\\/]dist/, 'fonto'); // change destination path for fonto build
175
173
  if (!file.relative.endsWith('.map')) files.push(file.relative); // collect all file paths in array for livereload
176
174
  cb(null, file);
177
175
  }))
@@ -5,7 +5,6 @@ const path = require('path');
5
5
  const rif = require('replace-in-file');
6
6
 
7
7
 
8
- const rifSync = (options) => rif.sync(options).filter(result => result.hasChanged).map(result => result.file);
9
8
  const getPaths = (search, filter) =>
10
9
  globby
11
10
  .sync(search, {dot: true, ignore: [_paths.tdi + '/**','**/cmscustom/tdi/**']})
@@ -48,9 +47,9 @@ module.exports = function steps (step, dry, filter) {
48
47
  r.to = r.fromtoPairs.map(p => p[1]);
49
48
  }
50
49
 
51
- r.files = rifSync(r); // execute first time
50
+ r.files = rif.sync(r); // execute first time
52
51
  const filesModCount = r.files.length; // save file count
53
- for (let i=0; i<20 && !dry && r.files[0]; i++) r.files = rifSync(r); // execute repeatedly for modified files only (with safety limit of 20)
52
+ for (let i=0; i<20 && !dry && r.files[0]; i++) r.files = rif.sync(r); // execute repeatedly for modified files only (with safety limit of 20)
54
53
 
55
54
  _write('Files modified:', filesModCount);
56
55
  });