Skip to content

Commit

Permalink
feat: upgrade (dev)Dependencies (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored Aug 28, 2021
1 parent 9a3b2d5 commit 626afaa
Show file tree
Hide file tree
Showing 35 changed files with 1,442 additions and 2,299 deletions.
18 changes: 18 additions & 0 deletions .changeset/smooth-carrots-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"@1stg/app-config": minor
"@1stg/babel-preset": minor
"@1stg/browserslist-config": minor
"@1stg/commitlint-config": minor
"@1stg/common-config": minor
"@1stg/eslint-config": minor
"@1stg/lib-config": major
"@1stg/lint-staged": minor
"@1stg/markuplint-config": patch
"@1stg/postcss-config": minor
"@1stg/prettier-config": minor
"@1stg/stylelint-config": minor
"@1stg/tsconfig": major
"@1stg/tslint-config": minor
---

feat: upgrade (dev)Dependencies
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
preset: 'ts-jest/presets/js-with-babel',
testRegex: [/.*\.(spec|test)\.[jt]sx?$/],
resolver: '<rootDir>/tests/resolver.js',
}
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,26 @@
"typecov": "type-coverage"
},
"devDependencies": {
"@angular/compiler": "^12.1.1",
"@angular/core": "^12.1.1",
"@angular/compiler": "^12.2.3",
"@angular/core": "^12.2.3",
"@changesets/changelog-github": "^0.4.0",
"@changesets/cli": "^2.16.0",
"@types/jest": "^26.0.24",
"@types/node": "^16.3.2",
"@types/react": "^17.0.14",
"@types/unist": "^2.0.5",
"core-js": "^3.15.2",
"postcss": "^8.3.5",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.4",
"@types/react": "^17.0.19",
"@types/unist": "^2.0.6",
"core-js": "^3.16.3",
"enhanced-resolve": "^5.8.2",
"postcss": "^8.3.6",
"react": "^17.0.2",
"rxjs": "^7.2.0",
"svelte": "^3.38.3",
"ts-jest": "^27.0.3",
"rxjs": "^7.3.0",
"svelte": "^3.42.4",
"ts-jest": "^27.0.5",
"tslint": "^6.1.3",
"type-coverage": "^2.18.0",
"typescript": "^4.3.5",
"typescript": "^4.4.2",
"vue": "^2.6.14",
"vue-tsc": "^0.2.0"
"vue-tsc": "^0.3.0"
},
"resolutions": {
"prettier": "^2.3.2"
Expand Down
8 changes: 4 additions & 4 deletions packages/app-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"@1stg/common-config": "^2.3.1",
"@1stg/postcss-config": "^2.1.0",
"@1stg/stylelint-config": "^2.1.0",
"@pkgr/es-modules": "^0.4.2",
"@pkgr/imagemin": "^1.0.1",
"browserslist": "^4.16.6",
"postcss": "^8.3.5",
"@pkgr/es-modules": "^0.5.0",
"@pkgr/imagemin": "^2.0.3",
"browserslist": "^4.16.8",
"postcss": "^8.3.6",
"stylelint": "^13.13.1"
},
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@babel/plugin-proposal-decorators": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.14.5",
"@pkgr/utils": "^1.0.1",
"@babel/preset-typescript": "^7.15.0",
"@pkgr/utils": "^2.0.0",
"@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
"@vue/babel-plugin-jsx": "^1.0.6",
"@vue/babel-preset-jsx": "^1.2.4",
Expand All @@ -28,7 +28,7 @@
"babel-plugin-transform-remove-console": "^6.9.4",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"babel-preset-proposal-typescript": "^2.2.0",
"core-js": "^3.15.2",
"core-js": "^3.16.3",
"fast-async": "^7.0.6"
},
"publishConfig": {
Expand Down
1 change: 1 addition & 0 deletions packages/browserslist-config/alauda-legacy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = ['Chrome >= 69', 'Firefox >= 80']
2 changes: 1 addition & 1 deletion packages/browserslist-config/alauda.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* @see http://confluence.alauda.cn/pages/viewpage.action?pageId=67557669
*/
module.exports = ['Chrome >= 69', 'Firefox >= 80']
module.exports = ['Chrome >= 85', 'Firefox >= 80']
6 changes: 3 additions & 3 deletions packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"node": ">=12"
},
"dependencies": {
"@commitlint/config-conventional": "^12.1.4",
"@commitlint/config-lerna-scopes": "^12.1.4",
"@pkgr/utils": "^1.0.1"
"@commitlint/config-conventional": "^13.1.0",
"@commitlint/config-lerna-scopes": "^13.1.0",
"@pkgr/utils": "^2.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
12 changes: 6 additions & 6 deletions packages/common-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"@1stg/remark-config": "^1.1.0",
"@1stg/simple-git-hooks": "^0.1.2",
"@1stg/tsconfig": "^1.3.1",
"@babel/core": "^7.14.6",
"@commitlint/cli": "^12.1.4",
"eslint": "^7.30.0",
"lint-staged": "^11.0.1",
"@babel/core": "^7.15.0",
"@commitlint/cli": "^13.1.0",
"eslint": "^7.32.0",
"lint-staged": "^11.1.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"simple-git-hooks": "^2.5.1",
"tslib": "^2.3.0",
"simple-git-hooks": "^2.6.1",
"tslib": "^2.3.1",
"yarn-deduplicate": "^3.1.0"
},
"publishConfig": {
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ module.exports = {
'unicorn/no-unreadable-array-destructuring': 0, // conflict with `no-unused-vars`
'unicorn/prefer-module': 0,
'unicorn/prefer-node-protocol': 0,
'unicorn/prefer-object-from-entries': 0,
'unicorn/prevent-abbreviations': 0,
},
}
32 changes: 16 additions & 16 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"eslint": ">=6.0.0"
},
"dependencies": {
"@angular-eslint/eslint-plugin": "^12.3.0",
"@angular-eslint/eslint-plugin-template": "^12.3.0",
"@angular-eslint/template-parser": "^12.3.0",
"@babel/eslint-parser": "^7.14.7",
"@angular-eslint/eslint-plugin": "^12.3.1",
"@angular-eslint/eslint-plugin-template": "^12.3.1",
"@angular-eslint/template-parser": "^12.3.1",
"@babel/eslint-parser": "^7.15.0",
"@babel/eslint-plugin": "^7.14.5",
"@pkgr/utils": "^1.0.1",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/eslint-plugin-tslint": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"@pkgr/utils": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/eslint-plugin-tslint": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"angular-eslint-template-parser": "^0.1.1",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
Expand All @@ -30,21 +30,21 @@
"eslint-formatter-friendly": "^7.0.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jsdoc": "^35.4.3",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsdoc": "^36.0.8",
"eslint-plugin-markup": "^0.7.1",
"eslint-plugin-mdx": "^1.14.0",
"eslint-plugin-mdx": "^1.15.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-sonar": "^0.6.1",
"eslint-plugin-sonarjs": "^0.9.1",
"eslint-plugin-sonarjs": "^0.10.0",
"eslint-plugin-svelte": "^1.1.2",
"eslint-plugin-unicorn": "^34.0.1",
"eslint-plugin-vue": "^7.13.0"
"eslint-plugin-unicorn": "^35.0.0",
"eslint-plugin-vue": "^7.17.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/lib-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"dependencies": {
"@1stg/common-config": "^2.2.0",
"@pkgr/rollup": "^1.1.4",
"jest": "^27.0.6"
"@pkgr/rollup": "^2.0.0",
"jest": "^27.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 3 additions & 1 deletion packages/lint-staged/_utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path')

const { tryFile, tryPkg } = require('@pkgr/utils')
const { isPkgAvailable, tryFile, tryPkg } = require('@pkgr/utils')

exports.tsConfig = path.relative(
process.cwd(),
Expand All @@ -9,3 +9,5 @@ exports.tsConfig = path.relative(
tryFile(path.resolve('tsconfig.json')) ||
tryPkg('@1stg/tsconfig'),
)

exports.typeCoverage = isPkgAvailable('type-coverage') && 'type-coverage'
3 changes: 2 additions & 1 deletion packages/lint-staged/ngc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { tsConfig } = require('./_utils')
const { tsConfig, typeCoverage } = require('./_utils')

module.exports = {
...require('./base'),
'*.{html,ts}': () => `ngc -p ${tsConfig} --noEmit`,
'*.ts?(x)': () => [typeCoverage].filter(Boolean),
}
2 changes: 1 addition & 1 deletion packages/lint-staged/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@1stg/prettier-config": "^1.7.4",
"@1stg/tsconfig": "^1.4.0",
"@pkgr/utils": "^1.0.1",
"@pkgr/utils": "^2.0.0",
"cross-env": "^7.0.3",
"prettier": "^2.3.2"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/lint-staged/tsc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { tsConfig } = require('./_utils')
const { tsConfig, typeCoverage } = require('./_utils')

module.exports = {
...require('./base'),
'*.ts?(x)': () => `tsc -p ${tsConfig} --noEmit`,
'*.ts?(x)': () =>
[`tsc -p ${tsConfig} --noEmit`, typeCoverage].filter(Boolean),
}
8 changes: 6 additions & 2 deletions packages/lint-staged/vue-tsc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const { tsConfig } = require('./_utils')
const { tsConfig, typeCoverage } = require('./_utils')

module.exports = {
...require('./base'),
'*.{vue,ts,tsx}': () => `vue-tsc -p ${tsConfig} --noEmit --incremental false`,
'*.{vue,ts,tsx}': () =>
[
`vue-tsc -p ${tsConfig} --noEmit --incremental false`,
typeCoverage,
].filter(Boolean),
}
4 changes: 2 additions & 2 deletions packages/markuplint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"markuplint": "^1.0.0"
},
"dependencies": {
"@markuplint/vue-parser": "^1.0.1-beta.4",
"@markuplint/vue-spec": "^1.0.1-beta.4",
"@markuplint/vue-parser": "^1.0.3-beta.1",
"@markuplint/vue-spec": "^1.0.1-beta.5",
"markuplint-angular-parser": "^0.3.4"
},
"publishConfig": {
Expand Down
13 changes: 5 additions & 8 deletions packages/postcss-config/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const DEV = 'development'
const { NODE_ENV, __DEV__, __PROD__ } = require('@pkgr/utils')

module.exports = ({
advanced,
env = process.env.NODE_ENV || DEV,
env = NODE_ENV,
import: importOptions,
modules,
normalize,
Expand All @@ -18,25 +18,22 @@ module.exports = ({
require('autoprefixer'),
]

const isDev = env === DEV
const isProd = env === 'production'

if (modules) {
plugins.push(
require('postcss-modules')({
globalModulePaths: [
/[/\\]node_modules[/\\]/,
/(\bglobals?[/\\][\w-]+|\.globals?)\.(p?css|less|s[ac]ss|styl(us)?)$/,
],
generateScopedName: isProd
generateScopedName: __PROD__
? '[hash:base64:10]'
: '[path][name]__[local]---[hash:base64:5]',
...modules,
}),
)
}

if (isProd) {
if (__PROD__) {
plugins.push(
require('cssnano')({
preset: [
Expand All @@ -53,7 +50,7 @@ module.exports = ({

return {
...options,
map: isDev,
map: __DEV__,
plugins,
}
}
9 changes: 5 additions & 4 deletions packages/postcss-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
"postcss": ">=7.0.0"
},
"dependencies": {
"autoprefixer": "^10.3.1",
"cssnano": "^5.0.6",
"cssnano-preset-advanced": "^5.1.3",
"@pkgr/utils": "^2.0.0",
"autoprefixer": "^10.3.3",
"cssnano": "^5.0.8",
"cssnano-preset-advanced": "^5.1.4",
"postcss-import": "^14.0.2",
"postcss-modules": "^4.1.3",
"postcss-modules": "^4.2.2",
"postcss-normalize": "^10.0.0",
"postcss-preset-env": "^6.7.0",
"postcss-url": "^10.1.3"
Expand Down
6 changes: 3 additions & 3 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"prettier": ">=1.18.0"
},
"dependencies": {
"@prettier/plugin-pug": "^1.16.0",
"@prettier/plugin-pug": "^1.16.5",
"@prettier/plugin-ruby": "^1.6.1",
"@prettier/plugin-xml": "^0.13.1",
"@prettier/plugin-xml": "^1.0.2",
"prettier-plugin-pkg": "^0.10.0",
"prettier-plugin-sh": "^0.7.1",
"prettier-plugin-svelte": "^2.3.1",
"prettier-plugin-svelte": "^2.4.0",
"prettier-plugin-toml": "^0.3.1"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config/base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { isAngularAvailable, isVueAvailable } = require('@pkgr/utils')

module.exports = {
extends: ['stylelint-config-standard'],
extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
plugins: [
'stylelint-high-performance-animation',
'stylelint-no-unsupported-browser-features',
Expand Down
4 changes: 1 addition & 3 deletions packages/stylelint-config/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
module.exports = {
extends: [require.resolve('./base'), 'stylelint-prettier/recommended'],
}
module.exports = require('./base')
4 changes: 2 additions & 2 deletions packages/stylelint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"stylelint": ">=13.0.0"
},
"dependencies": {
"@pkgr/utils": "^1.0.1",
"@pkgr/utils": "^2.0.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^22.0.0",
"stylelint-high-performance-animation": "^1.5.2",
"stylelint-no-unsupported-browser-features": "^5.0.1",
"stylelint-prettier": "^1.2.0",
"stylelint-scss": "^3.19.0"
"stylelint-scss": "^3.20.1"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 626afaa

Please sign in to comment.