webpack-inject-plugin
Version:
A webpack plugin to dynamically inject code into the bundle.
79 lines (78 loc) • 2.2 kB
JSON
{
"name": "webpack-inject-plugin",
"version": "1.5.1",
"description": "A webpack plugin to dynamically inject code into the bundle.",
"main": "dist/main.js",
"scripts": {
"build": "tsc",
"build:watch": "tsc -- --watch",
"lint": "tslint . --format stylish",
"test": "jest",
"test:example": "cd example && webpack && npm run test:example:first && npm run test:example:second",
"test:example:first": "cd example && cat dist/main.js | grep \"console.log('hello world')\"",
"test:example:second": "cd example && cat dist/main.js | grep \"console.log('second injected code')\"",
"test:watch": "npm run test -- --watch",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
"release": "auto shipit -v"
},
"repository": {
"type": "git",
"url": "git+https://github.com/adierkens/webpack-inject-plugin.git"
},
"keywords": [
"webpack",
"plugin",
"loader",
"inject"
],
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"author": "Adam Dierkens <adam@dierkens.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/adierkens/webpack-inject-plugin/issues"
},
"homepage": "https://github.com/adierkens/webpack-inject-plugin#readme",
"peerDependencies": {
"webpack": ">=4.0.0"
},
"dependencies": {
"@types/loader-utils": "^1.1.3",
"@types/webpack": "^4.4.17",
"loader-utils": "~1.2.3"
},
"devDependencies": {
"@types/jest": "^23.3.5",
"all-contributors-cli": "^5.4.0",
"auto": "^4.8.14",
"husky": "^1.1.2",
"jest": "^24.7.1",
"lint-staged": "^7.3.0",
"prettier": "^1.14.3",
"ts-jest": "^23.10.4",
"ts-lint": "^4.5.1",
"tslint": "~5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-xo": "^0.9.0",
"tsutils": "~3.1.0",
"typescript": "^3.1.3",
"webpack": "~4.21.0",
"webpack-cli": "~3.1.2"
},
"lint-staged": {
"*.{js,json,css,md}": [
"prettier --write",
"git add"
],
"*.{ts,tsx}": [
"prettier --parser typescript --write",
"npm run lint",
"git add"
]
},
"prettier": {
"singleQuote": true
}
}