451-tools
Version:
Censorship resilient and distributed publishing: informed by the needs of publishers and their audiences, More Mirrors implements a set of offline fallback strategies for censorship resilient websites.
65 lines (64 loc) • 2.56 kB
JSON
{
"name": "451-tools",
"version": "2.1.2",
"description": "Censorship resilient and distributed publishing: informed by the needs of publishers and their audiences, More Mirrors implements a set of offline fallback strategies for censorship resilient websites.",
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist"
],
"scripts": {
"clean": "rm -rf dist/*",
"prebuild": "npm run clean",
"build": "npm-run-all build:* && vite build",
"build:html": "html-minifier src/fallback-pages/offline-page/index.html > src/fallback-pages/offline-page/index.min.html --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype",
"build:css": "cleancss src/fallback-pages/offline-page/main.css > src/fallback-pages/offline-page/main.min.css",
"build:js": "terser src/fallback-pages/offline-page/main.js > src/fallback-pages/offline-page/main.min.js",
"build:ui-components": "cpy 'src/ui-components/**/*' dist/ui-components/",
"build:generate-types": "tsc",
"watch": "run-p watch:*",
"watch:vite": "vite build --watch",
"watch:html": "chokidar 'src/fallback-pages/offline-page/index.html' --command 'npm run build:html'",
"watch:css": "chokidar 'src/fallback-pages/offline-page/main.css' --command 'npm run build:css'",
"watch:js": "chokidar 'src/fallback-pages/offline-page/main.js' --command 'npm run build:js'",
"watch:ui-components": "chokidar 'src/ui-components/**/*.*' --command 'npm run build:ui-components'",
"watch:generate-types": "tsc --watch",
"predev": "npm run clean",
"dev": "npm-run-all build:* && npm run watch",
"release": "npm run build && changeset publish"
},
"dependencies": {
"workbox-expiration": "^7.1.0",
"workbox-precaching": "^7.0.0",
"workbox-recipes": "^7.0.0",
"workbox-routing": "^7.0.0",
"workbox-strategies": "^7.0.0"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"chokidar-cli": "^3.0.0",
"clean-css-cli": "^5.6.3",
"cpy-cli": "^5.0.0",
"eslint": "^8.57.0",
"html-minifier": "^4.0.0",
"npm-run-all": "^4.1.5",
"terser": "^5.29.1",
"typescript": "^5.3.3",
"vite": "^5.4.3",
"vite-plugin-eslint": "^1.8.1"
},
"engines": {
"node": ">=18"
},
"author": "Zamaneh Media",
"keywords": [
"service workers",
"PWA",
"offline fallback",
"mirroring",
"censorship"
]
}