Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/package.json
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
"lint-staged": { | "lint-staged": { | ||||
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ | "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ | ||||
"prettier --write", | "prettier --write", | ||||
"git add" | "git add" | ||||
] | ] | ||||
}, | }, | ||||
"scripts": { | "scripts": { | ||||
"manifest-fbts": "NODE_ENV=production node node_modules/babel-plugin-fbt/bin/manifest --src src", | "manifest-fbts": "NODE_ENV=production node node_modules/babel-plugin-fbt/bin/manifest --src src", | ||||
"collect-fbts": "NODE_ENV=production node node_modules/babel-plugin-fbt/bin/collectFBT --pretty --manifest < .src_manifest.json > .source_strings.json", | "collect-fbts": "NODE_ENV=production node node_modules/babel-plugin-fbt/bin/collectFBT --manifest < .src_manifest.json > .source_strings.json", | ||||
"translate-fbts": "NODE_ENV=production node node_modules/babel-plugin-fbt/bin/translate.js --pretty --translations translations/*.json --jenkins > src/translatedFbts.json", | "translate-fbts": "NODE_ENV=production node node_modules/babel-plugin-fbt/bin/translate.js --translations translations/*.json --jenkins > src/translatedFbts.json", | ||||
"translate-fbts-single-file": "NODE_ENV=production node node_modules/babel-plugin-fbt/bin/translate.js --pretty --jenkins --stdin < translation_input.json > src/translatedFbts.json", | "translate-fbts-single-file": "NODE_ENV=production node node_modules/babel-plugin-fbt/bin/translate.js --jenkins --stdin < translation_input.json > src/translatedFbts.json", | ||||
"clean-fbts": "rm .enum_manifest.json .src_manifest.json .source_strings.json src/translatedFbts.json 2&> /dev/null || exit 0", | "clean-fbts": "rm .enum_manifest.json .src_manifest.json .source_strings.json src/translatedFbts.json 2&> /dev/null || exit 0", | ||||
"fbt-generate-translations": "NODE_ENV=production node node_modules/fbt-generate-translations --locales src/i18n/locales.js --multi-files translations", | "fbt-generate-translations": "NODE_ENV=production node node_modules/fbt-generate-translations --locales src/i18n/locales.js --multi-files translations", | ||||
"fbt-generate-translations-single-file": "NODE_ENV=production node node_modules/fbt-generate-translations --locales src/i18n/locales.js", | "prepare-fbts": "NODE_ENV=production npm run manifest-fbts && npm run collect-fbts && npm run translate-fbts", | ||||
"prepare-fbts": "NODE_ENV=production npm run manifest-fbts && npm run collect-fbts && npm run fbt-generate-translations && npm run translate-fbts", | |||||
"prestart": "npm run prepare-fbts", | "prestart": "npm run prepare-fbts", | ||||
"prebuild": "npm run prepare-fbts", | "prebuild": "npm run prepare-fbts", | ||||
"start": "node scripts/start.js", | "start": "node scripts/start.js", | ||||
"build": "node scripts/build.js", | "build": "node scripts/build.js", | ||||
"extension": "./scripts/extension.sh", | "extension": "./scripts/extension.sh", | ||||
"predeploy": "npm run build", | "predeploy": "npm run build", | ||||
"test": "node scripts/test.js", | "test": "node scripts/test.js", | ||||
"test:coverage": "CI=true npm run test --coverage", | "test:coverage": "CI=true npm run test --coverage", | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |