b6c6770cd9
Co-authored-by: Kanta Kodama <kanta.kodama@linecorp.com>
45 lines
1.6 KiB
JSON
45 lines
1.6 KiB
JSON
{
|
|
"name": "with-react-intl",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"dev": "cross-env NODE_ICU_DATA=node_modules/full-icu ts-node --project tsconfig.server.json server.ts",
|
|
"dev-no-custom-server": "next dev",
|
|
"build": "npm run extract:i18n && npm run compile:i18n && next build && tsc -p tsconfig.server.json",
|
|
"extract:i18n": "formatjs extract '{pages,components}/*.{js,ts,tsx}' --format simple --id-interpolation-pattern '[sha512:contenthash:base64:6]' --out-file lang/en.json",
|
|
"compile:i18n": "formatjs compile-folder --ast --format simple lang compiled-lang",
|
|
"start": "cross-env NODE_ENV=production NODE_ICU_DATA=node_modules/full-icu node dist/server",
|
|
"start-no-custom-server": "next start"
|
|
},
|
|
"dependencies": {
|
|
"@formatjs/cli": "^2.7.3",
|
|
"@formatjs/intl-datetimeformat": "^2.4.3",
|
|
"@formatjs/intl-getcanonicallocales": "^1.3.2",
|
|
"@formatjs/intl-numberformat": "^5.4.1",
|
|
"@formatjs/intl-pluralrules": "^3.4.0",
|
|
"@formatjs/intl-relativetimeformat": "^7.1.1",
|
|
"accepts": "^1.3.7",
|
|
"babel-plugin-react-intl": "^8.1.1",
|
|
"cross-env": "^7.0.2",
|
|
"full-icu": "^1.3.0",
|
|
"glob": "^7.1.4",
|
|
"next": "latest",
|
|
"react": "^16.9.0",
|
|
"react-dom": "^16.9.0",
|
|
"react-intl": "^5.6.3"
|
|
},
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@types/accepts": "^1.3.5",
|
|
"cross-spawn": "7.0.3",
|
|
"prettier": "2.0.5",
|
|
"ts-node": "8.0.1",
|
|
"typescript": "4.0"
|
|
},
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"trailingComma": "es5",
|
|
"bracketSpacing": false,
|
|
"endOfLine": "lf",
|
|
"arrowParens": "avoid"
|
|
}
|
|
}
|