docpad-plugin-assets
Version:
DocPad plugin to change URL of asset files to contain hash of contents, allowing for effective caching whilst enabling cache busting when contents change
141 lines (140 loc) • 4.87 kB
JSON
{
"title": "Assets Plugin for DocPad",
"name": "docpad-plugin-assets",
"version": "3.1.0",
"description": "DocPad plugin to change URL of asset files to contain hash of contents, allowing for effective caching whilst enabling cache busting when contents change",
"homepage": "https://github.com/docpad/docpad-plugin-assets",
"license": "MIT",
"keywords": [
"assets",
"cache",
"cache-busting",
"cachebusting",
"coffeescript",
"docpad",
"docpad-plugin",
"esnext",
"node"
],
"badges": {
"list": [
"travisci",
"npmversion",
"npmdownloads",
"daviddm",
"daviddmdev",
"---",
"githubsponsors",
"patreon",
"flattr",
"liberapay",
"buymeacoffee",
"opencollective",
"crypto",
"paypal",
"wishlist"
],
"config": {
"githubSponsorsUsername": "balupton",
"buymeacoffeeUsername": "balupton",
"cryptoURL": "https://bevry.me/crypto",
"flattrUsername": "balupton",
"liberapayUsername": "bevry",
"opencollectiveUsername": "bevry",
"patreonUsername": "bevry",
"paypalURL": "https://bevry.me/paypal",
"wishlistURL": "https://bevry.me/wishlist",
"travisTLD": "com",
"githubUsername": "docpad",
"githubRepository": "docpad-plugin-assets",
"githubSlug": "docpad/docpad-plugin-assets",
"npmPackageName": "docpad-plugin-assets"
}
},
"funding": "https://bevry.me/fund",
"author": "2013+ Jim McDonald <Jim@mcdee.net> (https://github.com/mcdee)",
"maintainers": [
"Jim McDonald <Jim@mcdee.net> (https://github.com/mcdee)"
],
"contributors": [
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)",
"Jim McDonald <Jim@mcdee.net> (https://github.com/mcdee)"
],
"bugs": {
"url": "https://github.com/docpad/docpad-plugin-assets/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/docpad/docpad-plugin-assets.git"
},
"engines": {
"node": ">=10"
},
"editions": [
{
"description": "CoffeeScript source code with Require for modules",
"directory": "source",
"entry": "index.coffee",
"tags": [
"source",
"coffeescript",
"require"
],
"engines": false
},
{
"description": "CoffeeScript compiled for Node.js with Require for modules",
"directory": "edition-esnext",
"entry": "index.js",
"tags": [
"compiled",
"javascript",
"esnext",
"require"
],
"engines": {
"node": "10 || 12 || 14 || 15"
}
}
],
"type": "commonjs",
"main": "edition-esnext/index.js",
"dependencies": {
"docpad-baseplugin": "^1.4.0"
},
"devDependencies": {
"@bevry/update-contributors": "^1.18.0",
"coffeelint": "^2.1.0",
"coffeescript": "^2.5.1",
"docpad": "^6.83.2",
"docpad-plugintester": "^1.7.3",
"projectz": "^2.17.0",
"valid-directory": "^3.5.0"
},
"peerDependencies": {
"docpad": "^6.83.2"
},
"scripts": {
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:edition-esnext",
"our:compile:edition-esnext": "coffee -bco ./edition-esnext ./source && echo '{\"type\": \"commonjs\"}' > edition-esnext/package.json",
"our:deploy": "echo no need for this project",
"our:meta": "npm run our:meta:contributors && npm run our:meta:projectz",
"our:meta:contributors": "update-contributors",
"our:meta:projectz": "projectz compile",
"our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",
"our:release:check-changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)",
"our:release:check-dirty": "git diff --exit-code",
"our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
"our:release:push": "git push origin master && git push origin --tags",
"our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"",
"our:setup": "npm run our:setup:dpt && npm run our:setup:install",
"our:setup:dpt": "cd test && npm install && cd ..",
"our:setup:install": "npm install",
"our:test": "npm run our:verify && npm test",
"our:verify": "npm run our:verify:coffeelint && npm run our:verify:directory",
"our:verify:coffeelint": "coffeelint ./source",
"our:verify:directory": "valid-directory",
"test": "docpad-plugintester"
}
}