Skip to content

Commit

Permalink
feat(rollup-plugins): remove unnecessary rollup-plugin-copy definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jan 27, 2020
1 parent 50cffba commit f23aac3
Show file tree
Hide file tree
Showing 5 changed files with 3,392 additions and 3,082 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.log
*.tsbuildinfo
.*cache
.changelog
.type-coverage
lib
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install: yarn --frozen-lockfile
script:
- yarn build
- yarn lint
- yarn test
# - yarn test
- yarn type-coverage

before_deploy:
Expand Down
35 changes: 21 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,35 @@
],
"scripts": {
"build": "run-p build:*",
"build:bundle": "r",
"build:r": "r",
"build:ts": "tsc -b",
"lint": "run-p lint:*",
"lint:es": "cross-env PARSER_NO_WATCH=true eslint . --ext js,md,mdx,ts,tsx -f friendly",
"lint:es": "cross-env PARSER_NO_WATCH=true eslint . --cache --ext js,md,mdx,ts,tsx -f friendly",
"lint:ts": "tslint -p . -t stylish",
"lint:tsc": "tsc --incremental false --noEmit",
"postinstall": "t || exit 0",
"postinstall": "yarn-deduplicate && t || exit 0",
"test": "ts-node scripts/dtslint",
"type-coverage": "type-coverage --cache --ignore-catch --detail --strict"
"type-coverage": "type-coverage --cache --detail --ignore-catch --strict"
},
"devDependencies": {
"@1stg/lib-config": "^0.1.12",
"@1stg/tslint-config": "^0.5.5",
"@types/node": "^12.12.6",
"dtslint": "^2.0.0",
"lerna": "^3.18.4",
"@1stg/lib-config": "^0.1.20",
"@1stg/tslint-config": "^0.5.9",
"@types/node": "^13.5.0",
"dtslint": "^2.0.5",
"lerna": "^3.20.2",
"npm-run-all": "^4.1.5",
"ts-node": "^8.4.1",
"tslint": "^5.20.1",
"type-coverage": "^2.3.0",
"typescript": "^3.7.2",
"vue": "^2.6.10"
"ts-node": "^8.6.2",
"tslint": "^6.0.0",
"type-coverage": "^2.4.0",
"vue": "^2.6.11",
"yarn-deduplicate": "^1.1.1"
},
"resolutions": {
"@babel/code-frame": "^7.8.3",
"@babel/core": "^7.8.3",
"@babel/helper-plugin-utils": "^7.8.3",
"eslint-plugin-prettier": "^3.1.2",
"typescript": "^3.7.5"
},
"commitlint": {
"extends": [
Expand Down
25 changes: 0 additions & 25 deletions packages/rollup-plugins/shim.d.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,4 @@
// tslint:disable: ordered-imports
declare module 'rollup-plugin-copy' {
import { Plugin } from 'rollup'

namespace copy {
interface CopyOptions {
targets?: Array<{
src: string | string[]
dest: string | string[]
rename?: string | ((name: string, extension: string) => string)
}>
verbose?: boolean
hook?: string
copyOnce?: string
}

interface Copy extends Plugin {
(options: CopyOptions): Plugin
}
}

const copy: copy.Copy

export = copy
}

declare module 'rollup-plugin-babel' {
import { TransformOptions } from '@babel/core'
import { Plugin, WatcherOptions } from 'rollup'
Expand Down
Loading

0 comments on commit f23aac3

Please sign in to comment.