Skip to content

Commit

Permalink
fix(deps): bump all (dev)Dependencies, migrate to @rollup/plugin-url
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 11, 2019
1 parent 8894e04 commit 8e9cc6f
Show file tree
Hide file tree
Showing 11 changed files with 1,422 additions and 1,328 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@1stg",
"rules": {
"@typescript-eslint/no-unnecessary-condition": 0,
"@typescript-eslint/unbound-method": 0
}
}
7 changes: 0 additions & 7 deletions .eslintrc.js

This file was deleted.

37 changes: 20 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"lint": "run-p lint:*",
"lint:es": "cross-env PARSER_NO_WATCH=true eslint . --cache --ext js,md,ts -f friendly",
"lint:ts": "tslint -p . -t stylish",
"postinstall": "t || exit 0",
"postinstall": "yarn-deduplicate && t || exit 0",
"pretest": "lerna run build && yarn clean",
"serve": "serve dist",
"test": "jest",
Expand All @@ -40,8 +40,8 @@
"w:dev": "ts-node -T --files packages/webpack/src/cli"
},
"devDependencies": {
"@1stg/app-config": "^0.1.15",
"@1stg/tslint-config": "^0.5.6",
"@1stg/app-config": "^0.1.16",
"@1stg/tslint-config": "^0.5.7",
"@angular/common": "^8.2.14",
"@angular/compiler": "^8.2.14",
"@angular/compiler-cli": "^8.2.14",
Expand All @@ -56,34 +56,34 @@
"@d-ts/vue": "^0.3.0",
"@d-ts/webpack-plugins": "^0.2.1",
"@types/babel__core": "^7.1.3",
"@types/case-sensitive-paths-webpack-plugin": "^2.1.3",
"@types/case-sensitive-paths-webpack-plugin": "^2.1.4",
"@types/copy-webpack-plugin": "^5.0.0",
"@types/cross-spawn": "^6.0.1",
"@types/debug": "^4.1.5",
"@types/friendly-errors-webpack-plugin": "^0.1.2",
"@types/is-glob": "^4.0.1",
"@types/jest": "^24.0.23",
"@types/lodash": "^4.14.148",
"@types/lodash": "^4.14.149",
"@types/micromatch": "^3.1.1",
"@types/mini-css-extract-plugin": "^0.8.0",
"@types/node": "^12.12.8",
"@types/node": "^12.12.17",
"@types/postcss-load-config": "^2.0.1",
"@types/prettier": "^1.18.3",
"@types/react": "^16.9.11",
"@types/prettier": "^1.19.0",
"@types/react": "^16.9.16",
"@types/react-dom": "^16.9.4",
"@types/resolve": "^0.0.8",
"@types/rollup-plugin-postcss": "^2.0.0",
"@types/rollup-plugin-url": "^2.2.0",
"@types/rollup__plugin-url": "npm:@types/rollup-plugin-url",
"@types/webpack": "^4.41.0",
"@types/webpack-dev-server": "^3.4.0",
"@types/webpack-dev-server": "^3.9.0",
"@types/webpack-env": "^1.14.1",
"@types/workbox-webpack-plugin": "^4.1.0",
"commander": "^4.0.1",
"core-js": "^3.4.1",
"core-js": "^3.4.8",
"fbjs": "^1.0.0",
"is-glob": "^4.0.1",
"jest": "^24.9.0",
"lerna": "^3.18.4",
"lerna": "^3.19.0",
"npm-run-all": "^4.1.5",
"prop-types": "^15.7.2",
"react": "^16.12.0",
Expand All @@ -93,19 +93,22 @@
"rimraf": "^3.0.0",
"rxjs": "^6.5.3",
"serve": "^11.2.0",
"svelte": "^3.14.1",
"svelte": "^3.16.3",
"tiny-glob": "^0.2.6",
"ts-jest": "^24.1.0",
"ts-node": "^8.5.2",
"ts-jest": "^24.2.0",
"ts-node": "^8.5.4",
"tslint": "^5.20.1",
"type-coverage": "^2.3.0",
"type-coverage": "^2.3.1",
"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10",
"yarn-deduplicate": "^1.1.1",
"zone.js": "^0.10.2"
},
"resolutions": {
"@babel/core": "^7.7.5",
"@babel/preset-env": "^7.7.6",
"eslint-plugin-prettier": "^3.1.1",
"rollup": "^1.27.0",
"rollup": "^1.27.9",
"typescript": "~3.5.3"
},
"commitlint": {
Expand Down
2 changes: 1 addition & 1 deletion packages/imagemin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"imagemin-optipng": "^7.1.0",
"imagemin-pngquant": "^8.0.0",
"imagemin-svgo": "^7.0.0",
"imagemin-upng": "^1.3.0",
"imagemin-upng": "^1.3.2",
"imagemin-webp": "^5.1.0",
"is-glob": "^4.0.1",
"tiny-glob": "^0.2.6",
Expand Down
8 changes: 4 additions & 4 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,30 @@
"lib"
],
"dependencies": {
"@babel/preset-env": "^7.7.1",
"@babel/preset-env": "^7.7.6",
"@pkgr/es-modules": "^0.2.1",
"@pkgr/named-exports": "^0.4.0",
"@pkgr/umd-globals": "^0.3.0",
"@pkgr/utils": "^0.3.3",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-replace": "^2.2.1",
"@rollup/plugin-url": "^4.0.0",
"@rxts/rollup-plugin-alias": "^0.1.1",
"builtin-modules": "^3.1.0",
"commander": "^4.0.1",
"debug": "^4.1.1",
"is-glob": "^4.0.1",
"jsox": "^1.1.117",
"jsox": "^1.1.121",
"lodash": "^4.17.15",
"micromatch": "^4.0.2",
"rollup": "^1.27.0",
"rollup": "^1.27.9",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-copy": "^3.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-url": "^3.0.0",
"tslib": "^1.10.0"
},
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/rollup/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
} from '@pkgr/utils'
import json from '@rollup/plugin-json'
import replace from '@rollup/plugin-replace'
import url from '@rollup/plugin-url'
import alias, { AliasOptions } from '@rxts/rollup-plugin-alias'
import builtinModules from 'builtin-modules'
import debug from 'debug'
Expand All @@ -45,7 +46,6 @@ import nodeResolve from 'rollup-plugin-node-resolve'
import postcss, { PostCssPluginOptions } from 'rollup-plugin-postcss'
import { terser } from 'rollup-plugin-terser'
import typescript, { TypeScriptOptions } from 'rollup-plugin-typescript'
import url from 'rollup-plugin-url'

const info = debug('r:info')

Expand Down Expand Up @@ -123,8 +123,8 @@ const tryRegExp = (exp: string | RegExp) => {
return exp
}

const onwarn = (warning: string | RollupWarning, warn: WarningHandler) => {
if (typeof warning !== 'string' && warning.code === 'THIS_IS_UNDEFINED') {
const onwarn = (warning: RollupWarning, warn: WarningHandler) => {
if (warning.code === 'THIS_IS_UNDEFINED') {
return
}
warn(warning)
Expand Down
1 change: 1 addition & 0 deletions packages/utils/src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function startBrowserProcess(
// tslint:disable-next-line no-try-promise
try {
const options = { app: browser, wait: false }
// eslint-disable-next-line @typescript-eslint/no-empty-function
open(url, options).catch(() => {}) // Prevent `unhandledRejection` error.
return true
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@pkgr/webpack": "^0.4.10"
},
"dependencies": {
"@ngtools/webpack": "^8.3.19"
"@ngtools/webpack": "^8.3.20"
},
"publishConfig": {
"access": "public"
Expand Down
24 changes: 12 additions & 12 deletions packages/webpack/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": ">=10.13.0"
},
"bin": {
"w": "lib/cli.js"
Expand All @@ -20,47 +20,47 @@
"dependencies": {
"@1stg/babel-preset": "^0.9.2",
"@1stg/postcss-config": "^0.4.1",
"@babel/core": "^7.7.2",
"@babel/core": "^7.7.5",
"@pkgr/es-modules": "^0.2.1",
"@pkgr/umd-globals": "^0.3.0",
"@pkgr/utils": "^0.3.3",
"babel-loader": "^8.0.6",
"cache-loader": "^4.1.0",
"case-sensitive-paths-webpack-plugin": "^2.2.0",
"commander": "^4.0.1",
"copy-webpack-plugin": "^5.0.5",
"core-js": "^3.4.1",
"css-loader": "^3.2.0",
"copy-webpack-plugin": "^5.1.0",
"core-js": "^3.4.8",
"css-loader": "^3.3.0",
"debug": "^4.1.1",
"exports-loader": "^0.7.0",
"file-loader": "^4.2.0",
"file-loader": "^5.0.2",
"friendly-errors-webpack-plugin": "^1.7.0",
"html-loader": "^0.5.5",
"html-webpack-harddisk-plugin": "^1.0.1",
"html-webpack-inline-source-plugin": "^0.0.10",
"html-webpack-plugin": "^3.2.0",
"jsox": "^1.1.117",
"jsox": "^1.1.121",
"lazy-compile-webpack-plugin": "^0.1.11",
"less": "^3.10.3",
"less-loader": "^5.0.0",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.8.0",
"postcss": "^7.0.21",
"postcss": "^7.0.24",
"postcss-load-config": "^2.1.0",
"postcss-loader": "^3.0.0",
"pug": "^2.0.4",
"pug-loader": "^2.4.0",
"pug-plain-loader": "^1.0.0",
"raw-loader": "^3.1.0",
"sass": "^1.23.6",
"raw-loader": "^4.0.0",
"sass": "^1.23.7",
"sass-loader": "^8.0.0",
"style-loader": "^1.0.0",
"style-loader": "^1.0.1",
"stylus": "^0.54.7",
"stylus-loader": "^3.0.2",
"thread-loader": "^2.1.3",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"tslib": "^1.10.0",
"url-loader": "^2.2.0",
"url-loader": "^3.0.0",
"webpack": "^4.41.2",
"webpack-dev-server": "^3.9.0",
"workbox-webpack-plugin": "^4.3.1"
Expand Down
10 changes: 5 additions & 5 deletions packages/webpack/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ ConfigOptions = {}) => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
const pkg: Record<string, string> = pkgFile ? require(pkgFile) : {}

const copyOptions = copies
.concat(tryFile(resolve(entry, '../public'), true))
.filter(identify)

const config: Configuration = {
mode: prod ? PROD : DEV,
devtool: !prod && 'cheap-module-eval-source-map',
Expand Down Expand Up @@ -381,11 +385,7 @@ ConfigOptions = {}) => {
sourceMap: !prod,
}),
new CaseSensitivePathsWebpackPlugin(),
new CopyWebpackPlugin(
copies
.concat(tryFile(resolve(entry, '../public'), true))
.filter(identify),
),
copyOptions.length && new CopyWebpackPlugin(copyOptions),
new FriendlyErrorsWebpackPlugin(),
prod &&
new GenerateSW({
Expand Down
Loading

1 comment on commit 8e9cc6f

@vercel
Copy link

@vercel vercel bot commented on 8e9cc6f Dec 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are pushing commits at a very fast pace (across the whole organization).
Due to that, we cannot deploy the commit 8e9cc6f.

You can try again later or upgrade your plan.

Please sign in to comment.