Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Feb 1, 2023
1 parent c6e338a commit 2c5c692
Show file tree
Hide file tree
Showing 20 changed files with 702 additions and 643 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
*/
/* eslint-env es2021, node */

const mc = require('merge-change');
const $obj = require('@clevercanyon/utilities/obj');
const baseConfig = require('./dev/.files/eslint/config.cjs');

/*
* Customizations.
* <custom:start> */

module.exports = mc.merge({}, baseConfig, {});
module.exports = $obj.mc.merge({}, baseConfig, {});

/* </custom:end> */
4 changes: 2 additions & 2 deletions .madrun.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
*/
/* eslint-env es2021, node */

import mc from 'merge-change';
import { $obj } from '@clevercanyon/utilities';
import baseConfig from './dev/.files/madrun/config.mjs';

/*
* Customizations.
* <custom:start> */

export default mc.merge({}, baseConfig, {});
export default $obj.mc.merge({}, baseConfig, {});

/* </custom:end> */
4 changes: 2 additions & 2 deletions .postcssrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
*/
/* eslint-env es2021, node */

const mc = require('merge-change');
const $obj = require('@clevercanyon/utilities/obj');
const baseConfig = require('./dev/.files/postcss/config.cjs');

/*
* Customizations.
* <custom:start> */

module.exports = mc.merge({}, baseConfig, {});
module.exports = $obj.mc.merge({}, baseConfig, {});

/* </custom:end> */
4 changes: 2 additions & 2 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
*/
/* eslint-env es2021, node */

const mc = require('merge-change');
const $obj = require('@clevercanyon/utilities/obj');
const baseConfig = require('./dev/.files/prettier/config.cjs');

/*
* Customizations.
* <custom:start> */

module.exports = mc.merge({}, baseConfig, {});
module.exports = $obj.mc.merge({}, baseConfig, {});

/* </custom:end> */
4 changes: 2 additions & 2 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
*/
/* eslint-env es2021, node */

const mc = require('merge-change');
const $obj = require('@clevercanyon/utilities/obj');
const baseConfig = require('./dev/.files/stylelint/config.cjs');

/*
* Customizations.
* <custom:start> */

module.exports = mc.merge({}, baseConfig, {});
module.exports = $obj.mc.merge({}, baseConfig, {});

/* </custom:end> */
4 changes: 2 additions & 2 deletions .tailwindrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
*/
/* eslint-env es2021, node */

const mc = require('merge-change');
const $obj = require('@clevercanyon/utilities/obj');
const baseConfig = require('./dev/.files/tailwind/config.cjs');

/*
* Customizations.
* <custom:start> */

module.exports = mc.merge({}, baseConfig, {});
module.exports = $obj.mc.merge({}, baseConfig, {});

/* </custom:end> */
16 changes: 8 additions & 8 deletions dev/.files/bin/envs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ import fsp from 'node:fs/promises';

import chalk from 'chalk';
import u from './includes/utilities.mjs';
import { $yargs } from '@clevercanyon/utilities.node';

const __dirname = dirname(import.meta.url);
const projDir = path.resolve(__dirname, '../../..');

/**
* NOTE: Most of these commands _must_ be performed interactively. Please review the Yargs configuration below for
* further details. At this time, only the `decrypt` command is allowed noninteractively, and _only_ noninteractively.
*/

/**
* Install command.
*/
Expand Down Expand Up @@ -479,9 +475,13 @@ class Decrypt {
* Yargs ⛵🏴‍☠.
*/
void (async () => {
await u.propagateUserEnvVars(); // i.e., `USER_` env vars.
const yargs = await u.yargs({ scriptName: 'madrun envs' });
await yargs
await u.propagateUserEnvVars();
await (
await $yargs.cli({
scriptName: 'madrun envs',
version: (await u.pkg()).version,
})
)
.command({
command: 'install',
describe: 'Installs all envs for Dotenv Vault.',
Expand Down
Loading

0 comments on commit 2c5c692

Please sign in to comment.