Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generated assets to main compiler #59

Merged
merged 10 commits into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,5 @@ dist
.tern-port

# Other temporary files
tmp/
tmp/
.DS_Store
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"format": "prettier -w src test",
"lint": "eslint src test",
"test": "c8 --reporter=text --reporter=html tap --reporter=spec --no-coverage test/*.test.js && npm run test:types",
"test:index": "c8 --reporter=text --reporter=html tap --reporter=spec --no-coverage test/index.test.js && npm run test:types",
"test:dev": "c8 --reporter=text --reporter=html tap --reporter=spec --no-coverage test/development-mode.test.js && npm run test:types",
"test:cache": "c8 --reporter=text --reporter=html tap --reporter=spec --no-coverage test/cached-build.test.js && npm run test:types",
"test:explicit": "c8 --reporter=text --reporter=html tap --reporter=spec --no-coverage test/explicit-import.test.js && npm run test:types",
"test:clean": "c8 --reporter=text --reporter=html tap --reporter=spec --no-coverage test/clean-plugin.test.js && npm run test:types",
"test:watch": "tap --watch --reporter=spec --no-browser --coverage-report=text --coverage-report=html test/*.test.js",
"test:ci": "c8 --reporter=text --reporter=json --check-coverage --branches 90 --functions 90 --lines 90 --statements 90 tap --no-color --no-coverage test/*.test.js && npm run test:types",
"test:types": "tsd",
Expand All @@ -35,10 +40,12 @@
"postpublish": "git push origin && git push origin -f --tags"
},
"dependencies": {
"memfs": "^3.4.12",
"webpack": "^5.61.0"
},
"devDependencies": {
"c8": "^7.10.0",
"clean-webpack-plugin": "^4.0.0",
"eslint": "^7.12.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.25.2",
Expand Down
12 changes: 6 additions & 6 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Compiler, WebpackPluginInstance } from 'webpack';
import { Compiler, WebpackPluginInstance } from 'webpack'

export const banner: string;
export const footer: string;
export const banner: string
export const footer: string

export class PinoWebpackPlugin implements WebpackPluginInstance {
constructor(options: {transports: string[]});
[index: string]: any;
apply: (compiler: Compiler) => void;
constructor(options: { transports: string[] })
[index: string]: any
apply: (compiler: Compiler) => void
}
Loading