Skip to content

Commit

Permalink
chore: bump deps (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
staylor authored Apr 7, 2021
1 parent 4cae441 commit bb2e8a7
Show file tree
Hide file tree
Showing 11 changed files with 155 additions and 157 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn commitlint --edit $1
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@
"@babel/eslint-parser": "7.13.14",
"@babel/eslint-plugin": "7.13.10",
"@babel/runtime": "7.13.10",
"@commitlint/cli": "12.0.1",
"@commitlint/config-conventional": "12.0.1",
"@commitlint/cli": "12.1.1",
"@commitlint/config-conventional": "12.1.1",
"core-js": "3.10.0",
"enzyme": "3.11.0",
"eslint": "7.23.0",
"eslint-config-airbnb": "18.2.1",
"eslint-config-kyt": "file:packages/eslint-config-kyt",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.3.2",
"eslint-plugin-jest": "24.3.4",
"eslint-plugin-jest-formatting": "2.0.1",
"eslint-plugin-json": "2.1.2",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-prettier": "3.3.1",
"eslint-plugin-react": "7.23.1",
"eslint-plugin-react-hooks": "4.2.0",
"husky": "5.2.0",
"husky": "6.0.0",
"jest": "26.6.3",
"jest-runner-eslint": "0.10.0",
"jest-silent-reporter": "0.5.0",
Expand All @@ -67,11 +67,6 @@
"stylelint": "13.12.0",
"stylelint-config-standard": "21.0.0"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"workspaces": {
"packages": [
"packages/babel-preset-kyt",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-kyt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.3.2",
"eslint-plugin-jest": "^24.3.4",
"eslint-plugin-jest-formatting": "^2.0.1",
"eslint-plugin-json": "^2.1.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/kyt-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@babel/runtime": "7.13.10",
"babel-loader": "8.2.2",
"babel-preset-kyt-core": "1.2.2",
"commander": "6.2.1",
"commander": "7.2.0",
"core-js": "3.10.0",
"file-loader": "6.2.0",
"filesize": "6.1.0",
Expand Down Expand Up @@ -56,7 +56,7 @@
"webpackbar": "4.0.0"
},
"devDependencies": {
"babel-preset-kyt-core": "1.1.14",
"babel-preset-kyt-core": "1.2.2",
"babel-preset-kyt-react": "1.3.2"
},
"scripts": {
Expand Down
24 changes: 12 additions & 12 deletions packages/kyt-core/src/actions/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ const { installUserDependencies, createDir, copyStarterKytFiles } = require('./u
const { fakePackageJson, updateUserPackageJSON } = require('./packages');
const { ypmQ, dirNameQ, getRepoUrl } = require('./questions');

module.exports = (cliArgs = {}) => {
module.exports = options => {
// which package manager to use
const defaultManager = yarnOrNpm();
// --package-manager
let ypm = cliArgs.packageManager || defaultManager;
let ypm = options.packageManager || defaultManager;
// --local-path
let localPath;
if (cliArgs.localPath) {
localPath = path.resolve(cliArgs.localPath);
if (options.localPath) {
localPath = path.resolve(options.localPath);
}

// local vars
Expand Down Expand Up @@ -80,7 +80,7 @@ module.exports = (cliArgs = {}) => {
starterPackageJSON,
starterKytConfig,
paths,
cliArgs.kytVersion
options.kytVersion
);
installUserDependencies(paths, ypm, oldUserPackageJSON, bailProcess);
copyStarterKytFiles(paths, starterPackageJSON, tmpDir);
Expand Down Expand Up @@ -123,13 +123,13 @@ module.exports = (cliArgs = {}) => {
const questions = [];

// Check to see if yarn is installed or user has specified flag
if (defaultManager === 'yarn' && !cliArgs.packageManager) {
if (defaultManager === 'yarn' && !options.packageManager) {
questions.push(ypmQ);
}
if (!cliArgs.directory) {
if (!options.directory) {
questions.push(dirNameQ);
}
if (!cliArgs.repository && !cliArgs.localPath) {
if (!options.repository && !options.localPath) {
questions.push({
type: 'list',
name: 'starterChoice',
Expand All @@ -148,8 +148,8 @@ module.exports = (cliArgs = {}) => {
}

// Create new directory if --directory was passed or question was answered
if (cliArgs.directory || answer.dirName) {
createDir(cliArgs.directory || answer.dirName);
if (options.directory || answer.dirName) {
createDir(options.directory || answer.dirName);
}

// set up path strings
Expand All @@ -158,9 +158,9 @@ module.exports = (cliArgs = {}) => {
// For passed starter-kyts the root of the starter-kyt is the root of the repo
tmpDir = tmpStarter;

if (answer.starterChoice === ownRepo || cliArgs.repository) {
if (answer.starterChoice === ownRepo || options.repository) {
// add repo question then move on to src prompt
return getRepoUrl(cliArgs.repository)
return getRepoUrl(options.repository)
.then(url => {
repoURL = url;
return starterKytSetup();
Expand Down
8 changes: 4 additions & 4 deletions packages/kyt-core/src/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ program
.command('dev')
.option('-C, --config <path>', 'config path')
.description('Start server for development')
.action(args => {
devAction(kytConfigFn(args.config));
.action(options => {
devAction(kytConfigFn(options.config));
});

program
.command('build')
.option('-C, --config <path>', 'config path')
.description('Create a production build')
.action(args => {
buildAction(kytConfigFn(args.config));
.action(options => {
buildAction(kytConfigFn(options.config));
});

program
Expand Down
2 changes: 1 addition & 1 deletion packages/kyt-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"dependencies": {
"kyt-utils": "1.3.17",
"webpack-assets-manifest": "3.1.1"
"webpack-assets-manifest": "4.0.3"
},
"peerDependencies": {
"@babel/runtime": "^7.13.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/kyt-starter-server/starter-src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eslint-config-kyt": "1.5.2",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.3.2",
"eslint-plugin-jest": "24.3.4",
"eslint-plugin-jest-formatting": "2.0.1",
"eslint-plugin-json": "2.1.2",
"eslint-plugin-jsx-a11y": "6.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/kyt-starter-static/starter-src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"eslint-config-kyt": "1.5.2",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.3.2",
"eslint-plugin-jest": "24.3.4",
"eslint-plugin-jest-formatting": "2.0.1",
"eslint-plugin-json": "2.1.2",
"eslint-plugin-jsx-a11y": "6.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/kyt-starter-universal/starter-src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"eslint-config-kyt": "1.5.2",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.3.2",
"eslint-plugin-jest": "24.3.4",
"eslint-plugin-jest-formatting": "2.0.1",
"eslint-plugin-json": "2.1.2",
"eslint-plugin-jsx-a11y": "6.4.1",
Expand Down
Loading

0 comments on commit bb2e8a7

Please sign in to comment.