@researchdatabox/redbox-dev-tools 0.0.1-beta.10213 → 0.0.1-beta.10300

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.
@@ -32,15 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
35
  Object.defineProperty(exports, "__esModule", { value: true });
39
36
  exports.generateHookArchetype = generateHookArchetype;
40
37
  const fs = __importStar(require("fs"));
41
38
  const path = __importStar(require("path"));
42
- const handlebars_1 = __importDefault(require("handlebars"));
43
- handlebars_1.default.registerHelper('json', (value) => JSON.stringify(value));
39
+ const sails_ng_common_1 = require("@researchdatabox/sails-ng-common");
44
40
  function toPascalCase(value) {
45
41
  return value
46
42
  .split(/[^A-Za-z0-9]+/)
@@ -74,7 +70,7 @@ function walkTemplateFiles(dir) {
74
70
  }
75
71
  function renderTemplate(sourcePath, context) {
76
72
  const templateSource = fs.readFileSync(sourcePath, 'utf8');
77
- const template = handlebars_1.default.compile(templateSource, { noEscape: true });
73
+ const template = (0, sails_ng_common_1.handlebarsCompile)(templateSource, { noEscape: true });
78
74
  return template(context);
79
75
  }
80
76
  function toOutputRelativePath(templateRoot, filePath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@researchdatabox/redbox-dev-tools",
3
- "version": "0.0.1-beta.10213",
3
+ "version": "0.0.1-beta.10300",
4
4
  "description": "ReDBox customisation dev tools - shared configuration, generators, and migration tooling",
5
5
  "type": "commonjs",
6
6
  "main": "index.js",
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "homepage": "https://github.com/redbox-mint/redbox-portal/tree/v4.5.1#readme",
46
46
  "dependencies": {
47
- "@researchdatabox/redbox-core": "0.0.1-beta.10213",
48
- "@researchdatabox/sails-ng-common": "0.0.1-beta.10213",
47
+ "@researchdatabox/redbox-core": "0.0.1-beta.10300",
48
+ "@researchdatabox/sails-ng-common": "0.0.1-beta.10300",
49
49
  "@tsconfig/node24": "24.0.4",
50
50
  "@types/chai": "5.2.3",
51
51
  "@types/lodash": "4.17.24",
@@ -15,9 +15,7 @@ RUN --mount=type=cache,target=/root/.npm \
15
15
  && npm run compile \
16
16
  && cd /opt/redbox-portal \
17
17
  && npm install --legacy-peer-deps --ignore-scripts /opt/{{packageName}} \
18
- && mkdir -p /opt/redbox-portal/views /opt/redbox-portal/assets /opt/redbox-portal/language-defaults \
19
- && if [ -d /opt/{{packageName}}/views ]; then cp -a /opt/{{packageName}}/views/. /opt/redbox-portal/views/; fi \
20
- && if [ -d /opt/{{packageName}}/assets ]; then cp -a /opt/{{packageName}}/assets/. /opt/redbox-portal/assets/; fi \
18
+ && mkdir -p /opt/redbox-portal/language-defaults \
21
19
  && if [ -d /opt/{{packageName}}/language-defaults ]; then cp -a /opt/{{packageName}}/language-defaults/. /opt/redbox-portal/language-defaults/; fi
22
20
 
23
21
  FROM ${REDBOX_BASE_IMAGE} AS {{packageName}}