Skip to content

Commit

Permalink
feat: bump all (dev)Dependencies (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jun 4, 2021
1 parent c5b32dc commit e952854
Show file tree
Hide file tree
Showing 39 changed files with 2,371 additions and 4,456 deletions.
12 changes: 12 additions & 0 deletions .changeset/old-pumas-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@pkgr/es-modules": patch
"@pkgr/imagemin": major
"@pkgr/rollup": major
"@pkgr/umd-globals": patch
"@pkgr/utils": major
"@pkgr/webpack-angular": major
"@pkgr/webpack-vue": patch
"@pkgr/webpack": major
---

feat: bump all (dev)Dependencies
7 changes: 1 addition & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": "@1stg",
"rules": {
"@typescript-eslint/no-unnecessary-condition": 0,
"@typescript-eslint/unbound-method": 0,
"unicorn/no-fn-reference-in-iterator": 0
}
"extends": "@1stg"
}
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
strategy:
matrix:
node:
- 10
- 12
- 14
- 16
Expand Down
4 changes: 4 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.type-coverage
coverage
dist
node_modules
3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@1stg/stylelint-config/scss"
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org)
[![codechecks.io](https://raw.githubusercontent.com/codechecks/docs/master/images/badges/badge-default.svg?sanitize=true)](https://codechecks.io)
[![changesets](https://img.shields.io/badge/maintained%20with-changesets-176de3.svg)](https://github.com/atlassian/changesets)

> Simple but incredible utilities for package bundlers like rollup, webpack.
Expand Down
12 changes: 0 additions & 12 deletions codechecks.yml

This file was deleted.

31 changes: 0 additions & 31 deletions lerna.json

This file was deleted.

65 changes: 30 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"workspaces": [
"packages/*"
],
"engines": {
"node": ">=10.0.0"
},
"scripts": {
"build": "run-s build:ts build:r build:w",
"build:r": "ts-node --files packages/rollup/src/cli -d false --exclude webpack-* -p",
Expand All @@ -29,9 +26,10 @@
"dev:svelte": "yarn w:dev -e src/svelte -t svelte",
"dev:vue": "yarn w:dev -e src/vue -t vue",
"lint": "run-p lint:*",
"lint:es": "cross-env PARSER_NO_WATCH=true eslint . --cache --ext js,md,ts -f friendly",
"lint:es": "eslint . --cache -f friendly",
"lint:style": "stylelint --cache './**/*.{html,js,scss,ts,vue}'",
"lint:ts": "tslint -p . -t stylish",
"lint:tsc": "tsc",
"lint:tsc": "tsc --noEmit",
"postinstall": "simple-git-hooks && yarn-deduplicate --strategy fewer && t || exit 0",
"pretest": "yarn clean",
"release": "changeset publish",
Expand All @@ -42,16 +40,16 @@
"w:dev": "ts-node -T --files packages/webpack/src/cli"
},
"devDependencies": {
"@1stg/app-config": "^1.5.3",
"@1stg/lib-config": "^1.2.11",
"@1stg/tslint-config": "^1.2.0",
"@angular/common": "^11.2.14",
"@angular/compiler": "^11.2.14",
"@angular/compiler-cli": "^11.2.14",
"@angular/core": "^11.2.14",
"@angular/platform-browser": "^11.2.14",
"@angular/platform-browser-dynamic": "^11.2.14",
"@babel/types": "^7.13.14",
"@1stg/app-config": "^2.1.0",
"@1stg/lib-config": "^2.1.0",
"@1stg/tslint-config": "^2.0.0",
"@angular/common": "^12.0.3",
"@angular/compiler": "^12.0.3",
"@angular/compiler-cli": "^12.0.3",
"@angular/core": "^12.0.3",
"@angular/platform-browser": "^12.0.3",
"@angular/platform-browser-dynamic": "^12.0.3",
"@babel/types": "^7.14.4",
"@changesets/changelog-github": "^0.4.0",
"@changesets/cli": "^2.16.0",
"@d-ts/bin": "^1.0.0",
Expand All @@ -62,7 +60,7 @@
"@d-ts/webpack-plugins": "^1.0.0",
"@types/babel__core": "^7.1.14",
"@types/case-sensitive-paths-webpack-plugin": "^2.1.5",
"@types/copy-webpack-plugin": "^6.4.2",
"@types/copy-webpack-plugin": "^8.0.0",
"@types/cross-spawn": "^6.0.2",
"@types/debug": "^4.1.5",
"@types/friendly-errors-webpack-plugin": "^0.1.3",
Expand All @@ -71,39 +69,36 @@
"@types/jest": "^26.0.23",
"@types/lodash": "^4.14.170",
"@types/micromatch": "^4.0.1",
"@types/mini-css-extract-plugin": "^1.4.2",
"@types/node": "^14.14.41",
"@types/postcss-load-config": "^2.0.1",
"@types/mini-css-extract-plugin": "^1.4.3",
"@types/node": "^15.9.0",
"@types/postcss-load-config": "^3.0.1",
"@types/prettier": "^2.2.3",
"@types/react": "^17.0.9",
"@types/react-dom": "^17.0.3",
"@types/react-dom": "^17.0.6",
"@types/resolve": "^1.20.0",
"@types/webpack-dev-server": "^3.11.3",
"@types/webpack-dev-server": "^3.11.4",
"@types/webpack-env": "^1.16.0",
"@types/workbox-webpack-plugin": "^5.1.6",
"core-js": "^3.10.2",
"lerna": "^4.0.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.2.10",
"core-js": "^3.13.1",
"postcss": "^8.3.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^6.6.7",
"rxjs": "^7.1.0",
"serve": "^11.3.2",
"svelte": "^3.37.0",
"ts-jest": "^26.5.5",
"ts-node": "^9.1.1",
"svelte": "^3.38.2",
"ts-jest": "^27.0.2",
"ts-node": "^9.0.0",
"tslint": "^6.1.3",
"type-coverage": "^2.17.2",
"typescript": "^4.2.4",
"vue": "^2.6.12",
"vue-template-compiler": "^2.6.12",
"yarn-deduplicate": "^3.1.0",
"type-coverage": "^2.17.5",
"typescript": "^4.3.2",
"vue": "^2.6.13",
"vue-template-compiler": "^2.6.13",
"zone.js": "^0.11.4"
},
"resolutions": {
"rollup": "^2.45.2"
"prettier": "^2.3.0"
},
"commitlint": {
"extends": [
Expand Down
3 changes: 1 addition & 2 deletions packages/es-modules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export type ModuleDefinition =
exact?: boolean
}

// eslint-disable-next-line @typescript-eslint/no-type-alias
export type ModuleDefinitions = Record<string, ModuleDefinition>

export const MODULE_DEFINITIONS: ModuleDefinitions = {
Expand All @@ -28,7 +27,7 @@ const defEntries = Object.entries(MODULE_DEFINITIONS)
*/
export const entries = defEntries.reduce<
Array<{
find: string | RegExp
find: RegExp | string
replacement: string
}>
>((acc, [module, definition]) => {
Expand Down
6 changes: 3 additions & 3 deletions packages/imagemin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "JounQin <admin@1stg.me>",
"license": "MIT",
"engines": {
"node": ">=8.0.0"
"node": ">=12"
},
"bin": {
"i": "lib/cli.js"
Expand All @@ -21,7 +21,7 @@
"lib"
],
"dependencies": {
"imagemin": "^7.0.1",
"imagemin": "^8.0.0",
"imagemin-gifsicle": "^7.0.0",
"imagemin-jpegtran": "^7.0.0",
"imagemin-mozjpeg": "^9.0.0",
Expand All @@ -31,7 +31,7 @@
"imagemin-upng": "^2.0.2",
"imagemin-webp": "^6.0.0",
"is-glob": "^4.0.1",
"tiny-glob": "^0.2.6",
"tiny-glob": "^0.2.9",
"tslib": "^2.2.0"
},
"publishConfig": {
Expand Down
98 changes: 50 additions & 48 deletions packages/imagemin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,54 +1,56 @@
import fs from 'fs'

const plugins = ([
const plugins = (
[
'gifsicle',
{
interlaced: true,
},
],
[
'jpegtran',
{
progressive: true,
},
],
['mozjpeg'],
[
'optipng',
{
optimizationLevel: 5,
},
],
[
'pngquant',
{
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
quality: [0.6, 0.8],
},
],
['upng'],
[
'svgo',
{
plugins: [
{
removeViewBox: false,
},
],
},
],
[
'webp',
{
plugins: [
{
removeViewBox: false,
},
],
},
],
] as const).map(
[
'gifsicle',
{
interlaced: true,
},
],
[
'jpegtran',
{
progressive: true,
},
],
['mozjpeg'],
[
'optipng',
{
optimizationLevel: 5,
},
],
[
'pngquant',
{
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
quality: [0.6, 0.8],
},
],
['upng'],
[
'svgo',
{
plugins: [
{
removeViewBox: false,
},
],
},
],
[
'webp',
{
plugins: [
{
removeViewBox: false,
},
],
},
],
] as const
).map(
([name, opts]) =>
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-var-requires
require(`imagemin-${name}`)(opts) as import('imagemin').Plugin,
Expand Down
2 changes: 1 addition & 1 deletion packages/imagemin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@1stg/tsconfig/node",
"extends": "../../tsconfig.base",
"compilerOptions": {
"composite": true,
"rootDir": "src",
Expand Down
Loading

0 comments on commit e952854

Please sign in to comment.