Sha256: a5be3e5be609a48cadc85324ae728cd183422e327803aead6285bebbe0771a0c

Contents?: true

Size: 1.36 KB

Versions: 56

Compression:

Stored size: 1.36 KB

Contents

"use strict";
const path = require("path");
const chalk = require("chalk");
const generateBuilders = require("./generators/generateBuilders");
const generateValidators = require("./generators/generateValidators");
const generateAsserts = require("./generators/generateAsserts");
const generateConstants = require("./generators/generateConstants");
const format = require("../../../scripts/utils/formatCode");
const writeFile = require("../../../scripts/utils/writeFileAndMkDir");

const baseDir = path.join(__dirname, "../src");

console.log("Generating @babel/types dynamic functions");

const buildersFile = path.join(baseDir, "builders/generated/index.js");
writeFile(buildersFile, format(generateBuilders(), buildersFile));
console.log(`  ${chalk.green("✔")} Generated builders`);

const validatorsFile = path.join(baseDir, "validators/generated/index.js");
writeFile(validatorsFile, format(generateValidators(), validatorsFile));
console.log(`  ${chalk.green("✔")} Generated validators`);

const assertsFile = path.join(baseDir, "asserts/generated/index.js");
writeFile(assertsFile, format(generateAsserts(), assertsFile));
console.log(`  ${chalk.green("✔")} Generated asserts`);

const constantsFile = path.join(baseDir, "constants/generated/index.js");
writeFile(constantsFile, format(generateConstants(), constantsFile));
console.log(`  ${chalk.green("✔")} Generated constants`);

Version data entries

56 entries across 56 versions & 9 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/types/scripts/generateTypeHelpers.js
disco_app-0.18.0 test/dummy/node_modules/@babel/types/scripts/generateTypeHelpers.js
disco_app-0.18.2 test/dummy/node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-5.0.7 node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-5.0.6 node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-5.0.5 node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-5.0.4 node_modules/@babel/types/scripts/generateTypeHelpers.js
disco_app-0.16.1 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/scripts/generateTypeHelpers.js
disco_app-0.15.2 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-5.0.3 node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-5.0.2 node_modules/@babel/types/scripts/generateTypeHelpers.js
disco_app-0.18.4 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/scripts/generateTypeHelpers.js
disco_app-0.18.1 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/scripts/generateTypeHelpers.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/scripts/generateTypeHelpers.js
disco_app-0.14.0 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/scripts/generateTypeHelpers.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/preset-modules/node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-5.0.1 node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-4.3.5 node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-5.0.0 node_modules/@babel/types/scripts/generateTypeHelpers.js
trusty-cms-4.3.4 node_modules/@babel/types/scripts/generateTypeHelpers.js