vite-plugin-csp
Version:
Create CSP meta tags and header configs from all sources in the final Vite html
165 lines (164 loc) • 4.84 kB
JSON
{
"name": "vite-plugin-csp",
"version": "1.1.2",
"description": "Create CSP meta tags and header configs from all sources in the final Vite html",
"type": "module",
"scripts": {
"dev": "npm run build -- --watch",
"prebuild": "cp node_modules/csp-typed-directives/dist/index.d.ts ./src/csp-typed-directives.d.ts",
"build": "tsup src/index.ts --sourcemap --dts --minify --format cjs,esm",
"log": "conventional-changelog -p angular -i CHANGELOG.md -s",
"lint": "run-s lint:*",
"lint:typescript": "eslint src --ext .ts --fix",
"lint:markdown": "markdownlint-cli2-fix \"**/*.md\" \"#node_modules\" \"#CHANGELOG.md\"",
"test": "run-s test:*",
"test:lint": "eslint src --ext .ts",
"test:markdown": "markdownlint-cli2 \"**/*.md\" \"#node_modules\" \"#CHANGELOG.md\"",
"test:spelling": "cspell --config ./cSpell.json \"{README.md,.github/*.md,src/**/*.ts,docs/**/*.md}\"",
"test:unit": "jest -c config/jest.config.cjs -b --forceExit --coverage --runInBand",
"watch:test": "jest -c config/jest.config.cjs -b --forceExit --runInBand --watch",
"debug-test-open-handles": "jest -c config/jest.config.cjs -b --forceExit --coverage --runInBand --detectOpenHandles",
"cov:send": "run-s build test && codecov",
"doc": "run-s doc:html && open-cli build/docs/index.html",
"doc:html": "typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --out build/docs",
"doc:json": "typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --json build/docs/typedoc.json",
"reset-hard": "git clean -dfx && git reset --hard && npm i",
"prepare-release": "run-s reset-hard test doc:html version doc:publish",
"ci:validate": "rm -rf node_modules && npm ci && npm run test",
"prepublishOnly": "run-s pinst:disable ci:validate build",
"semantic-release": "semantic-release",
"install:husky": "is-ci || husky install",
"pinst:disable": "pinst --disable",
"postpublish": "pinst --enable"
},
"repository": {
"type": "git",
"url": "git+https://github.com/josh-hemphill/vite-plugin-csp.git"
},
"keywords": [
"vite-plugin",
"CSP",
"CSPs",
"header",
"security",
"generate"
],
"maintainers": [
{
"name": "Joshua Hemphill",
"email": "dev@joshuahemphill.com",
"url": "https://joshuahemphill.com"
}
],
"author": {
"name": "Joshua Hemphill",
"email": "dev@joshuahemphill.com",
"url": "https://joshuahemphill.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/josh-hemphill/vite-plugin-csp/issues"
},
"homepage": "https://github.com/josh-hemphill/vite-plugin-csp#readme",
"files": [
"dist",
"mod.ts",
"CHANGELOG.md",
"LICENSE",
"SECURITY.md",
"README.md"
],
"main": "dist/index.cjs",
"module": "dist/index.js",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"types": "dist/index.d.ts",
"typings": "dist/index.d.ts",
"peerDependencies": {
"vite": ">=2.6.5"
},
"devDependencies": {
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^9.0.1",
"@types/css-tree": "^1.0.7",
"@types/jest": "^27.5.1",
"@types/mock-fs": "^4.13.1",
"@types/node": "^17.0.35",
"@types/parse5": "^6.0.3",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"codecov": "^3.8.3",
"commitizen": "^4.2.4",
"conventional-changelog-cli": "^2.2.2",
"cspell": "^5.21.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.15.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.2.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"gh-pages": "^4.0.0",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": "^12.4.1",
"markdownlint-cli2": "^0.4.0",
"mock-fs": "^5.1.2",
"npm-run-all": "^4.1.5",
"open-cli": "^7.0.1",
"pinst": "^3.0.0",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
"semantic-release": "^19.0.2",
"semantic-release-license": "^1.0.3",
"ts-jest": "^28.0.2",
"ts-node": "^10.7.0",
"tsup": "^5.12.8",
"typedoc": "^0.22.15",
"typescript": "^4.6.4",
"vite": "^2.9.9"
},
"dependencies": {
"@rollup/pluginutils": "^4.2.1",
"cheerio": "^1.0.0-rc.10",
"csp-typed-directives": "^1.1.9",
"css-tree": "^2.1.0"
},
"publishConfig": {
"access": "public"
},
"release": {
"extends": "./config/.releaserc.json"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test"
}
},
"eslintConfig": {
"extends": "./config/.eslintrc.json"
},
"lint-staged": {
"*.js": [
"eslint --cache --fix",
"git add ."
]
},
"prettier": {
"useTabs": true,
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
}