diff --git a/.core/.cli/commands/docs/index.js b/.core/.cli/commands/docs/index.js index bb0ccb31..db82a006 100644 --- a/.core/.cli/commands/docs/index.js +++ b/.core/.cli/commands/docs/index.js @@ -9,8 +9,7 @@ const generator = require('./generator'); const prettier = require('prettier'); const path = require('path'); const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); +const { error, message } = arcli; /** * NAME String diff --git a/.core/.cli/commands/electron/builder/actions.js b/.core/.cli/commands/electron/builder/actions.js deleted file mode 100644 index 26fa941d..00000000 --- a/.core/.cli/commands/electron/builder/actions.js +++ /dev/null @@ -1,364 +0,0 @@ -const path = require('path'); -const chalk = require('chalk'); -const fs = require('fs-extra'); -const _ = require('underscore'); -const run = require('@atomic-reactor/gulp-run'); -const moment = require('moment'); -const op = require('object-path'); -const prettier = require('prettier').format; -const handlebars = require('handlebars').compile; - -const timestamp = () => `[${chalk.magenta(moment().format('HH:mm:ss'))}]`; -const msg = (...msg) => console.log(timestamp(), ...msg); - -const gulpOverride = ` -module.${chalk.cyan('exports')} = ${chalk.magenta('config')} => { - config.${chalk.cyan('dest')}.${chalk.cyan('electron')} = ${chalk.magenta( - "'build-electron'", -)}; - config.${chalk.cyan('dest')}.${chalk.cyan('static')} = ${chalk.magenta( - "'build-electron/app/public'", -)}; - config.${chalk.cyan('electron')} = { - ${chalk.cyan('config')}: { - ${chalk.cyan('width')}: ${chalk.white(1024)}, - ${chalk.cyan('height')}: ${chalk.white(768)}, - ${chalk.cyan('show')}: ${chalk.white('false')}, - ${chalk.cyan('title')}: ${chalk.magenta("'App Title'")}, - ${chalk.cyan('backgroundColor')}: ${chalk.magenta("'#000000'")}, - }, - ${chalk.cyan('devtools')}: ${chalk.white('true')}, - }; - config.${chalk.cyan('open')} = ${chalk.white('false')}; - - return ${chalk.magenta('config')}; -}; -`; - -/* -const manifestOverride = ` -module.${chalk.cyan('exports')} = ${chalk.magenta('config')} => { - config.${chalk.cyan('contexts.components.mode')} = ${chalk.magenta( - "'sync'", -)}; - config.${chalk.cyan('contexts.common.mode')} = ${chalk.magenta("'sync'")}; - config.${chalk.cyan('contexts.toolkit.mode')} = ${chalk.magenta("'sync'")}; - config.${chalk.cyan('contexts.core.mode')} = ${chalk.magenta("'sync'")}; - - return ${chalk.magenta('config')}; -}; -`; -*/ - -let cwd; -let gulpConfig; -let manifestConfig; -let reactiumConfig; - -module.exports = () => { - return { - setup: ({ action, props }) => - new Promise(resolve => { - cwd = op.get(props, 'cwd'); - reactiumConfig = require(path.join( - cwd, - '.core', - 'reactium-config.js', - )); - - gulpConfig = reactiumConfig.build; - manifestConfig = reactiumConfig.manifest; - - if (!op.has(gulpConfig, 'dest.electron')) { - msg( - `The following ${chalk.cyan( - 'gulp.config.override.js', - )} values need to be set:`, - ); - console.log('\n'); - console.log(gulpOverride); - console.log(`${chalk.magenta('Action cancelled')}!`); - console.log('\n'); - - process.exit(0); - } - - /* - if ( - op.get(manifestConfig, 'contexts.components.mode') !== - 'sync' - ) { - msg( - `The following ${chalk.cyan( - 'manifest.config.override.js', - )} values need to be set:`, - ); - console.log('\n'); - console.log(manifestOverride); - console.log(`${chalk.magenta('Action cancelled')}!`); - console.log('\n'); - - process.exit(0); - } - */ - - resolve({ action, status: 200 }); - }), - - config: ({ action, props }) => - new Promise(resolve => { - const configFile = path.join( - cwd, - gulpConfig.dest.electron, - 'app.config.js', - ); - - if (!fs.existsSync(configFile)) { - msg('Generating', chalk.cyan('app.config.js') + '...'); - - const appConfig = { - port: op.get(gulpConfig, 'port'), - electron: op.get(gulpConfig, 'electron'), - }; - - fs.ensureFileSync(configFile); - - const templateFile = path.join( - __dirname, - 'template', - 'app.config.hbs', - ); - - const template = handlebars( - fs.readFileSync(templateFile, 'utf-8'), - )({ - config: String( - prettier(JSON.stringify(appConfig, null, 4), { - parser: 'json5', - }), - ).trim(), - }); - - fs.writeFileSync(configFile, template); - } - - resolve({ action, status: 200 }); - }), - - build: ({ action, props }) => - new Promise(resolve => { - msg('Building', chalk.cyan('app') + '...'); - const cmd = new run.Command( - `cross-env NODE_ENV=production gulp --color`, - { verbosity: 0 }, - ); - setTimeout( - () => - cmd.exec(null, () => resolve({ action, status: 200 })), - 1, - ); - }), - - compileCore: ({ action, props }) => - new Promise(resolve => { - msg('Compiling', chalk.cyan('core') + '...'); - const srcDir = path.join(cwd, '.core'); - const outDir = path.join( - cwd, - op.get(gulpConfig, 'dest.build', 'build/.core'), - ); - const cmd = new run.Command( - `cross-env NODE_ENV=production babel "${srcDir}" --out-dir "${outDir}"`, - { verbosity: 0 }, - ); - setTimeout( - () => - cmd.exec(null, () => resolve({ action, status: 200 })), - 1, - ); - }), - - compileSrc: ({ action, props }) => - new Promise(resolve => { - msg('Compiling', chalk.cyan('src') + '...'); - const srcDir = path.join(cwd, 'src'); - const outDir = path.join( - cwd, - op.get(gulpConfig, 'dest.buildSrc', 'build/src'), - ); - const cmd = new run.Command( - `cross-env NODE_ENV=production babel "${srcDir}" --out-dir "${outDir}"`, - { verbosity: 0 }, - ); - setTimeout( - () => - cmd.exec(null, () => resolve({ action, status: 200 })), - 1, - ); - }), - - static: ({ action, props }) => - new Promise(resolve => { - // Clear output directory - fs.removeSync( - path.join( - cwd, - op.get( - gulpConfig, - 'dest.static', - 'build-electron/app/public', - ), - ), - ); - - const cmd = new run.Command(`gulp static --color`, { - verbosity: 0, - }); - setTimeout( - () => - cmd.exec(null, () => resolve({ action, status: 200 })), - 1, - ); - }), - - main: ({ action, props }) => - new Promise(resolve => { - const destFile = path.join( - cwd, - gulpConfig.dest.electron, - 'main.js', - ); - - if (!fs.existsSync(destFile)) { - msg('Generating', chalk.cyan('main.js') + '...'); - - const templateFile = path.join( - __dirname, - 'template', - 'main.js', - ); - - fs.ensureFileSync(destFile); - fs.copySync(templateFile, destFile); - } - - resolve({ action, status: 200 }); - }), - - resources: ({ action, props }) => - new Promise(resolve => { - const destDir = path.join( - cwd, - gulpConfig.dest.electron, - 'resources', - ); - - if (!fs.existsSync(destDir)) { - msg(`Copying ${chalk.cyan('resources')}...`); - const templateDir = path.join( - __dirname, - 'template', - 'resources', - ); - - fs.ensureDirSync(destDir); - fs.copySync(templateDir, destDir); - } - - resolve({ action, status: 200 }); - }), - - package: ({ action, props }) => - new Promise(resolve => { - const destFile = path.join( - cwd, - gulpConfig.dest.electron, - 'package.json', - ); - - if (!fs.existsSync(destFile)) { - msg(`Generating ${chalk.cyan('package.json')}...`); - - const templateFile = path.join( - __dirname, - 'template', - 'package.json', - ); - - fs.ensureFileSync(destFile); - fs.copySync(templateFile, destFile); - } - - resolve({ action, status: 200 }); - }), - - icon: ({ action, props }) => - new Promise(resolve => { - msg(`Generating ${chalk.cyan('icons')}...`); - - const shFile = path.join( - cwd, - gulpConfig.dest.electron, - 'resources', - 'icon_gen.sh', - ); - - const icon = path.join( - cwd, - gulpConfig.dest.electron, - 'resources', - 'icon.png', - ); - - const output = path.join( - cwd, - gulpConfig.dest.electron, - 'resources', - ); - - const cmd = new run.Command( - `sh "${shFile}" "${icon}" "${output}"`, - { verbosity: 0 }, - ); - cmd.exec(null, () => resolve({ action, status: 200 })); - }), - - installElectron: ({ action, props }) => - new Promise(resolve => { - msg(`Installing ${chalk.cyan('Electron')}...`); - let cmd = new run.Command(`npm install --save-dev electron`, { - verbosity: 0, - }); - - setTimeout( - () => - cmd.exec(null, () => resolve({ action, status: 200 })), - 1, - ); - }), - - install: ({ action, props }) => - new Promise(resolve => { - msg(`Installing ${chalk.cyan('dependencies')}...`); - let cmd = new run.Command( - `cd ${gulpConfig.dest.electron} && npm install`, - { verbosity: 0 }, - ); - - setTimeout( - () => - cmd.exec(null, () => resolve({ action, status: 200 })), - 1, - ); - }), - - complete: ({ action }) => - new Promise(resolve => { - setTimeout(() => { - msg('Build', chalk.cyan('Complete') + '!'); - console.log('\n'); - resolve({ action, status: 200 }); - }, 3000); - }), - }; -}; diff --git a/.core/.cli/commands/electron/builder/generator.js b/.core/.cli/commands/electron/builder/generator.js deleted file mode 100644 index 5a3cb3d8..00000000 --- a/.core/.cli/commands/electron/builder/generator.js +++ /dev/null @@ -1,12 +0,0 @@ -const ActionSequence = require('action-sequence'); - -module.exports = ({ action, props }) => { - const actions = require('./actions')(); - - return ActionSequence({ - actions, - options: { props }, - }) - .then(success => success) - .catch(error => error); -}; diff --git a/.core/.cli/commands/electron/builder/index.js b/.core/.cli/commands/electron/builder/index.js deleted file mode 100644 index 39d7027b..00000000 --- a/.core/.cli/commands/electron/builder/index.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * ----------------------------------------------------------------------------- - * Imports - * ----------------------------------------------------------------------------- - */ - -const generator = require('./generator'); -const path = require('path'); -const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); - -/** - * NAME String - * @description Constant defined as the command name. Value passed to the commander.command() function. - * @example $ arcli electron-build - * @see https://www.npmjs.com/package/commander#command-specific-options - * @since 2.0.0 - */ -const NAME = 'electron-build'; - -/** - * DESC String - * @description Constant defined as the command description. Value passed to - * the commander.desc() function. This string is also used in the --help flag output. - * @see https://www.npmjs.com/package/commander#automated---help - * @since 2.0.0 - */ -const DESC = 'Command for building Reactium into an Electron app.'; - -/** - * CANCELED String - * @description Message sent when the command is canceled - * @since 2.0.0 - */ -const CANCELED = 'electron-build canceled!'; - -/** - * HELP Function - * @description Function called in the commander.on('--help', callback) callback. - * @see https://www.npmjs.com/package/commander#automated---help - * @since 2.0.0 - */ -const HELP = () => - console.log(` -Example: - $ arcli electron-build -`); - -/** - * ACTION Function - * @description Function used as the commander.action() callback. - * @see https://www.npmjs.com/package/commander - * @param opt Object The commander options passed into the function. - * @param props Object The CLI props passed from the calling class `orcli.js`. - * @since 2.0.0 - */ -const ACTION = ({ opt, props }) => - generator({ props }) - .then(() => console.log('')) - .catch(err => console.log(err)); - -/** - * COMMAND Function - * @description Function that executes program.command() - */ -const COMMAND = ({ program, props }) => - program - .command(NAME) - .description(DESC) - .action(opt => ACTION({ opt, props })) - .on('--help', HELP); - -/** - * Module Constructor - * @description Internal constructor of the module that is being exported. - * @param program Class Commander.program reference. - * @param props Object The CLI props passed from the calling class `arcli.js`. - * @since 2.0.0 - */ -module.exports = { - COMMAND, - NAME, -}; diff --git a/.core/.cli/commands/electron/builder/template/app.config.hbs b/.core/.cli/commands/electron/builder/template/app.config.hbs deleted file mode 100644 index 76052ce5..00000000 --- a/.core/.cli/commands/electron/builder/template/app.config.hbs +++ /dev/null @@ -1,6 +0,0 @@ -// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -// FILE GENERATED BY: $ arcli electron-build -// DONOT DIRECTLY EDIT -// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -module.exports = {{{config}}}; diff --git a/.core/.cli/commands/electron/builder/template/main.js b/.core/.cli/commands/electron/builder/template/main.js deleted file mode 100644 index 053279f7..00000000 --- a/.core/.cli/commands/electron/builder/template/main.js +++ /dev/null @@ -1,76 +0,0 @@ -// Get the process env. -const env = process.env; - -const path = require('path'); -const { app, BrowserWindow } = require('electron'); -const config = require(path.join(__dirname, 'app.config')); - -let mainWindow; - -const createWindow = async () => { - // Create the browser window. - mainWindow = new BrowserWindow(config.electron.mainWindow); - - // Show the window when ready and focus it - mainWindow.once('ready-to-show', () => { - setTimeout(() => { - mainWindow.show(); - mainWindow.focus(); - if (config.electron.devtools === true) { - mainWindow.webContents.openDevTools(); - } - }, 1000); - }); - - // Emitted when the window is closed. - mainWindow.on('closed', function() { - mainWindow = null; - }); - - // Load the localhost of the app. - if (env.NODE_ENV === 'development') { - const port = config.port.browsersync || 3000; - mainWindow.loadURL(`http://localhost:${port}`); - } else { - const fs = require('fs'); - const http = require('http'); - const getPort = require('get-port'); - const server = http.createServer((req, res) => { - if (req.url === '/') { - const rs = fs.createReadStream( - path.join(__dirname, 'app', 'public', 'index.html'), - ); - rs.pipe(res); - } else if (req.url.match(/^\/assets/)) { - const asset = req.url.replace(/^\/assets/, ''); - const rs = fs.createReadStream( - path.join(__dirname, 'app', 'public', 'assets', asset), - ); - rs.pipe(res); - } else { - res.writeHead(404); - res.end(); - } - }); - - const port = await getPort(); - server.listen(port, () => - mainWindow.loadURL(`http://localhost:${port}`), - ); - } -}; - -app.on('ready', createWindow); - -// Quit when all windows are closed. -app.on('window-all-closed', function() { - if (process.platform !== 'darwin') { - app.quit(); - } -}); - -app.on('activate', function() { - if (mainWindow === null) { - createWindow(); - } -}); diff --git a/.core/.cli/commands/electron/builder/template/package.json b/.core/.cli/commands/electron/builder/template/package.json deleted file mode 100644 index e677ea2c..00000000 --- a/.core/.cli/commands/electron/builder/template/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "reactium-electron", - "version": "0.0.1", - "description": "Electron app build with Reactium.", - "productName": "Reactium App", - "author": "Reactium LLC", - "main": "main.js", - "scripts": { - "start": "electron main.js", - "pack": "build --dir", - "dist": "build" - }, - "build": { - "appId": "com.reactium.demo", - "directories": { - "buildResources": "resources", - "output": "release" - }, - "dmg": { - "contents": [ - { - "x": 110, - "y": 250 - }, - { - "x": 320, - "y": 250, - "type": "link", - "path": "/Applications" - } - ] - }, - "linux": { - "target": [ - "AppImage", - "deb" - ] - }, - "win": { - "target": "squirrel", - "icon": "build/icon.ico" - } - }, - "repository": "https://github.com/Atomic-Reactor/Reactium.git", - "keywords": [ - "Electron", - "React", - "Reactium" - ], - "license": "CC0-1.0", - "devDependencies": { - "cross-env": "^5.2.0", - "electron": "^15.2.0", - "electron-builder": "^20.44.4" - }, - "dependencies": { - "get-port": "^5.0.0", - "globby": "^9.2.0" - } -} diff --git a/.core/.cli/commands/electron/builder/template/package.json.hbs b/.core/.cli/commands/electron/builder/template/package.json.hbs deleted file mode 100644 index f8f1ebfc..00000000 --- a/.core/.cli/commands/electron/builder/template/package.json.hbs +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "{{appName}}", - "version": "{{version}}", - "description": "{{description}}", - "productName": "{{productName}}", - "author": "{{author}}", - "main": "main.js", - "scripts": { - "start": "cross-env NODE_ENV=production electron main.js", - "pack": "build --dir", - "dist": "build" - }, - "build": { - "appId": "{{appId}}", - "directories": { - "buildResources": "resources", - "output": "release" - }, - "dmg": { - "contents": [ - { - "x": 110, - "y": 250 - }, - { - "x": 320, - "y": 250, - "type": "link", - "path": "/Applications" - } - ] - }, - "linux": { - "target": [ - "AppImage", - "deb" - ] - }, - "win": { - "target": "squirrel", - "icon": "build/icon.ico" - } - }, - "repository": "https://github.com", - "keywords": [ - "Electron", - "app" - ], - "license": "CC0-1.0", - "devDependencies": { - "cross-env": "^5.2.0", - "electron": "^15.2.0", - "electron-builder": "^20.44.4" - }, - "dependencies": { - "get-port": "^5.0.0", - "globby": "^9.2.0" - } -} diff --git a/.core/.cli/commands/electron/builder/template/resources/icon.ico b/.core/.cli/commands/electron/builder/template/resources/icon.ico deleted file mode 100644 index 1aea6b66..00000000 Binary files a/.core/.cli/commands/electron/builder/template/resources/icon.ico and /dev/null differ diff --git a/.core/.cli/commands/electron/builder/template/resources/icon.png b/.core/.cli/commands/electron/builder/template/resources/icon.png deleted file mode 100644 index 739f9fdc..00000000 Binary files a/.core/.cli/commands/electron/builder/template/resources/icon.png and /dev/null differ diff --git a/.core/.cli/commands/electron/builder/template/resources/icon_gen.sh b/.core/.cli/commands/electron/builder/template/resources/icon_gen.sh deleted file mode 100644 index 6602de64..00000000 --- a/.core/.cli/commands/electron/builder/template/resources/icon_gen.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/bin/bash -# Creates an icns file from a source image - -src_image="$1" -if [ -z "$1" ]; then - echo "No source image was passed to this script" - exit 1 -fi - -output_path="$2" -if [ -z "$1" ]; then - echo "No output path specified" - exit 1 -fi - -icns_name="icon" - -if [ "${src_image:(-3)}" != "png" ]; then - echo "Source image is not a PNG, making a converted copy..." - /usr/bin/sips -s format png "$src_image" --out "${src_image}.png" - if [ $? -ne 0 ]; then - echo "The source image could not be converted to PNG format." - exit 1 - fi - src_image="${src_image}.png" -fi - -iconset_path="${output_path}/${icns_name}.iconset" -if [ -e "$iconset_path" ]; then - /bin/rm -r "$iconset_path" - if [ $? -ne 0 ]; then - echo "There is a pre-existing file/dir $iconset_path the could not be deleted" - exit 1 - fi -fi - -/bin/mkdir "$iconset_path" - -icon_file_list=( - "icon_16x16.png" - "icon_16x16@2x.png" - "icon_32x32.png" - "icon_32x32@2x.png" - "icon_128x128.png" - "icon_128x128@2x.png" - "icon_256x256.png" - "icon_256x256@2x.png" - "icon_512x512.png" - "icon_512x512@2x.png" - ) - -icon_size=( - '16' - '32' - '32' - '64' - '128' - '256' - '256' - '512' - '512' - '1024' - ) - -counter=0 -for a in ${icon_file_list[@]}; do - icon="${iconset_path}/${a}" - /bin/cp "$src_image" "$icon" - icon_size=${icon_size[$counter]} - /usr/bin/sips -z $icon_size $icon_size "$icon" - counter=$(($counter + 1)) -done - -echo "Creating .icns file from $iconset_path" -/usr/bin/iconutil -c icns "$iconset_path" -if [ $? -ne 0 ]; then - echo "There was an error creating the .icns file" - exit 1 -fi - -echo "Done" -exit 0 diff --git a/.core/.cli/commands/electron/run/actions.js b/.core/.cli/commands/electron/run/actions.js deleted file mode 100644 index 72f965fb..00000000 --- a/.core/.cli/commands/electron/run/actions.js +++ /dev/null @@ -1,126 +0,0 @@ -const path = require('path'); -const chalk = require('chalk'); -const fs = require('fs-extra'); -const _ = require('underscore'); -const run = require('@atomic-reactor/gulp-run'); -const op = require('object-path'); -const moment = require('moment'); -const { spawn } = require('child_process'); - -const timestamp = () => `[${chalk.magenta(moment().format('HH:mm:ss'))}]`; -const msg = (...msg) => console.log(timestamp(), ...msg); - -let cwd; -let gulpConfig; -let reactiumConfig; - -module.exports = () => { - let appUI; - let appE; - let tick = 0; - - return { - setup: ({ action, params, props }) => { - cwd = op.get(props, 'cwd'); - reactiumConfig = require(path.join( - cwd, - '.core', - 'reactium-config.js', - )); - - gulpConfig = reactiumConfig.build; - - const buildDir = path.join( - cwd, - op.get(gulpConfig, 'dest.electron', 'build-electron'), - ); - - if (!fs.existsSync(buildDir)) { - msg( - 'Run the', - `${chalk.cyan('$ arcli electron-build')}`, - 'command before continuing', - ); - console.log('\n'); - console.log(`${chalk.magenta('Action cancelled')}!`); - console.log('\n'); - - process.exit(0); - } else { - msg('Electron', chalk.cyan('initializing') + '...'); - return Promise.resolve({ action, status: 200 }); - } - }, - reactium: ({ action, params, props }) => - new Promise((resolve, reject) => { - msg('Reactium', chalk.cyan('building') + '...'); - - const { ui } = params; - const p = path.join(ui, 'gulpfile.js'); - let launching = false; - - appUI = spawn('gulp', ['local', '--gulpfile', p, '--color'], { - env: { ...process.env, NODE_ENV: 'development' }, - }); - - appUI.stderr.pipe(process.stderr); - appUI.stdout.pipe(process.stdout); - appUI.stdout.on('data', data => { - if (!appE) { - if ( - data.toString().indexOf('Compiled successfully') > - -1 - ) { - tick += 1; - } - if (data.toString().indexOf('UI External') > -1) { - tick += 1; - } - - if (tick < 2) { - return; - } - - if (launching === true) { - return; - } - - launching = true; - - setTimeout( - () => msg('Launching', chalk.cyan('app') + '...'), - 500, - ); - - setTimeout(() => { - msg('Launched', chalk.cyan('app') + '!'); - - const { electron } = params; - appE = spawn('electron', [electron], { - env: { - ...process.env, - NODE_ENV: 'development', - }, - }); - appE.stdout.pipe(process.stdout); - appE.stderr.pipe(process.stderr); - - resolve({ action, status: 200 }); - }, 5000); - } - }); - - process.on('SIGINT', () => { - try { - appUI.kill(); - } catch (err) {} - - try { - appE.kill(); - } catch (err) {} - - process.exit(0); - }); - }), - }; -}; diff --git a/.core/.cli/commands/electron/run/generator.js b/.core/.cli/commands/electron/run/generator.js deleted file mode 100644 index 58f5acaf..00000000 --- a/.core/.cli/commands/electron/run/generator.js +++ /dev/null @@ -1,16 +0,0 @@ -const ActionSequence = require('action-sequence'); - -module.exports = ({ action, params, props }) => { - const actions = require('./actions')(); - - return ActionSequence({ - actions, - options: { params, props }, - }) - .then(success => { - return success; - }) - .catch(error => { - return error; - }); -}; diff --git a/.core/.cli/commands/electron/run/index.js b/.core/.cli/commands/electron/run/index.js deleted file mode 100644 index f1188a4c..00000000 --- a/.core/.cli/commands/electron/run/index.js +++ /dev/null @@ -1,140 +0,0 @@ -/** - * ----------------------------------------------------------------------------- - * Imports - * ----------------------------------------------------------------------------- - */ - -const chalk = require('chalk'); -const generator = require('./generator'); -const prettier = require('prettier'); -const path = require('path'); -const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); - -const formatDestination = (val, props) => { - const { cwd } = props; - - val = path.normalize(val); - val = String(val).replace(/^~\/|^\/cwd\/|^cwd\/|^cwd$/i, `${cwd}/`); - return path.normalize(val); -}; - -const NAME = 'electron-run'; - -const DESC = 'Run the UI and Electron app locally'; - -const CANCELED = 'Run canceled!'; - -const HELP = () => - console.log(` -Example: - $ arcli electron-run - $ arcli electorn-run -e cwd/my/path -u cwd/other/path - -** Note: by default the ${chalk.cyan( - path.join(__dirname, '..', '..', '..', 'electron.js'), - )} and ${chalk.cyan( - path.join(__dirname, '..', '..', '..', 'gulpfile.js'), - )} are used. -`); - -const FLAGS = ['electron', 'ui']; - -const FLAGS_TO_PARAMS = ({ opt = {} }) => - FLAGS.reduce((obj, key) => { - let val = opt[key]; - val = typeof val === 'function' ? undefined : val; - - if (val) { - obj[key] = val; - } - - return obj; - }, {}); - -const CONFORM = ({ input, props }) => { - const { cwd } = props; - - let output = {}; - - Object.entries(input).forEach(([key, val]) => { - switch (String(key).toLowerCase()) { - case 'electron': - case 'ui': - output[key] = formatDestination(val, props); - break; - - default: - output[key] = val; - } - }); - - return output; -}; - -const SCHEMA = ({ props }) => { - return { - properties: { - electron: { - description: chalk.white('Electron Path:'), - default: 'cwd/build-electron/main.js', - }, - ui: { - description: chalk.white('UI Path:'), - default: 'cwd', - }, - }, - }; -}; - -const ACTION = ({ opt, props }) => { - const { cwd, prompt } = props; - const schema = SCHEMA({ props }); - const ovr = FLAGS_TO_PARAMS({ opt }); - - prompt.override = ovr; - prompt.start(); - - let params; - - return new Promise((resolve, reject) => { - prompt.get(schema, (err, input = {}) => { - if (err) { - prompt.stop(); - reject(`${NAME} ${err.message}`); - return; - } - - input = { ...ovr, ...input }; - - params = CONFORM({ input, props }); - - resolve(params); - }); - }) - .then(async () => { - console.log(''); - await generator({ params, props }); - console.log(''); - }) - .then(() => prompt.stop()) - .catch(err => { - prompt.stop(); - console.log(err); - }); -}; - -const COMMAND = ({ program, props }) => - program - .command(NAME) - .description(DESC) - .action(opt => ACTION({ opt, props })) - .option('-u, --ui [ui]', 'UI Path.') - .option('-e, --electron [electron]', 'Electron Path.') - .on('--help', HELP); - -module.exports = { - COMMAND, - NAME, -}; diff --git a/.core/.cli/commands/i18n/index.js b/.core/.cli/commands/i18n/index.js index 9c5d5704..22ef9b83 100644 --- a/.core/.cli/commands/i18n/index.js +++ b/.core/.cli/commands/i18n/index.js @@ -9,8 +9,7 @@ const generator = require('./generator'); const prettier = require('prettier'); const path = require('path'); const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); +const { error, message } = arcli; /** * NAME String diff --git a/.core/.cli/commands/reactium/empty/actions.js b/.core/.cli/commands/reactium/empty/actions.js deleted file mode 100644 index 8b3c305f..00000000 --- a/.core/.cli/commands/reactium/empty/actions.js +++ /dev/null @@ -1,131 +0,0 @@ -const path = require('path'); -const chalk = require('chalk'); -const fs = require('fs-extra'); -const op = require('object-path'); -const handlebars = require('handlebars').compile; - -module.exports = spinner => { - const message = text => { - if (spinner) { - spinner.text = text; - } - }; - - return { - style: ({ action, params, props }) => { - const { style } = params; - - if (style) { - const { cwd } = props; - - const mainStyleSheet = path.normalize( - `${cwd}/src/assets/style/style.scss`, - ); - const toolkitStyleSheet = path.normalize( - `${cwd}/src/assets/style/toolkit.scss`, - ); - - const scssDir = path.normalize(`${cwd}/src/assets/style/_scss`); - - if (fs.existsSync(mainStyleSheet)) { - fs.writeFileSync(mainStyleSheet, '\n// Styles\n\n'); - } - - if (fs.existsSync(toolkitStyleSheet)) { - fs.writeFileSync( - toolkitStyleSheet, - '\n// Toolkit Specific Styles\n\n', - ); - } - - fs.emptyDirSync(scssDir); - } - - return Promise.resolve({ action, status: 200 }); - }, - manifest: ({ action, params, props }) => { - const { toolkit } = params; - - if (toolkit) { - message(`Updating ${chalk.cyan('toolkit manifest')}...`); - - const { cwd } = props; - - const manifestFile = path.normalize( - `${cwd}/src/app/toolkit/index.js`, - ); - - let cont = fs.readFileSync(manifestFile); - cont = String(cont).replace( - /menu: {((.|\n|\r)*)},/, - 'menu: {},', - ); - - fs.writeFileSync(manifestFile, cont); - } - - return Promise.resolve({ action, status: 200 }); - }, - empty: ({ action, params, props }) => { - const { cwd } = props; - const { demo, font, images, toolkit } = params; - - if (font) { - message(`Removing ${chalk.cyan('font assets')}...`); - - const fontExcludes = []; - const fontPath = path.normalize(`${cwd}/src/assets/fonts`); - - fs.readdirSync(fontPath) - .filter(file => Boolean(!fontExcludes.includes(file))) - .forEach(file => - fs.removeSync(path.normalize(`${fontPath}/${file}`)), - ); - } - - if (images) { - message(`Removing ${chalk.cyan('image assets')}...`); - - const imageExcludes = ['atomic-reactor-logo.svg']; - const imagePath = path.normalize(`${cwd}/src/assets/images`); - - fs.readdirSync(imagePath) - .filter(file => Boolean(!imageExcludes.includes(file))) - .forEach(file => - fs.removeSync(path.normalize(`${imagePath}/${file}`)), - ); - } - - if (demo) { - message(`Removing ${chalk.cyan('demo components')}...`); - - const demoPaths = [ - path.normalize(`${cwd}/src/app/components/Demo`), - ].forEach(p => fs.removeSync(p)); - } - - if (toolkit) { - message(`Removing ${chalk.cyan('toolkit elements')}...`); - - const toolkitPath = path.normalize(`${cwd}/src/app/toolkit`); - const toolkitExclude = ['index.js', 'overview']; - - fs.readdirSync(toolkitPath) - .filter(file => Boolean(!toolkitExclude.includes(file))) - .concat([ - path.normalize( - `${cwd}/src/app/components/common-ui/form`, - ), - path.normalize( - `${cwd}/src/app/components/common-ui/Icon`, - ), - ]) - .forEach(file => - fs.removeSync(path.normalize(`${toolkitPath}/${file}`)), - ); - } - - return Promise.resolve({ action, status: 200 }); - }, - }; -}; diff --git a/.core/.cli/commands/reactium/empty/generator.js b/.core/.cli/commands/reactium/empty/generator.js deleted file mode 100644 index 54634231..00000000 --- a/.core/.cli/commands/reactium/empty/generator.js +++ /dev/null @@ -1,26 +0,0 @@ -const ora = require('ora'); -const ActionSequence = require('action-sequence'); - -const spinner = ora({ - spinner: 'dots', - color: 'cyan', -}); - -const actions = require('./actions')(spinner); - -module.exports = ({ params, props }) => { - spinner.start(); - - return ActionSequence({ - actions, - options: { params, props }, - }) - .then(success => { - spinner.succeed('complete!'); - return success; - }) - .catch(error => { - spinner.fail('error!'); - return error; - }); -}; diff --git a/.core/.cli/commands/reactium/empty/index.js b/.core/.cli/commands/reactium/empty/index.js deleted file mode 100644 index 3f91fd52..00000000 --- a/.core/.cli/commands/reactium/empty/index.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * ----------------------------------------------------------------------------- - * Imports - * ----------------------------------------------------------------------------- - */ - -const path = require('path'); -const generator = require('./generator'); -const mod = path.dirname(require.main.filename); - -const NAME = 'empty'; - -const DESC = 'Reactium: Remove Reactium demo pages, components, and toolkit.'; - -const CONFORM = ({ input, props }) => { - const { cwd } = props; - - let output = {}; - - Object.entries(input).forEach(([key, val]) => { - switch (key) { - default: - output[key] = val; - break; - } - }); - - if (!Object.entries(output).length) { - output = { - demo: true, - font: true, - images: true, - style: true, - toolkit: true, - }; - } - - return output; -}; - -const HELP = () => { - console.log(''); - console.log('Usage:'); - console.log(''); - console.log(' Keep the default toolkit:'); - console.log(' $ arcli reactium empty -FITD'); - console.log(''); - console.log(' Keep the demo site:'); - console.log(' $ arcli reactium empty -FIST'); - console.log(''); -}; - -/** - * ACTION Function - * @description Function used as the commander.action() callback. - * @see https://www.npmjs.com/package/commander - * @param opt Object The commander options passed into the function. - * @param props Object The CLI props passed from the calling class `orcli.js`. - * @since 2.0.0 - */ -const ACTION = ({ opt, props }) => { - console.log(''); - - const { cwd, prompt } = props; - - const ovr = ['demo', 'font', 'images', 'style', 'toolkit'].reduce( - (obj, key) => { - let val = opt[key]; - val = typeof val === 'function' ? null : val; - if (val) { - obj[key] = val; - } - return obj; - }, - {}, - ); - - const params = CONFORM({ input: ovr, props }); - - generator({ params, props }); -}; - -/** - * COMMAND Function - * @description Function that executes program.command() - */ -const COMMAND = ({ program, props }) => - program - .command(NAME) - .description(DESC) - .action(opt => ACTION({ opt, props })) - .option('-F, --font', 'Empty ~/src/assets/fonts directory.') - .option('-I, --images', 'Empty ~/src/assets/images directory.') - .option('-S, --style', 'Empty ~/src/assets/style/style.scss file.') - .option('-T, --toolkit', 'Empty toolkit elements.') - .option('-D, --demo', 'Empty the demo.') - .on('--help', HELP); - -/** - * Module Constructor - * @description Internal constructor of the module that is being exported. - * @param program Class Commander.program reference. - * @param props Object The CLI props passed from the calling class `arcli.js`. - * @since 2.0.0 - */ -module.exports = { - ACTION, - CONFORM, - COMMAND, - NAME, -}; diff --git a/.core/.cli/commands/reactium/icons/index.js b/.core/.cli/commands/reactium/icons/index.js index 1df9eb45..9a81d32b 100644 --- a/.core/.cli/commands/reactium/icons/index.js +++ b/.core/.cli/commands/reactium/icons/index.js @@ -11,8 +11,7 @@ const op = require('object-path'); const prettier = require('prettier'); const camelcase = require('camelcase'); const generator = require('./generator'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); +const { error, message } = arcli; const formatDestination = (val, props) => { const { cwd } = props; diff --git a/.core/.cli/commands/reactium/library/index.js b/.core/.cli/commands/reactium/library/index.js index 869fa61a..de2ad90a 100644 --- a/.core/.cli/commands/reactium/library/index.js +++ b/.core/.cli/commands/reactium/library/index.js @@ -9,8 +9,7 @@ const generator = require('./generator'); const prettier = require('prettier'); const path = require('path'); const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); +const { error, message } = arcli; const _ = require('underscore'); const formatsource = (val, props) => { diff --git a/.core/.cli/commands/reactium/plugin/component/actions.js b/.core/.cli/commands/reactium/plugin/component/actions.js deleted file mode 100644 index 8a05eeba..00000000 --- a/.core/.cli/commands/reactium/plugin/component/actions.js +++ /dev/null @@ -1,44 +0,0 @@ -const path = require('path'); -const chalk = require('chalk'); -const fs = require('fs-extra'); -const _ = require('underscore'); -const op = require('object-path'); -const prettier = require('prettier'); -const handlebars = require('handlebars').compile; - -module.exports = spinner => { - const message = text => { - if (spinner) { - spinner.text = text; - } - }; - - return { - plugin: ({ action, params, props }) => { - message(`Creating ${chalk.cyan('zone component')}...`); - - const { destination } = params; - const pluginFile = path.normalize(`${destination}/zone.js`); - - // Template content - const template = path.normalize(`${__dirname}/template/zone.hbs`); - const content = handlebars(fs.readFileSync(template, 'utf-8'))( - params, - ); - - fs.ensureFileSync(pluginFile); - fs.writeFileSync( - pluginFile, - prettier.format(content, { - parser: 'babel', - trailingComma: 'all', - singleQuote: true, - tabWidth: 4, - useTabs: false, - }), - ); - - return Promise.resolve({ action, status: 200 }); - }, - }; -}; diff --git a/.core/.cli/commands/reactium/plugin/component/generator.js b/.core/.cli/commands/reactium/plugin/component/generator.js deleted file mode 100644 index 1abcc105..00000000 --- a/.core/.cli/commands/reactium/plugin/component/generator.js +++ /dev/null @@ -1,26 +0,0 @@ -const ora = require('ora'); -const ActionSequence = require('action-sequence'); - -module.exports = ({ action, params, props }) => { - const spinner = ora({ - spinner: 'dots', - color: 'cyan', - }); - - spinner.start(); - - const actions = require('./actions')(spinner); - - return ActionSequence({ - actions, - options: { params, props }, - }) - .then(success => { - spinner.succeed('complete!'); - return success; - }) - .catch(error => { - spinner.fail('error!'); - return error; - }); -}; diff --git a/.core/.cli/commands/reactium/plugin/component/index.js b/.core/.cli/commands/reactium/plugin/component/index.js deleted file mode 100644 index af2d3164..00000000 --- a/.core/.cli/commands/reactium/plugin/component/index.js +++ /dev/null @@ -1,283 +0,0 @@ -/** - * ----------------------------------------------------------------------------- - * Imports - * ----------------------------------------------------------------------------- - */ - -const chalk = require('chalk'); -const generator = require('./generator'); -const prettier = require('prettier'); -const path = require('path'); -const fs = require('fs-extra'); -const op = require('object-path'); -const _ = require('underscore'); -const mod = path.dirname(require.main.filename); -const slugify = require('slugify'); -const { error, message } = require(`${mod}/lib/messenger`); -const pad = require(`${mod}/lib/pad`); -const M = require('../zones/manifest')(); - -const formatDestination = ({ val, props }) => { - const { cwd } = props; - - val = path.normalize(val); - val = String(val).replace(/^~\/|^\/cwd\/|^cwd\/|^cwd$/i, `${cwd}/`); - val = String(val).replace( - /^\/core\/|^core\/|^core/i, - `${cwd}/.core/components/`, - ); - val = String(val).replace( - /^\/components\/|^components\/|^components$/i, - `${cwd}/src/app/components/`, - ); - val = String(val).replace( - /^\/common-ui\/|^common-ui\/|^common-ui$/i, - `${cwd}/src/app/components/common-ui/`, - ); - - return path.normalize(val); -}; - -const NAME = 'plugin '; - -const DESC = - 'Add a plugin.js file for defining one or more components to be used in a plugin zone.'; - -const CANCELED = 'Plugin canceled!'; - -const CONFIRM = ({ props, params, msg }) => { - const { prompt } = props; - - msg = msg || chalk.white('Proceed?'); - - return new Promise((resolve, reject) => { - prompt.get( - { - properties: { - confirmed: { - description: `${msg} ${chalk.cyan('(Y/N):')}`, - type: 'string', - required: true, - pattern: /^y|n|Y|N/, - message: ' ', - before: val => { - return String(val).toLowerCase() === 'y'; - }, - }, - }, - }, - (error, input = {}) => { - const confirmed = op.get(input, 'confirmed', false); - if (error || confirmed === false) { - reject(error); - } else { - params['confirmed'] = true; - resolve(params); - } - }, - ); - }); -}; - -const CONFORM = ({ input, props }) => { - const { cwd } = props; - - const output = Object.keys(input).reduce((obj, key) => { - let val = input[key]; - - switch (key) { - case 'id': - obj[key] = slugify(val).toUpperCase(); - break; - - case 'destination': - obj[key] = formatDestination({ val, props }); - break; - - case 'zone': - obj[key] = val.split(' ').map(index => GET_ZONE(index)); - break; - - case 'order': - obj[key] = Number(val); - break; - - default: - obj[key] = val; - break; - } - - return obj; - }, {}); - - return output; -}; - -const HELP = () => - console.log(` -Example: - $ arcli plugin component --destination cwd/components/MyComponent --id "my-plugin" -`); - -const FLAGS = ['destination', 'zone', 'id', 'component', 'order']; - -const FLAGS_TO_PARAMS = ({ opt = {} }) => - FLAGS.reduce((obj, key) => { - let val = opt[key]; - val = typeof val === 'function' ? undefined : val; - - if (val) { - obj[key] = val; - } - - return obj; - }, {}); - -const PREFLIGHT = ({ params }) => { - const msg = 'A new plugin will be created with the following options:'; - const preflight = _.pick(params, ...Object.keys(params).sort()); - - message(msg); - - console.log( - prettier.format(JSON.stringify(preflight), { - parser: 'json-stringify', - }), - ); -}; - -const ZONE_LIST = () => - Object.keys(M).map((zone, index) => { - index += 1; - const len = String(Object.keys(M).length).length; - const i = chalk.cyan(pad(index, len) + '.'); - return ` ${i} ${zone}`; - }); - -const GET_ZONE = index => { - return !isNaN(Number(index)) ? Object.keys(M)[index - 1] : index; -}; - -const SCHEMA = ({ props }) => { - const { cwd, prompt } = props; - - return { - properties: { - destination: { - description: chalk.white('Destination:'), - required: true, - message: ' Plugin destination is required', - }, - id: { - required: true, - message: ' Plugin ID is required', - description: chalk.white('Plugin ID:'), - }, - component: { - required: true, - message: ' Component is required', - description: chalk.white('Component:'), - }, - zone: { - message: ' Zone is required', - description: chalk.white('Zones:'), - }, - zone: { - description: `${chalk.white('Zone:')}\n\t ${ZONE_LIST().join( - '\n\t ', - )}\n ${chalk.white('Select:')}`, - type: 'string', - required: true, - message: ' Select zones', - before: val => - String(val) - .replace(/, /, ' ') - .replace(/\s+/g, ' ') - .trim(), - }, - order: { - pattern: /[0-9\-]/, - required: true, - message: ' Order must be valid integer', - description: chalk.white('Order:'), - }, - }, - }; -}; - -const ACTION = ({ opt, props }) => { - if (Object.keys(M).length < 1) { - return error( - `no plugin zones found.\n\nRun:\n${chalk.cyan( - ' $ arcli zones scan', - )}\n or:\n${chalk.cyan(' $ arcli zones add')}`, - ); - } - - let params; - const { cwd, prompt } = props; - const schema = SCHEMA({ props }); - const ovr = FLAGS_TO_PARAMS({ opt }); - - prompt.override = ovr; - prompt.start(); - - return new Promise((resolve, reject) => { - prompt.get(schema, (err, input = {}) => { - if (err) { - prompt.stop(); - reject(`${NAME} ${err.message}`); - return; - } - - input = { ...ovr, ...input }; - params = CONFORM({ input, props }); - - PREFLIGHT({ params, props }); - - resolve(params); - }); - }) - .then(() => { - return CONFIRM({ props, params }); - }) - .then(async () => { - console.log(''); - await generator({ action: 'create', params, props }); - console.log(''); - }) - .then(() => prompt.stop()) - .catch(err => { - prompt.stop(); - message(op.get(err, 'message', CANCELED)); - }); -}; - -const COMMAND = ({ program, props }) => - program - .command(NAME) - .description(DESC) - .action(opt => ACTION({ opt, props })) - .option('-d, --destination [destination]', 'Plugin parent directory.') - .option( - '-i, --id [id]', - 'Unique identifier for the plugin. Used when rendering the plugin to the dom.', - ) - .option('-c, --component [component]', 'The plugin component.') - .option( - '-z, --zone [zone]', - 'Plugin zones. For multiple zones supply a comma separated list.', - ) - .option( - '-o, --order [order]', - 'Order in which to load the plugin. Lower number plugins get loaded first.', - ) - .on('--help', HELP); - -module.exports = { - COMMAND, - ACTION, - CONFORM, - CONFIRM, - ID: NAME, -}; diff --git a/.core/.cli/commands/reactium/plugin/component/template/zone.hbs b/.core/.cli/commands/reactium/plugin/component/template/zone.hbs deleted file mode 100644 index 18873759..00000000 --- a/.core/.cli/commands/reactium/plugin/component/template/zone.hbs +++ /dev/null @@ -1,58 +0,0 @@ -import {{component}} from './index'; - -export default { - /** - * Required - used as rendering key. Make this unique. - * @type {String} - */ - id: '{{id}}', - - /** - * Component to render. May also be a string, and - * the component will be looked up in components directory. - * @type {Component|String} - */ - component: {{component}}, - - /** - * One or more zones this component should render. - * @type {String|Array} - */ - zone: [ - {{#if zone}} - {{#each zone}} - '{{this}}', - {{/each}} - {{/if}} - ], - - /** - * By default plugins in zone are rendering in ascending order. - * @type {Number} - */ - order: {{order}}, - - /** - * (Optional) additional search subpaths to use to find the component, - * if String provided for component property. - * @type {[type]} - * - * e.g. If component is a string 'TextInput', uncommenting the line below would - * look in components/common-ui/form/inputs and components/general to find - * the component 'TextInput' - */ - // paths: ['common-ui/form/inputs', 'general'] - - /** - * Additional params: (optional) - * - * Any free-form additional properties you provide below, will be provided as params - * to the component when rendered. - * - * e.g. Below will be provided to the MyComponent, - * These can also be used to help sort or filter plugins, or however you have your - * component use params. - * @type {Mixed} - */ - // pageType: 'home', -}; diff --git a/.core/.cli/commands/reactium/plugin/eject/index.js b/.core/.cli/commands/reactium/plugin/eject/index.js index ed8c42f2..c0e15441 100644 --- a/.core/.cli/commands/reactium/plugin/eject/index.js +++ b/.core/.cli/commands/reactium/plugin/eject/index.js @@ -8,8 +8,7 @@ const chalk = require('chalk'); const prettier = require('prettier'); const path = require('path'); const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); +const { error, message } = arcli; const GENERATOR = require('./generator'); const globby = require('globby').sync; const fs = require('fs-extra'); diff --git a/.core/.cli/commands/reactium/plugin/local/index.js b/.core/.cli/commands/reactium/plugin/local/index.js index 5bbebd13..6556a229 100644 --- a/.core/.cli/commands/reactium/plugin/local/index.js +++ b/.core/.cli/commands/reactium/plugin/local/index.js @@ -8,8 +8,7 @@ const chalk = require('chalk'); const prettier = require('prettier'); const path = require('path'); const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); +const { error, message } = arcli; const GENERATOR = require('./generator'); const globby = require('globby').sync; const fs = require('fs-extra'); diff --git a/.core/.cli/commands/reactium/plugin/module/index.js b/.core/.cli/commands/reactium/plugin/module/index.js index a2d0d136..4bf82b3f 100644 --- a/.core/.cli/commands/reactium/plugin/module/index.js +++ b/.core/.cli/commands/reactium/plugin/module/index.js @@ -9,8 +9,7 @@ const prettier = require('prettier'); const path = require('path'); const fs = require('fs-extra'); const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); +const { error, message } = arcli; const GENERATOR = require('./generator'); const slugify = require('slugify'); diff --git a/.core/.cli/commands/reactium/plugin/zones/actions.js b/.core/.cli/commands/reactium/plugin/zones/actions.js index 7a344e32..7003c943 100644 --- a/.core/.cli/commands/reactium/plugin/zones/actions.js +++ b/.core/.cli/commands/reactium/plugin/zones/actions.js @@ -6,8 +6,7 @@ const op = require('object-path'); const prettier = require('prettier'); const globby = require('globby'); -const mod = path.dirname(require.main.filename); -const pad = require(`${mod}/lib/pad`); +const pad = arlci.pad; module.exports = spinner => { const message = text => { diff --git a/.core/.cli/commands/reactium/plugin/zones/index.js b/.core/.cli/commands/reactium/plugin/zones/index.js index 9ff19d7d..27f37710 100644 --- a/.core/.cli/commands/reactium/plugin/zones/index.js +++ b/.core/.cli/commands/reactium/plugin/zones/index.js @@ -4,15 +4,12 @@ * ----------------------------------------------------------------------------- */ const path = require('path'); -const mod = path.dirname(require.main.filename); - const chalk = require('chalk'); const generator = require('./generator'); const prettier = require('prettier'); const _ = require('underscore'); const op = require('object-path'); -const { error, message } = require(`${mod}/lib/messenger`); -const pad = require(`${mod}/lib/pad`); +const { error, message, pad } = arcli; const M = require('./manifest')(); const NAME = 'plugin '; diff --git a/.core/.cli/commands/reactium/rename/index.js b/.core/.cli/commands/reactium/rename/index.js index 7f417549..983a3e75 100644 --- a/.core/.cli/commands/reactium/rename/index.js +++ b/.core/.cli/commands/reactium/rename/index.js @@ -9,9 +9,7 @@ const generator = require('./generator'); const prettier = require('prettier'); const path = require('path'); const globby = require('globby').sync; -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); -const pad = require(`${mod}/lib/pad`); +const { error, message, pad } = arcli; const formatName = require('../component').formatName; const formatDestination = require('../component').formatDestination; const testflight = require('./testflight'); diff --git a/.core/.cli/commands/reactium/server/index.js b/.core/.cli/commands/reactium/server/index.js index 98d54e7f..ac8c650b 100644 --- a/.core/.cli/commands/reactium/server/index.js +++ b/.core/.cli/commands/reactium/server/index.js @@ -10,8 +10,7 @@ const generator = require('./generator'); const prettier = require('prettier'); const path = require('path'); const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); +const { error, message } = arcli; /** * NAME String diff --git a/.core/.cli/commands/reactium/test/index.js b/.core/.cli/commands/reactium/test/index.js index 15494ebe..c21d4340 100644 --- a/.core/.cli/commands/reactium/test/index.js +++ b/.core/.cli/commands/reactium/test/index.js @@ -9,8 +9,7 @@ const generator = require('./generator'); const prettier = require('prettier'); const path = require('path'); const op = require('object-path'); -const mod = path.dirname(require.main.filename); -const { error, message } = require(`${mod}/lib/messenger`); +const { error, message } = arcli; const formatDestination = (val, props) => { const { cwd } = props; diff --git a/package-lock.json b/package-lock.json index 247ebadf..ab76bfd4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "5.0.0-alpha-2", "license": "MIT", "dependencies": { - "@atomic-reactor/reactium-sdk-core": "^1.2.20", + "@atomic-reactor/reactium-sdk-core": "^1.2.21", "@babel/cli": "^7.21.0", "@babel/node": "^7.20.7", "@loadable/component": "^5.15.3", @@ -58,7 +58,7 @@ "xss": "^1.0.14" }, "devDependencies": { - "@atomic-reactor/cli": "^2.2.78", + "@atomic-reactor/cli": "^3.0.5", "@atomic-reactor/gulp-run": "^1.8.0", "@atomic-reactor/gulp-watch": "^5.0.2", "@atomic-reactor/node-sass-reactium-importer": "^1.0.0", @@ -135,13 +135,13 @@ } }, "node_modules/@atomic-reactor/cli": { - "version": "2.2.79", - "resolved": "https://registry.npmjs.org/@atomic-reactor/cli/-/cli-2.2.79.tgz", - "integrity": "sha512-mcP5Cyzwfsa28vFhXZkeTyI5MD4dc0xRpr1DgovLXnB4vSKAp/qubLHfGKB38CDZFnvMhqxp0spZfZp7XVkUoQ==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@atomic-reactor/cli/-/cli-3.0.5.tgz", + "integrity": "sha512-wwZP6kcsWWhAqfFLV3/NqX75RliIVddynTcvurGyrHt/PCtXc1kdommd3ImwiJTZN2TTJ5W1Kaqw001H4HSSCQ==", "dev": true, "dependencies": { "@atomic-reactor/decompress": "^4.2.5", - "@atomic-reactor/reactium-sdk-core": "^1.2.16", + "@atomic-reactor/reactium-sdk-core": "^1.2.21", "action-sequence": "^1.1.2", "axios": "^1.1.3", "camelcase": "^6.2.0", @@ -154,17 +154,18 @@ "folder-zipper": "^1.0.0", "fs-extra": "^10.1.0", "fs-readdir-recursive": "^1.1.0", - "globby": "^11.0.3", + "globby": "^13.1.2", "handlebars": "^4.7.7", + "ignored": "^2.0.4", "inquirer": "^7.3.3", "inquirer-autocomplete-prompt": "^1.0.2", "inquirer-fuzzy-path": "^2.3.0", "memory-cache": "^0.2.0", + "micromatch": "^4.0.5", "moment": "^2.29.4", "object-path": "^0.11.8", "ora": "^5.1.0", "parse": "^3.4.4", - "pm2": "^5.1.2", "portscanner": "^2.2.0", "prettier": "1.18.1", "prompt": "^1.0.0", @@ -221,6 +222,34 @@ "node": ">= 6" } }, + "node_modules/@atomic-reactor/cli/node_modules/globby": { + "version": "13.1.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", + "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", + "dev": true, + "dependencies": { + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.11", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@atomic-reactor/cli/node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/@atomic-reactor/cli/node_modules/prettier": { "version": "1.18.1", "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.18.1.tgz", @@ -233,6 +262,18 @@ "node": ">=4" } }, + "node_modules/@atomic-reactor/cli/node_modules/slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@atomic-reactor/decompress": { "version": "4.2.5", "resolved": "https://registry.npmjs.org/@atomic-reactor/decompress/-/decompress-4.2.5.tgz", @@ -402,9 +443,9 @@ } }, "node_modules/@atomic-reactor/reactium-sdk-core": { - "version": "1.2.20", - "resolved": "https://registry.npmjs.org/@atomic-reactor/reactium-sdk-core/-/reactium-sdk-core-1.2.20.tgz", - "integrity": "sha512-tX5uXP2TXY8ScTAWNyuTP6cIyNCUErBmhAwWbtmhT6LmdNFB5dnSiPZ7zL74YJhZJC63DaNWrhL0PFBjTN0NSw==", + "version": "1.2.21", + "resolved": "https://registry.npmjs.org/@atomic-reactor/reactium-sdk-core/-/reactium-sdk-core-1.2.21.tgz", + "integrity": "sha512-STBIWFemiVHLtbHP9AmxPeyEAfVIbqw+RysouM1KTCrsuHzmC8YVjNIY7YcsRhYOIOWagx7FmLPnH+5Zpz2+fA==", "dependencies": { "action-sequence": "^1.1.2", "classnames": "^2.3.2", @@ -414,9 +455,6 @@ "shallow-equals": "^1.0.0", "underscore": "^1.13.6", "uuid": "^3.3.3" - }, - "peerDependencies": { - "react": "*" } }, "node_modules/@atomic-reactor/webpack-po-loader": { @@ -2865,224 +2903,6 @@ "node": ">= 8" } }, - "node_modules/@opencensus/core": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/@opencensus/core/-/core-0.0.9.tgz", - "integrity": "sha512-31Q4VWtbzXpVUd2m9JS6HEaPjlKvNMOiF7lWKNmXF84yUcgfAFL5re7/hjDmdyQbOp32oGc+RFV78jXIldVz6Q==", - "dev": true, - "dependencies": { - "continuation-local-storage": "^3.2.1", - "log-driver": "^1.2.7", - "semver": "^5.5.0", - "shimmer": "^1.2.0", - "uuid": "^3.2.1" - }, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/@opencensus/core/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/@opencensus/propagation-b3": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/@opencensus/propagation-b3/-/propagation-b3-0.0.8.tgz", - "integrity": "sha512-PffXX2AL8Sh0VHQ52jJC4u3T0H6wDK6N/4bg7xh4ngMYOIi13aR1kzVvX1sVDBgfGwDOkMbl4c54Xm3tlPx/+A==", - "dev": true, - "dependencies": { - "@opencensus/core": "^0.0.8", - "uuid": "^3.2.1" - }, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/@opencensus/propagation-b3/node_modules/@opencensus/core": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/@opencensus/core/-/core-0.0.8.tgz", - "integrity": "sha512-yUFT59SFhGMYQgX0PhoTR0LBff2BEhPrD9io1jWfF/VDbakRfs6Pq60rjv0Z7iaTav5gQlttJCX2+VPxFWCuoQ==", - "dev": true, - "dependencies": { - "continuation-local-storage": "^3.2.1", - "log-driver": "^1.2.7", - "semver": "^5.5.0", - "shimmer": "^1.2.0", - "uuid": "^3.2.1" - }, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/@opencensus/propagation-b3/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/@pm2/agent": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@pm2/agent/-/agent-2.0.1.tgz", - "integrity": "sha512-QKHMm6yexcvdDfcNE7PL9D6uEjoQPGRi+8dh+rc4Hwtbpsbh5IAvZbz3BVGjcd4HaX6pt2xGpOohG7/Y2L4QLw==", - "dev": true, - "dependencies": { - "async": "~3.2.0", - "chalk": "~3.0.0", - "dayjs": "~1.8.24", - "debug": "~4.3.1", - "eventemitter2": "~5.0.1", - "fast-json-patch": "^3.0.0-1", - "fclone": "~1.0.11", - "nssocket": "0.6.0", - "pm2-axon": "~4.0.1", - "pm2-axon-rpc": "~0.7.0", - "proxy-agent": "~5.0.0", - "semver": "~7.2.0", - "ws": "~7.4.0" - } - }, - "node_modules/@pm2/agent/node_modules/async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", - "dev": true - }, - "node_modules/@pm2/agent/node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@pm2/agent/node_modules/dayjs": { - "version": "1.8.36", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.8.36.tgz", - "integrity": "sha512-3VmRXEtw7RZKAf+4Tv1Ym9AGeo8r8+CjDi26x+7SYQil1UqtqdaokhzoEJohqlzt0m5kacJSDhJQkG/LWhpRBw==", - "dev": true - }, - "node_modules/@pm2/agent/node_modules/semver": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.2.3.tgz", - "integrity": "sha512-utbW9Z7ZxVvwiIWkdOMLOR9G/NFXh2aRucghkVrEMJWuC++r3lCkBC3LwqBinyHzGMAJxY5tn6VakZGHObq5ig==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@pm2/agent/node_modules/ws": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/@pm2/io": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@pm2/io/-/io-5.0.0.tgz", - "integrity": "sha512-3rToDVJaRoob5Lq8+7Q2TZFruoEkdORxwzFpZaqF4bmH6Bkd7kAbdPrI/z8X6k1Meq5rTtScM7MmDgppH6aLlw==", - "dev": true, - "dependencies": { - "@opencensus/core": "0.0.9", - "@opencensus/propagation-b3": "0.0.8", - "async": "~2.6.1", - "debug": "~4.3.1", - "eventemitter2": "^6.3.1", - "require-in-the-middle": "^5.0.0", - "semver": "6.3.0", - "shimmer": "^1.2.0", - "signal-exit": "^3.0.3", - "tslib": "1.9.3" - }, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/@pm2/io/node_modules/eventemitter2": { - "version": "6.4.9", - "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.9.tgz", - "integrity": "sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==", - "dev": true - }, - "node_modules/@pm2/io/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@pm2/js-api": { - "version": "0.6.7", - "resolved": "https://registry.npmjs.org/@pm2/js-api/-/js-api-0.6.7.tgz", - "integrity": "sha512-jiJUhbdsK+5C4zhPZNnyA3wRI01dEc6a2GhcQ9qI38DyIk+S+C8iC3fGjcjUbt/viLYKPjlAaE+hcT2/JMQPXw==", - "dev": true, - "dependencies": { - "async": "^2.6.3", - "axios": "^0.21.0", - "debug": "~4.3.1", - "eventemitter2": "^6.3.1", - "ws": "^7.0.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@pm2/js-api/node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", - "dev": true, - "dependencies": { - "follow-redirects": "^1.14.0" - } - }, - "node_modules/@pm2/js-api/node_modules/eventemitter2": { - "version": "6.4.9", - "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.9.tgz", - "integrity": "sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==", - "dev": true - }, - "node_modules/@pm2/pm2-version-check": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@pm2/pm2-version-check/-/pm2-version-check-1.0.4.tgz", - "integrity": "sha512-SXsM27SGH3yTWKc2fKR4SYNxsmnvuBQ9dd6QHtEWmiZ/VqaOYPAIlS8+vMcn27YLtAEBGvNRSh3TPNvtjZgfqA==", - "dev": true, - "dependencies": { - "debug": "^4.3.1" - } - }, "node_modules/@samverschueren/stream-to-observable": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.1.tgz", @@ -3674,21 +3494,6 @@ "ajv": "^8.8.2" } }, - "node_modules/amp": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/amp/-/amp-0.3.1.tgz", - "integrity": "sha512-OwIuC4yZaRogHKiuU5WlMR5Xk/jAcpPtawWL05Gj8Lvm2F6mwoJt4O/bHI+DHwG79vWd+8OFYM4/BzYqyRd3qw==", - "dev": true - }, - "node_modules/amp-message": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/amp-message/-/amp-message-0.1.2.tgz", - "integrity": "sha512-JqutcFwoU1+jhv7ArgW38bqrE+LQdcRv4NxNw0mp0JHQyB6tXesWRjtYKlDgHRY2o3JE5UTaBGUK8kSWUdxWUg==", - "dev": true, - "dependencies": { - "amp": "0.3.1" - } - }, "node_modules/ansi-colors": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", @@ -4345,24 +4150,6 @@ "node": ">=0.10.0" } }, - "node_modules/ast-types": { - "version": "0.13.4", - "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", - "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", - "dev": true, - "dependencies": { - "tslib": "^2.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/ast-types/node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==", - "dev": true - }, "node_modules/astral-regex": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", @@ -4417,28 +4204,6 @@ "node": ">=0.8.0" } }, - "node_modules/async-listener": { - "version": "0.6.10", - "resolved": "https://registry.npmjs.org/async-listener/-/async-listener-0.6.10.tgz", - "integrity": "sha512-gpuo6xOyF4D5DE5WvyqZdPA3NGhiT6Qf07l7DCB0wwDEsLvDIbCr6j9S5aj5Ch96dLace5tXVzWBZkxU/c5ohw==", - "dev": true, - "dependencies": { - "semver": "^5.3.0", - "shimmer": "^1.1.0" - }, - "engines": { - "node": "<=0.11.8 || >0.11.10" - } - }, - "node_modules/async-listener/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, "node_modules/async-settle": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/async-settle/-/async-settle-1.0.0.tgz", @@ -5040,30 +4805,12 @@ "ieee754": "^1.1.13" } }, - "node_modules/blessed": { - "version": "0.1.81", - "resolved": "https://registry.npmjs.org/blessed/-/blessed-0.1.81.tgz", - "integrity": "sha512-LoF5gae+hlmfORcG1M5+5XZi4LBmvlXTzwJWzUlPryN/SJdSflZvROM2TwkT0GMpq7oqT48NRd4GS7BiVBc5OQ==", - "dev": true, - "bin": { - "blessed": "bin/tput.js" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/bn.js": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", "dev": true }, - "node_modules/bodec": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/bodec/-/bodec-0.1.0.tgz", - "integrity": "sha512-Ylo+MAo5BDUq1KA3f3R/MFhh+g8cnHmo8bz3YPGhI1znrMaf77ol1sfvYJzsw3nTE+Y2GryfDxBaR+AqpAkEHQ==", - "dev": true - }, "node_modules/body-parser": { "version": "1.20.2", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", @@ -5802,12 +5549,6 @@ "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "dev": true }, - "node_modules/charm": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/charm/-/charm-0.1.2.tgz", - "integrity": "sha512-syedaZ9cPe7r3hoQA9twWYKu5AIyCswN5+szkmPBe9ccdLrj4bYaCnLVPTLd2kgVRc7+zoX4tyPgRnFKCj5YjQ==", - "dev": true - }, "node_modules/chokidar": { "version": "2.1.8", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", @@ -6083,31 +5824,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cli-tableau": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/cli-tableau/-/cli-tableau-2.0.1.tgz", - "integrity": "sha512-he+WTicka9cl0Fg/y+YyxcN6/bfQ/1O3QmgxRXDhABKqLzvoOSM4fMzp39uMyLBulAFuywD2N7UaoQE7WaADxQ==", - "dev": true, - "dependencies": { - "chalk": "3.0.0" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/cli-tableau/node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/cli-truncate": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-0.2.1.tgz", @@ -6692,16 +6408,6 @@ "node": ">= 0.6" } }, - "node_modules/continuation-local-storage": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/continuation-local-storage/-/continuation-local-storage-3.2.1.tgz", - "integrity": "sha512-jx44cconVqkCEEyLSKWwkvUXwO561jXMa3LPjTPsm5QR22PA0/mhe33FT4Xb5y74JDvt/Cq+5lm8S8rskLv9ZA==", - "dev": true, - "dependencies": { - "async-listener": "^0.6.0", - "emitter-listener": "^1.1.1" - } - }, "node_modules/convert-source-map": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", @@ -6958,12 +6664,6 @@ "sha.js": "^2.4.8" } }, - "node_modules/croner": { - "version": "4.1.97", - "resolved": "https://registry.npmjs.org/croner/-/croner-4.1.97.tgz", - "integrity": "sha512-/f6gpQuxDaqXu+1kwQYSckUglPaOrHdbIlBAu0YuW8/Cdb45XwXYNUBXg3r/9Mo6n540Kn/smKcZWko5x99KrQ==", - "dev": true - }, "node_modules/cross-env": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", @@ -7085,12 +6785,6 @@ "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" }, - "node_modules/culvert": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/culvert/-/culvert-0.1.2.tgz", - "integrity": "sha512-yi1x3EAWKjQTreYWeSd98431AV+IEE0qoDyOoaHJ7KJ21gv6HtBXHVLX74opVSGqcR8/AbjJBHAHpcOy2bj5Gg==", - "dev": true - }, "node_modules/cycle": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/cycle/-/cycle-1.0.3.tgz", @@ -7122,15 +6816,6 @@ "node": ">=0.10" } }, - "node_modules/data-uri-to-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz", - "integrity": "sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, "node_modules/data-urls": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", @@ -7426,56 +7111,10 @@ "node": ">=0.10.0" } }, - "node_modules/degenerator": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-3.0.4.tgz", - "integrity": "sha512-Z66uPeBfHZAHVmue3HPfyKu2Q0rC2cRxbTOsvmU/po5fvvcx27W4mIu9n0PUlQih4oUYvcG1BsbtVv8x7KDOSw==", - "dev": true, - "dependencies": { - "ast-types": "^0.13.2", - "escodegen": "^1.8.1", - "esprima": "^4.0.0", - "vm2": "^3.9.17" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/degenerator/node_modules/escodegen": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", - "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", - "dev": true, - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=4.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/degenerator/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/del": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/del/-/del-5.1.0.tgz", - "integrity": "sha512-wH9xOVHnczo9jN2IW68BabcecVPxacIA3g/7z6vhSU/4stOKQzeCRK0yD0A24WiAAUJmmVpWqrERcTxnLo3AnA==", + "node_modules/del": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/del/-/del-5.1.0.tgz", + "integrity": "sha512-wH9xOVHnczo9jN2IW68BabcecVPxacIA3g/7z6vhSU/4stOKQzeCRK0yD0A24WiAAUJmmVpWqrERcTxnLo3AnA==", "dev": true, "dependencies": { "globby": "^10.0.1", @@ -7859,15 +7498,6 @@ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", "dev": true }, - "node_modules/emitter-listener": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/emitter-listener/-/emitter-listener-1.1.2.tgz", - "integrity": "sha512-Bt1sBAGFHY9DKY+4/2cV6izcKJUf5T7/gkdmkxzX/qv9CcGH8xSwVRW5mtX03SWJtRTWSOpzCuWN9rBFYZepZQ==", - "dev": true, - "dependencies": { - "shimmer": "^1.2.0" - } - }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -8004,18 +7634,6 @@ "node": ">=10.13.0" } }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "dependencies": { - "ansi-colors": "^4.1.1" - }, - "engines": { - "node": ">=8.6" - } - }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -8778,12 +8396,6 @@ "node": ">=6" } }, - "node_modules/eventemitter2": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-5.0.1.tgz", - "integrity": "sha512-5EM1GHXycJBS6mauYAbVKT1cVs7POKWb2NXD4Vyt8dDqeZa7LaDK1/sjtL+Zb0lzTpSNil4596Dyu97hz37QLg==", - "dev": true - }, "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", @@ -9420,12 +9032,6 @@ "node": ">=8.6.0" } }, - "node_modules/fast-json-patch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-3.1.1.tgz", - "integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ==", - "dev": true - }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -9463,12 +9069,6 @@ "bser": "2.1.1" } }, - "node_modules/fclone": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/fclone/-/fclone-1.0.11.tgz", - "integrity": "sha512-GDqVQezKzRABdeqflsgMr7ktzgF9CyS+p2oe0jJqUY6izSSbhPIQJDpoU4PtGcD7VPM9xh/dVrTu6z1nwgmEGw==", - "dev": true - }, "node_modules/fd-slicer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", @@ -10342,52 +9942,6 @@ "node": ">= 4.0" } }, - "node_modules/ftp": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz", - "integrity": "sha512-faFVML1aBx2UoDStmLwv2Wptt4vw5x03xxX172nhA5Y5HBshW5JweqQ2W4xL4dezQTG8inJsuYcpPHHU3X5OTQ==", - "dev": true, - "dependencies": { - "readable-stream": "1.1.x", - "xregexp": "2.0.0" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/ftp/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "node_modules/ftp/node_modules/readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/ftp/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "dev": true - }, - "node_modules/ftp/node_modules/xregexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-2.0.0.tgz", - "integrity": "sha512-xl/50/Cf32VsGq/1R8jJE5ajH1yMCQkpmoS10QbFZWl2Oor4H0Me64Pu2yxvsRWK3m6soJbmGfzSR7BYmDcWAA==", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -10515,64 +10069,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/get-uri": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-3.0.2.tgz", - "integrity": "sha512-+5s0SJbGoyiJTZZ2JTpFPLMPSch72KEqGOTvQsBqg0RBWvwhWUSYZFAtz3TPW0GXJuLBJPts1E241iHg+VRfhg==", - "dev": true, - "dependencies": { - "@tootallnate/once": "1", - "data-uri-to-buffer": "3", - "debug": "4", - "file-uri-to-path": "2", - "fs-extra": "^8.1.0", - "ftp": "^0.3.10" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/get-uri/node_modules/file-uri-to-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-2.0.0.tgz", - "integrity": "sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/get-uri/node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/get-uri/node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/get-uri/node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/get-value": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", @@ -10754,18 +10250,6 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/git-node-fs": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/git-node-fs/-/git-node-fs-1.0.0.tgz", - "integrity": "sha512-bLQypt14llVXBg0S0u8q8HmU7g9p3ysH+NvVlae5vILuUvs759665HvmR5+wb04KjHyjFcDRxdYb4kyNnluMUQ==", - "dev": true - }, - "node_modules/git-sha1": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/git-sha1/-/git-sha1-0.1.2.tgz", - "integrity": "sha512-2e/nZezdVlyCopOCYHeW0onkbZg7xP1Ad6pndPy1rCygeRykefUS6r7oA5cJRGEFvseiaz5a/qUHFVX1dd6Isg==", - "dev": true - }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -12539,6 +12023,15 @@ "integrity": "sha512-yOJQEKrNwoYqrWLS4DcnzM7SEQhRKis5mB+LdKKh4cPmGYlLPR0ozRzHV5jmEk2IxptqJNQA5Cc0gw8Fj12bXA==", "dev": true }, + "node_modules/ignored": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/ignored/-/ignored-2.0.4.tgz", + "integrity": "sha512-YJH9bOTmskmKEcTDrbMeeogMcxf8gCkzhk7hQPtSJ5Zmr82vHInrDp9HOTigMO0XcW6EmFHb4sNdZQrhH/r6kA==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, "node_modules/immutable": { "version": "3.8.2", "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.2.tgz", @@ -12939,12 +12432,6 @@ "node": ">=0.10.0" } }, - "node_modules/ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", - "dev": true - }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", @@ -13833,24 +13320,6 @@ "node": ">= 10.13.0" } }, - "node_modules/js-git": { - "version": "0.7.8", - "resolved": "https://registry.npmjs.org/js-git/-/js-git-0.7.8.tgz", - "integrity": "sha512-+E5ZH/HeRnoc/LW0AmAyhU+mNcWBzAKE+30+IDMLSLbbK+Tdt02AdkOKq9u15rlJsDEGFqtgckc8ZM59LhhiUA==", - "dev": true, - "dependencies": { - "bodec": "^0.1.0", - "culvert": "^0.1.2", - "git-sha1": "^0.1.2", - "pako": "^0.2.5" - } - }, - "node_modules/js-git/node_modules/pako": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", - "integrity": "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==", - "dev": true - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -14086,15 +13555,6 @@ "node": ">= 0.10" } }, - "node_modules/lazy": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/lazy/-/lazy-1.0.11.tgz", - "integrity": "sha512-Y+CjUfLmIpoUCCRl0ub4smrYtGGr5AOa2AKOaWelGHOGz33X/Y/KizefGqbkwfz44+cnq/+9habclf8vOmu2LA==", - "dev": true, - "engines": { - "node": ">=0.2.0" - } - }, "node_modules/lazystream": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", @@ -14959,15 +14419,6 @@ "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==", "dev": true }, - "node_modules/log-driver": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz", - "integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==", - "dev": true, - "engines": { - "node": ">=0.8.6" - } - }, "node_modules/log-symbols": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", @@ -15917,12 +15368,6 @@ "integrity": "sha512-A/78XjoX2EmNvppVWEhM2oGk3x4lLxnkEA4jTbaK97QKSDjkIoOsKQlfylt/d3kKKi596Qy3NP5XrXJ6fZIC9Q==", "dev": true }, - "node_modules/module-details-from-path": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.3.tgz", - "integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==", - "dev": true - }, "node_modules/moment": { "version": "2.29.4", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", @@ -16119,44 +15564,6 @@ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, - "node_modules/needle": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/needle/-/needle-2.4.0.tgz", - "integrity": "sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg==", - "dev": true, - "dependencies": { - "debug": "^3.2.6", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - }, - "bin": { - "needle": "bin/needle" - }, - "engines": { - "node": ">= 4.4.x" - } - }, - "node_modules/needle/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/needle/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -16171,15 +15578,6 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, - "node_modules/netmask": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", - "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/next-tick": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", @@ -16769,25 +16167,6 @@ "node": ">=4" } }, - "node_modules/nssocket": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/nssocket/-/nssocket-0.6.0.tgz", - "integrity": "sha512-a9GSOIql5IqgWJR3F/JXG4KpJTA3Z53Cj0MeMvGpglytB1nxE4PdFNC0jINe27CS7cGivoynwc054EzCcT3M3w==", - "dev": true, - "dependencies": { - "eventemitter2": "~0.4.14", - "lazy": "~1.0.11" - }, - "engines": { - "node": ">= 0.10.x" - } - }, - "node_modules/nssocket/node_modules/eventemitter2": { - "version": "0.4.14", - "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", - "integrity": "sha512-K7J4xq5xAD5jHsGM5ReWXRTFa3JRGofHiMcVgQ8PRwgWxzjHpMWCIzsmyf60+mh8KLsqYPcjUMa0AC4hd6lPyQ==", - "dev": true - }, "node_modules/num2fraction": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", @@ -17370,40 +16749,6 @@ "node": ">=6" } }, - "node_modules/pac-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-5.0.0.tgz", - "integrity": "sha512-CcFG3ZtnxO8McDigozwE3AqAw15zDvGH+OjXO4kzf7IkEKkQ4gxQ+3sdF50WmhQ4P/bVusXcqNE2S3XrNURwzQ==", - "dev": true, - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4", - "get-uri": "3", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "5", - "pac-resolver": "^5.0.0", - "raw-body": "^2.2.0", - "socks-proxy-agent": "5" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/pac-resolver": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-5.0.1.tgz", - "integrity": "sha512-cy7u00ko2KVgBAjuhevqpPeHIkCIqPe1v24cydhWjmeuzaBfmUWFCZJ1iAh5TuVzVZoUzXIW7K8sMYOZ84uZ9Q==", - "dev": true, - "dependencies": { - "degenerator": "^3.0.2", - "ip": "^1.1.5", - "netmask": "^2.0.2" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", @@ -17722,18 +17067,6 @@ "node": ">=0.10" } }, - "node_modules/pidusage": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pidusage/-/pidusage-3.0.2.tgz", - "integrity": "sha512-g0VU+y08pKw5M8EZ2rIGiEBaB8wrQMjYGFfW2QVIfyT8V+fq8YFLkvlz4bz5ljvFDJYNFCWT3PWqcRr2FKO81w==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", @@ -17927,348 +17260,42 @@ "node": ">=0.10.0" } }, - "node_modules/pm2": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/pm2/-/pm2-5.3.0.tgz", - "integrity": "sha512-xscmQiAAf6ArVmKhjKTeeN8+Td7ZKnuZFFPw1DGkdFPR/0Iyx+m+1+OpCdf9+HQopX3VPc9/wqPQHqVOfHum9w==", - "dev": true, - "dependencies": { - "@pm2/agent": "~2.0.0", - "@pm2/io": "~5.0.0", - "@pm2/js-api": "~0.6.7", - "@pm2/pm2-version-check": "latest", - "async": "~3.2.0", - "blessed": "0.1.81", - "chalk": "3.0.0", - "chokidar": "^3.5.3", - "cli-tableau": "^2.0.0", - "commander": "2.15.1", - "croner": "~4.1.92", - "dayjs": "~1.11.5", - "debug": "^4.3.1", - "enquirer": "2.3.6", - "eventemitter2": "5.0.1", - "fclone": "1.0.11", - "mkdirp": "1.0.4", - "needle": "2.4.0", - "pidusage": "~3.0", - "pm2-axon": "~4.0.1", - "pm2-axon-rpc": "~0.7.1", - "pm2-deploy": "~1.0.2", - "pm2-multimeter": "^0.1.2", - "promptly": "^2", - "semver": "^7.2", - "source-map-support": "0.5.21", - "sprintf-js": "1.1.2", - "vizion": "~2.2.1", - "yamljs": "0.3.0" + "node_modules/po2json": { + "version": "1.0.0-beta-3", + "resolved": "https://registry.npmjs.org/po2json/-/po2json-1.0.0-beta-3.tgz", + "integrity": "sha512-taS8y6ZEGzPAs0rygW9CuUPY8C3Zgx6cBy31QXxG2JlWS3fLxj/kuD3cbIfXBg30PuYN7J5oyBa/TIRjyqFFtg==", + "dev": true, + "dependencies": { + "commander": "^6.0.0", + "gettext-parser": "2.0.0", + "gettext-to-messageformat": "0.3.1" }, "bin": { - "pm2": "bin/pm2", - "pm2-dev": "bin/pm2-dev", - "pm2-docker": "bin/pm2-docker", - "pm2-runtime": "bin/pm2-runtime" + "po2json": "bin/po2json" }, "engines": { - "node": ">=10.0.0" + "node": ">=10.0" }, - "optionalDependencies": { - "pm2-sysmonit": "^1.2.8" + "peerDependencies": { + "commander": "^6.0.0", + "gettext-parser": "2.0.0", + "gettext-to-messageformat": "0.3.1" } }, - "node_modules/pm2-axon": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pm2-axon/-/pm2-axon-4.0.1.tgz", - "integrity": "sha512-kES/PeSLS8orT8dR5jMlNl+Yu4Ty3nbvZRmaAtROuVm9nYYGiaoXqqKQqQYzWQzMYWUKHMQTvBlirjE5GIIxqg==", + "node_modules/pofile": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pofile/-/pofile-1.0.11.tgz", + "integrity": "sha512-Vy9eH1dRD9wHjYt/QqXcTz+RnX/zg53xK+KljFSX30PvdDMb2z+c6uDUeblUGqqJgz3QFsdlA0IJvHziPmWtQg==", + "dev": true + }, + "node_modules/portscanner": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/portscanner/-/portscanner-2.2.0.tgz", + "integrity": "sha512-IFroCz/59Lqa2uBvzK3bKDbDDIEaAY8XJ1jFxcLWTqosrsc32//P4VuSB2vZXoHiHqOmx8B5L5hnKOxL/7FlPw==", "dev": true, "dependencies": { - "amp": "~0.3.1", - "amp-message": "~0.1.1", - "debug": "^4.3.1", - "escape-string-regexp": "^4.0.0" - }, - "engines": { - "node": ">=5" - } - }, - "node_modules/pm2-axon-rpc": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/pm2-axon-rpc/-/pm2-axon-rpc-0.7.1.tgz", - "integrity": "sha512-FbLvW60w+vEyvMjP/xom2UPhUN/2bVpdtLfKJeYM3gwzYhoTEEChCOICfFzxkxuoEleOlnpjie+n1nue91bDQw==", - "dev": true, - "dependencies": { - "debug": "^4.3.1" - }, - "engines": { - "node": ">=5" - } - }, - "node_modules/pm2-axon/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pm2-deploy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pm2-deploy/-/pm2-deploy-1.0.2.tgz", - "integrity": "sha512-YJx6RXKrVrWaphEYf++EdOOx9EH18vM8RSZN/P1Y+NokTKqYAca/ejXwVLyiEpNju4HPZEk3Y2uZouwMqUlcgg==", - "dev": true, - "dependencies": { - "run-series": "^1.1.8", - "tv4": "^1.3.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/pm2-multimeter": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/pm2-multimeter/-/pm2-multimeter-0.1.2.tgz", - "integrity": "sha512-S+wT6XfyKfd7SJIBqRgOctGxaBzUOmVQzTAS+cg04TsEUObJVreha7lvCfX8zzGVr871XwCSnHUU7DQQ5xEsfA==", - "dev": true, - "dependencies": { - "charm": "~0.1.1" - } - }, - "node_modules/pm2-sysmonit": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/pm2-sysmonit/-/pm2-sysmonit-1.2.8.tgz", - "integrity": "sha512-ACOhlONEXdCTVwKieBIQLSi2tQZ8eKinhcr9JpZSUAL8Qy0ajIgRtsLxG/lwPOW3JEKqPyw/UaHmTWhUzpP4kA==", - "dev": true, - "optional": true, - "dependencies": { - "async": "^3.2.0", - "debug": "^4.3.1", - "pidusage": "^2.0.21", - "systeminformation": "^5.7", - "tx2": "~1.0.4" - } - }, - "node_modules/pm2-sysmonit/node_modules/async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", - "dev": true, - "optional": true - }, - "node_modules/pm2-sysmonit/node_modules/pidusage": { - "version": "2.0.21", - "resolved": "https://registry.npmjs.org/pidusage/-/pidusage-2.0.21.tgz", - "integrity": "sha512-cv3xAQos+pugVX+BfXpHsbyz/dLzX+lr44zNMsYiGxUw+kV5sgQCIcLd1z+0vq+KyC7dJ+/ts2PsfgWfSC3WXA==", - "dev": true, - "optional": true, - "dependencies": { - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pm2/node_modules/async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", - "dev": true - }, - "node_modules/pm2/node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/pm2/node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pm2/node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pm2/node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/pm2/node_modules/commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", - "dev": true - }, - "node_modules/pm2/node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pm2/node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/pm2/node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pm2/node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/pm2/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/pm2/node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/pm2/node_modules/sprintf-js": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", - "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", - "dev": true - }, - "node_modules/pm2/node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/po2json": { - "version": "1.0.0-beta-3", - "resolved": "https://registry.npmjs.org/po2json/-/po2json-1.0.0-beta-3.tgz", - "integrity": "sha512-taS8y6ZEGzPAs0rygW9CuUPY8C3Zgx6cBy31QXxG2JlWS3fLxj/kuD3cbIfXBg30PuYN7J5oyBa/TIRjyqFFtg==", - "dev": true, - "dependencies": { - "commander": "^6.0.0", - "gettext-parser": "2.0.0", - "gettext-to-messageformat": "0.3.1" - }, - "bin": { - "po2json": "bin/po2json" - }, - "engines": { - "node": ">=10.0" - }, - "peerDependencies": { - "commander": "^6.0.0", - "gettext-parser": "2.0.0", - "gettext-to-messageformat": "0.3.1" - } - }, - "node_modules/pofile": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pofile/-/pofile-1.0.11.tgz", - "integrity": "sha512-Vy9eH1dRD9wHjYt/QqXcTz+RnX/zg53xK+KljFSX30PvdDMb2z+c6uDUeblUGqqJgz3QFsdlA0IJvHziPmWtQg==", - "dev": true - }, - "node_modules/portscanner": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/portscanner/-/portscanner-2.2.0.tgz", - "integrity": "sha512-IFroCz/59Lqa2uBvzK3bKDbDDIEaAY8XJ1jFxcLWTqosrsc32//P4VuSB2vZXoHiHqOmx8B5L5hnKOxL/7FlPw==", - "dev": true, - "dependencies": { - "async": "^2.6.0", - "is-number-like": "^1.0.3" + "async": "^2.6.0", + "is-number-like": "^1.0.3" }, "engines": { "node": ">=0.4", @@ -18602,15 +17629,6 @@ "lodash": "^4.17.14" } }, - "node_modules/promptly": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/promptly/-/promptly-2.2.0.tgz", - "integrity": "sha512-aC9j+BZsRSSzEsXBNBwDnAxujdx19HycZoKgRgzWnS8eOHg1asuf9heuLprfbe739zY3IdUQx+Egv6Jn135WHA==", - "dev": true, - "dependencies": { - "read": "^1.0.4" - } - }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", @@ -18633,25 +17651,6 @@ "node": ">= 0.10" } }, - "node_modules/proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-5.0.0.tgz", - "integrity": "sha512-gkH7BkvLVkSfX9Dk27W6TyNOWWZWRilRfk1XxGNWOYJ2TuedAv1yFpCaU9QSBmBe716XOTNpYNOzhysyw8xn7g==", - "dev": true, - "dependencies": { - "agent-base": "^6.0.0", - "debug": "4", - "http-proxy-agent": "^4.0.0", - "https-proxy-agent": "^5.0.0", - "lru-cache": "^5.1.1", - "pac-proxy-agent": "^5.0.0", - "proxy-from-env": "^1.0.0", - "socks-proxy-agent": "^5.0.0" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", @@ -19673,20 +18672,6 @@ "node": ">=0.10.0" } }, - "node_modules/require-in-the-middle": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-5.2.0.tgz", - "integrity": "sha512-efCx3b+0Z69/LGJmm9Yvi4cqEdxnoGnxYxGxBghkkTTFeXRtTCmmhO0AnAfHz59k957uTSuy8WaHqOs8wbYUWg==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "module-details-from-path": "^1.0.3", - "resolve": "^1.22.1" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/require-main-filename": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", @@ -19920,26 +18905,6 @@ "run-script-os": "index.js" } }, - "node_modules/run-series": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/run-series/-/run-series-1.1.9.tgz", - "integrity": "sha512-Arc4hUN896vjkqCYrUXquBFtRZdv1PfLbTYP71efP6butxyQ0kWpiNJyAgsxscmQg1cqvHY32/UCBzXedTpU2g==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/rx": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/rx/-/rx-4.1.0.tgz", @@ -20514,12 +19479,6 @@ "node": ">=8.0" } }, - "node_modules/sax": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true - }, "node_modules/saxes": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", @@ -20936,12 +19895,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/shimmer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/shimmer/-/shimmer-1.2.1.tgz", - "integrity": "sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==", - "dev": true - }, "node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", @@ -21023,16 +19976,6 @@ "node": ">=8.0.0" } }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "dev": true, - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, "node_modules/snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", @@ -21259,40 +20202,6 @@ "node": ">=10.0.0" } }, - "node_modules/socks": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", - "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", - "dev": true, - "dependencies": { - "ip": "^2.0.0", - "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.13.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-5.0.1.tgz", - "integrity": "sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ==", - "dev": true, - "dependencies": { - "agent-base": "^6.0.2", - "debug": "4", - "socks": "^2.3.3" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/socks/node_modules/ip": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", - "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", - "dev": true - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -22199,33 +21108,6 @@ "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" }, - "node_modules/systeminformation": { - "version": "5.17.12", - "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.17.12.tgz", - "integrity": "sha512-I3pfMW2vue53u+X08BNxaJieaHkRoMMKjWetY9lbYJeWFaeWPO6P4FkNc4XOCX8F9vbQ0HqQ25RJoz3U/B7liw==", - "dev": true, - "optional": true, - "os": [ - "darwin", - "linux", - "win32", - "freebsd", - "openbsd", - "netbsd", - "sunos", - "android" - ], - "bin": { - "systeminformation": "lib/cli.js" - }, - "engines": { - "node": ">=8.0.0" - }, - "funding": { - "type": "Buy me a coffee", - "url": "https://www.buymeacoffee.com/systeminfo" - } - }, "node_modules/table": { "version": "5.4.6", "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", @@ -23131,31 +22013,12 @@ "node": "*" } }, - "node_modules/tv4": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/tv4/-/tv4-1.3.0.tgz", - "integrity": "sha512-afizzfpJgvPr+eDkREK4MxJ/+r8nEEHcmitwgnPUqpaP+FpwQyadnxNoSACbgc/b1LsZYtODGoPiFxQrgJgjvw==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", "dev": true }, - "node_modules/tx2": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tx2/-/tx2-1.0.5.tgz", - "integrity": "sha512-sJ24w0y03Md/bxzK4FU8J8JveYYUbSs2FViLJ2D/8bytSiyPRbuE3DyL/9UKYXTZlV3yXq0L8GLlhobTnekCVg==", - "dev": true, - "optional": true, - "dependencies": { - "json-stringify-safe": "^5.0.1" - } - }, "node_modules/type": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", @@ -24073,64 +22936,12 @@ "node": ">=0.10.0" } }, - "node_modules/vizion": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/vizion/-/vizion-2.2.1.tgz", - "integrity": "sha512-sfAcO2yeSU0CSPFI/DmZp3FsFE9T+8913nv1xWBOyzODv13fwkn6Vl7HqxGpkr9F608M+8SuFId3s+BlZqfXww==", - "dev": true, - "dependencies": { - "async": "^2.6.3", - "git-node-fs": "^1.0.0", - "ini": "^1.3.5", - "js-git": "^0.7.8" - }, - "engines": { - "node": ">=4.0" - } - }, "node_modules/vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", "dev": true }, - "node_modules/vm2": { - "version": "3.9.17", - "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.17.tgz", - "integrity": "sha512-AqwtCnZ/ERcX+AVj9vUsphY56YANXxRuqMb7GsDtAr0m0PcQX3u0Aj3KWiXM0YAHy7i6JEeHrwOnwXbGYgRpAw==", - "dev": true, - "dependencies": { - "acorn": "^8.7.0", - "acorn-walk": "^8.2.0" - }, - "bin": { - "vm2": "bin/vm2" - }, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/vm2/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/vm2/node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/w3c-hr-time": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", @@ -24733,20 +23544,6 @@ "node": ">= 6" } }, - "node_modules/yamljs": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/yamljs/-/yamljs-0.3.0.tgz", - "integrity": "sha512-C/FsVVhht4iPQYXOInoxUM/1ELSf9EsgKH34FofQOp6hwCPrW4vG4w5++TED3xRUo8gD7l0P1J1dLlDYzODsTQ==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "glob": "^7.0.5" - }, - "bin": { - "json2yaml": "bin/json2yaml", - "yaml2json": "bin/yaml2json" - } - }, "node_modules/yargs": { "version": "17.7.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", diff --git a/package.json b/package.json index b6de8945..cf73254f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reactium", - "version": "5.0.0-alpha-2", + "version": "5.0.0-alpha-3", "description": "A framework for creating React + Redux apps using the domain driven design (DDD) paradigm.", "main": "index.js", "scripts": { @@ -10,7 +10,7 @@ "build:babel-core": "cross-env NODE_ENV=production babel .core --out-dir build/.core", "build:babel-reactium_modules": "cross-env NODE_ENV=production babel reactium_modules --out-dir build/reactium_modules", "build:babel-src": "cross-env NODE_ENV=production babel src --out-dir build/src --copy-files", - "heroku-prebuild": "npx -p @atomic-reactor/cli@2.2.77 arcli install", + "heroku-prebuild": "npx -p @atomic-reactor/cli arcli install", "static": "npm-run-all build:* && gulp static", "local": "gulp local", "clean": "gulp clean", @@ -40,7 +40,7 @@ "parse/node": false }, "dependencies": { - "@atomic-reactor/reactium-sdk-core": "^1.2.20", + "@atomic-reactor/reactium-sdk-core": "^1.2.21", "@babel/cli": "^7.21.0", "@babel/node": "^7.20.7", "@loadable/component": "^5.15.3", @@ -89,7 +89,7 @@ "xss": "^1.0.14" }, "devDependencies": { - "@atomic-reactor/cli": "^2.2.78", + "@atomic-reactor/cli": "^3.0.5", "@atomic-reactor/gulp-run": "^1.8.0", "@atomic-reactor/gulp-watch": "^5.0.2", "@atomic-reactor/node-sass-reactium-importer": "^1.0.0",