2018-01-07 00:51:25 +01:00
|
|
|
{
|
2018-03-12 04:37:24 +01:00
|
|
|
"name": "pinafore",
|
|
|
|
"description": "Alternative web client for Mastodon",
|
2018-05-14 05:19:25 +02:00
|
|
|
"version": "0.5.0",
|
2018-01-07 00:51:25 +01:00
|
|
|
"scripts": {
|
2018-04-20 06:38:01 +02:00
|
|
|
"lint": "standard && standard --plugin html 'routes/**/*.html'",
|
2018-04-28 23:19:39 +02:00
|
|
|
"lint-fix": "standard --fix && standard --fix --plugin html 'routes/**/*.html'",
|
2018-04-15 00:50:16 +02:00
|
|
|
"dev": "run-s build-svg build-inline-script serve-dev",
|
2018-03-29 03:16:42 +02:00
|
|
|
"serve-dev": "run-p --race build-sass-watch serve",
|
2018-02-18 21:03:37 +01:00
|
|
|
"serve": "node server.js",
|
2018-05-26 22:51:41 +02:00
|
|
|
"build": "cross-env NODE_ENV=production npm run build-steps",
|
|
|
|
"build-steps": "run-s globalize-css build-sass build-svg build-inline-script sapper-build deglobalize-css",
|
|
|
|
"sapper-build": "sapper build",
|
|
|
|
"start": "cross-env NODE_ENV=production npm run serve",
|
2018-02-19 02:28:08 +01:00
|
|
|
"build-and-start": "run-s build start",
|
2018-01-27 21:48:22 +01:00
|
|
|
"build-svg": "node ./bin/build-svg.js",
|
2018-04-15 00:50:16 +02:00
|
|
|
"build-inline-script": "node ./bin/build-inline-script.js",
|
2018-01-27 21:48:22 +01:00
|
|
|
"build-sass": "node ./bin/build-sass.js",
|
|
|
|
"build-sass-watch": "node ./bin/build-sass.js --watch",
|
2018-05-25 05:07:43 +02:00
|
|
|
"run-mastodon": "node -r esm ./bin/run-mastodon.js",
|
2018-02-20 03:36:54 +01:00
|
|
|
"test": "cross-env BROWSER=chrome:headless npm run test-browser",
|
2018-05-26 22:51:41 +02:00
|
|
|
"test-browser": "run-p --race run-mastodon build-and-start test-mastodon",
|
|
|
|
"test-mastodon": "run-s wait-for-mastodon-to-start wait-for-mastodon-data testcafe",
|
2018-05-27 18:27:29 +02:00
|
|
|
"test-browser-suite0": "run-p --race run-mastodon build-and-start test-mastodon-suite0",
|
|
|
|
"test-mastodon-suite0": "run-s wait-for-mastodon-to-start wait-for-mastodon-data testcafe-suite0",
|
|
|
|
"test-browser-suite1": "run-p --race run-mastodon build-and-start test-mastodon-suite1",
|
|
|
|
"test-mastodon-suite1": "run-s wait-for-mastodon-to-start wait-for-mastodon-data testcafe-suite1",
|
|
|
|
"testcafe": "run-s testcafe-suite0 testcafe-suite1",
|
|
|
|
"testcafe-suite0": "cross-env-shell testcafe --hostname localhost --skip-js-errors -c 4 $BROWSER tests/spec/0*",
|
|
|
|
"testcafe-suite1": "cross-env-shell testcafe --hostname localhost --skip-js-errors $BROWSER tests/spec/1*",
|
2018-03-29 03:22:30 +02:00
|
|
|
"wait-for-mastodon-to-start": "node -r esm bin/wait-for-mastodon-to-start.js",
|
|
|
|
"wait-for-mastodon-data": "node -r esm bin/wait-for-mastodon-data.js",
|
2018-01-20 21:35:38 +01:00
|
|
|
"globalize-css": "node ./bin/globalize-css.js",
|
2018-02-18 23:31:28 +01:00
|
|
|
"deglobalize-css": "node ./bin/globalize-css.js --reverse",
|
2018-04-05 03:33:08 +02:00
|
|
|
"stage-dev": "printf 'User-agent: *\nDisallow: /' > assets/robots.txt",
|
|
|
|
"stage-prod": "rm -f assets/robots.txt",
|
2018-04-27 05:21:45 +02:00
|
|
|
"launch": "now -e SAPPER_TIMESTAMP=$(date +%s%3N) --team nolanlawson && sleep 60",
|
|
|
|
"launch-travis": "now -e SAPPER_TIMESTAMP=$(date +%s%3N) --team nolanlawson --token $NOW_TOKEN && sleep 60",
|
|
|
|
"alias-prod": "now alias pinafore.social --team nolanlawson",
|
|
|
|
"alias-dev": "now alias dev.pinafore.social --team nolanlawson",
|
|
|
|
"alias-dev-travis": "now alias dev.pinafore.social --team nolanlawson --token $NOW_TOKEN",
|
|
|
|
"cleanup": "now rm pinafore --safe --yes --team nolanlawson",
|
|
|
|
"cleanup-travis": "now rm pinafore --safe --yes --team nolanlawson --token $NOW_TOKEN",
|
|
|
|
"deploy-prod": "run-s stage-prod launch alias-prod cleanup",
|
|
|
|
"deploy-dev": "run-s stage-dev launch alias-dev cleanup",
|
|
|
|
"deploy-dev-travis": "if [ $TRAVIS_BRANCH = master -a $TRAVIS_PULL_REQUEST = false ]; then run-s stage-dev launch-travis alias-dev-travis cleanup-travis; fi",
|
2018-02-18 23:38:10 +01:00
|
|
|
"backup-mastodon-data": "pg_dump -Fc mastodon_development > fixtures/dump.sql && cd mastodon/public/system && tar -czf ../../../fixtures/system.tgz ."
|
2018-01-07 00:51:25 +01:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-04-19 05:43:13 +02:00
|
|
|
"@gamestdio/websocket": "0.2.5",
|
|
|
|
"a11y-dialog": "4.0.1",
|
|
|
|
"cheerio": "1.0.0-rc.2",
|
|
|
|
"child-process-promise": "2.2.1",
|
|
|
|
"chokidar": "2.0.3",
|
2018-05-24 00:28:19 +02:00
|
|
|
"cross-env": "5.1.6",
|
2018-04-19 05:43:13 +02:00
|
|
|
"css-loader": "0.28.11",
|
|
|
|
"escape-html": "1.0.3",
|
2018-05-27 01:18:05 +02:00
|
|
|
"esm": "3.0.38",
|
2018-05-27 01:16:13 +02:00
|
|
|
"events": "2.1.0",
|
2018-04-19 05:43:13 +02:00
|
|
|
"express": "4.16.3",
|
|
|
|
"fg-loadcss": "2.0.1",
|
|
|
|
"file-api": "0.10.4",
|
|
|
|
"font-awesome-svg-png": "1.2.2",
|
|
|
|
"form-data": "2.3.2",
|
|
|
|
"glob": "7.1.2",
|
2018-05-17 17:27:58 +02:00
|
|
|
"helmet": "3.12.1",
|
2018-04-19 05:43:13 +02:00
|
|
|
"indexeddb-getall-shim": "1.3.3",
|
|
|
|
"intersection-observer": "0.5.0",
|
2018-04-26 05:29:01 +02:00
|
|
|
"lodash-es": "4.17.10",
|
2018-04-19 05:43:13 +02:00
|
|
|
"lodash-webpack-plugin": "0.11.5",
|
|
|
|
"mini-css-extract-plugin": "0.4.0",
|
|
|
|
"mkdirp": "0.5.1",
|
|
|
|
"node-fetch": "2.1.2",
|
2018-04-26 18:40:14 +02:00
|
|
|
"node-sass": "4.9.0",
|
2018-05-07 01:25:54 +02:00
|
|
|
"npm-run-all": "4.1.3",
|
2018-05-28 17:26:42 +02:00
|
|
|
"optimize-css-assets-webpack-plugin": "4.0.2",
|
2018-04-19 05:43:13 +02:00
|
|
|
"p-any": "1.1.0",
|
|
|
|
"performance-now": "2.1.0",
|
|
|
|
"pify": "3.0.0",
|
|
|
|
"quick-lru": "1.1.0",
|
|
|
|
"requestidlecallback": "0.3.0",
|
2018-04-28 21:10:50 +02:00
|
|
|
"sapper": "github:nolanlawson/sapper#for-pinafore-7",
|
2018-04-19 05:43:13 +02:00
|
|
|
"serve-static": "1.13.2",
|
2018-04-21 16:06:08 +02:00
|
|
|
"shrink-ray-current": "2.1.0",
|
2018-04-19 05:43:13 +02:00
|
|
|
"stringz": "1.0.0",
|
|
|
|
"style-loader": "0.21.0",
|
2018-05-27 01:16:24 +02:00
|
|
|
"svelte": "2.6.6",
|
2018-04-19 19:20:52 +02:00
|
|
|
"svelte-extras": "2.0.2",
|
2018-05-25 03:17:54 +02:00
|
|
|
"svelte-loader": "2.9.1",
|
2018-05-17 17:28:13 +02:00
|
|
|
"svelte-transitions": "1.2.0",
|
2018-04-19 05:43:13 +02:00
|
|
|
"svgo": "1.0.5",
|
|
|
|
"timeago.js": "3.0.2",
|
|
|
|
"tiny-queue": "0.2.1",
|
|
|
|
"uglifyjs-webpack-plugin": "1.2.5",
|
|
|
|
"web-animations-js": "2.3.1",
|
2018-05-26 18:18:52 +02:00
|
|
|
"webpack": "4.9.1",
|
2018-05-24 00:28:29 +02:00
|
|
|
"webpack-bundle-analyzer": "2.13.1",
|
2018-04-19 05:43:13 +02:00
|
|
|
"yargs": "11.0.0"
|
2018-01-07 00:51:25 +01:00
|
|
|
},
|
2018-03-29 03:46:46 +02:00
|
|
|
"devDependencies": {
|
2018-04-20 06:38:01 +02:00
|
|
|
"eslint-plugin-html": "4.0.3",
|
2018-05-26 18:19:02 +02:00
|
|
|
"now": "11.1.14",
|
2018-04-19 05:43:13 +02:00
|
|
|
"standard": "11.0.1",
|
|
|
|
"testcafe": "0.19.1"
|
2018-03-29 03:46:46 +02:00
|
|
|
},
|
2018-01-07 00:51:25 +01:00
|
|
|
"engines": {
|
|
|
|
"node": ">= 8"
|
2018-02-09 07:29:29 +01:00
|
|
|
},
|
|
|
|
"standard": {
|
|
|
|
"globals": [
|
|
|
|
"fetch",
|
|
|
|
"IDBKeyRange",
|
|
|
|
"IDBObjectStore",
|
|
|
|
"indexedDB",
|
|
|
|
"requestAnimationFrame",
|
|
|
|
"requestIdleCallback",
|
|
|
|
"location",
|
|
|
|
"localStorage",
|
|
|
|
"IntersectionObserver",
|
2018-02-09 07:31:05 +01:00
|
|
|
"URL",
|
2018-02-11 18:37:13 +01:00
|
|
|
"Event",
|
|
|
|
"history",
|
|
|
|
"performance",
|
2018-02-09 07:31:05 +01:00
|
|
|
"self",
|
|
|
|
"caches",
|
|
|
|
"__routes__",
|
|
|
|
"__shell__",
|
2018-02-19 00:30:42 +01:00
|
|
|
"__assets__",
|
2018-02-20 03:24:22 +01:00
|
|
|
"test",
|
2018-02-26 05:45:11 +01:00
|
|
|
"fixture",
|
2018-03-03 02:54:38 +01:00
|
|
|
"Element",
|
|
|
|
"FormData",
|
|
|
|
"atob",
|
|
|
|
"btoa",
|
2018-03-21 17:38:20 +01:00
|
|
|
"Blob",
|
2018-04-20 06:38:01 +02:00
|
|
|
"Element",
|
|
|
|
"Image"
|
2018-02-09 07:29:29 +01:00
|
|
|
],
|
|
|
|
"ignore": [
|
|
|
|
"dist",
|
2018-04-21 18:56:53 +02:00
|
|
|
"routes/_utils/asyncModules.js",
|
|
|
|
"routes/_components/dialog/asyncDialogs.js"
|
2018-02-09 07:29:29 +01:00
|
|
|
]
|
2018-03-06 05:29:49 +01:00
|
|
|
},
|
2018-03-29 03:22:30 +02:00
|
|
|
"esm": {
|
|
|
|
"mode": "auto",
|
2018-03-06 05:51:42 +01:00
|
|
|
"cjs": "vars"
|
2018-03-12 04:37:24 +01:00
|
|
|
},
|
|
|
|
"now": {
|
2018-04-12 07:22:20 +02:00
|
|
|
"type": "npm",
|
2018-03-12 04:37:24 +01:00
|
|
|
"env": {
|
|
|
|
"NODE_ENV": "production"
|
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"assets",
|
|
|
|
"bin",
|
|
|
|
"original-assets",
|
|
|
|
"routes",
|
|
|
|
"scss",
|
|
|
|
"templates",
|
|
|
|
"package.json",
|
|
|
|
"package-lock.json",
|
|
|
|
"server.js",
|
2018-04-15 00:50:16 +02:00
|
|
|
"inline-script.js",
|
2018-03-12 04:37:24 +01:00
|
|
|
"webpack.client.config.js",
|
|
|
|
"webpack.server.config.js"
|
2018-05-28 17:26:33 +02:00
|
|
|
],
|
|
|
|
"engines": {
|
|
|
|
"node": "^8.0.0"
|
|
|
|
}
|
2018-04-14 18:40:58 +02:00
|
|
|
},
|
|
|
|
"greenkeeper": {
|
|
|
|
"ignore": [
|
2018-05-02 02:06:51 +02:00
|
|
|
"sapper",
|
|
|
|
"a11y-dialog"
|
2018-04-14 18:40:58 +02:00
|
|
|
]
|
2018-01-07 00:51:25 +01:00
|
|
|
}
|
|
|
|
}
|