@reactseed/template-antd-i18n
Version:
React seed ant design and i18n template for creating react app
124 lines (123 loc) • 3.2 kB
JSON
{
"name": "__name__",
"version": "0.1.0",
"private": true,
"dependencies": {
"@ant-design/icons": "^5.0.1",
"@ant-design/pro-layout": "^7.8.2",
"@lingui/core": "^3.13.2",
"@lingui/react": "^3.13.2",
"antd": "^5.2.2",
"axios-hooks": "^4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.2",
"web-vitals": "^3.1.1",
"zustand": "^4.3.4"
},
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js' --only-mapped",
"start": "craco start",
"build": "craco build",
"test": "craco test",
"commit": "git cz",
"prettier": "prettier --write 'src/**/*.{ts,tsx}'",
"eslint": "eslint --fix --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}'",
"stylelint": "stylelint 'src/**/*.less' --custom-syntax postcss-less --allow-empty-input",
"extract": "lingui extract",
"extract:clean": "lingui extract --clean",
"prepare": "husky install"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"lint-staged": {
"*.{ts,tsx}": [
"npm run eslint",
"npm run prettier"
],
"*.{css,less}": [
"npm run stylelint"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"devDependencies": {
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@craco/craco": "^7.0.0",
"@formatjs/cli": "^4.8.3",
"@lingui/babel-preset-react": "^2.9.2",
"@lingui/cli": "^3.13.2",
"@lingui/macro": "^3.13.2",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.1.1",
"@testing-library/user-event": "^14.1.1",
"@types/craco__craco": "^6.4.0",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.25",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/react-redux": "^7.1.9",
"@types/react-router-dom": "^5.3.3",
"antd-dayjs-webpack-plugin": "^1.0.6",
"babel-plugin-import": "^1.13.5",
"craco-alias": "^3.0.1",
"craco-less": "^2.0.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^8.0.1",
"lint-staged": "^12.3.8",
"mocker-api": "^2.9.5",
"postcss-less": "^6.0.0",
"prettier": "^2.6.2",
"react-scripts": "^5.0.1",
"source-map-explorer": "^2.5.2",
"stylelint": "^14.7.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^25.0.0",
"typescript": "^4.6.3"
},
"lingui": {
"locales": [
"en",
"zh"
],
"sourceLocale": "en",
"catalogs": [
{
"path": "src/locales/{locale}/messages",
"include": [
"src"
],
"exclude": [
"**/node_modules/**"
]
}
],
"format": "minimal",
"runtimeConfigModule": [
"@/hooks/useIntlProvider",
"i18n"
]
}
}