btcpayserver.org/package.json
Dennis Reimann 274c05d4ba
Allow build without TRANSIFEX_TOKEN
This falls back to english only, but allows the build to be run.
2024-03-03 19:29:03 +01:00

50 lines
2.2 KiB
JSON

{
"private": true,
"name": "btcpayserver.org",
"version": "1.0.0",
"license": "MIT",
"description": "BTCPay Server Official Website",
"homepage": "https://btcpayserver.org/",
"repository": "btcpayserver/btcpayserver.github.io",
"bugs": "https://github.com/btcpayserver/btcpayserver.github.io/issues",
"scripts": {
"clean": "rimraf dist && mkdir -p dist transifex/download/video transifex/download/website",
"init": "npm-run-all clean -p d:*",
"d:translations": "node -r dotenv/config tasks/download_translations.js && cp transifex/resources/video.json transifex/download/video/en_GB.json && cp transifex/resources/website.json transifex/download/website/en_GB.json",
"d:contributors": "node -r dotenv/config tasks/download_contributors.js",
"start": "npm-run-all clean -p start:*",
"start:static": "onchange -i -k 'src/static/**/*' -- npm run build:static",
"start:scripts": "onchange -i -k 'src/js/**/*' -- npm run build:scripts",
"start:styles": "onchange -i -k 'src/css/**/*' -- npm run build:styles",
"start:html": "onchange -i -k 'src/{html,json}/**/*' 'tasks/{render_html,util}.js' -- npm run build:html",
"start:vtt": "onchange -i -k 'src/vtt/**/*' 'tasks/{render_vtt,util}.js' -- npm run build:vtt",
"start:serve": "browser-sync start --no-open --watch --server dist",
"build": "npm-run-all clean -p build:*",
"build:static": "cp -rT src/static dist",
"build:scripts": "cp -r src/js dist",
"build:styles": "cp -r src/css dist",
"build:html": "node tasks/render_html.js",
"build:vtt": "node tasks/render_vtt.js",
"optimize": "npm-run-all -p optimize:*",
"optimize:styles": "csso dist/css/styles.css --output dist/css/styles.css",
"optimize:page-styles": "csso dist/css/page-styles.css --output dist/css/page-styles.css",
"prod": "NODE_ENV=production npm-run-all build optimize",
"netlify": "npm run init && npm run prod"
},
"keywords": [
"BTCPayServer"
],
"devDependencies": {
"browser-sync": "3.0.2",
"csso-cli": "4.0.2",
"dotenv": "16.4.5",
"npm-run-all": "4.1.5",
"onchange": "7.1.0",
"rimraf": "5.0.5",
"sync-request": "6.1.0"
},
"dependencies": {
"@transifex/api": "7.1.0"
}
}