mirror of https://github.com/casbin/casnode.git
99 lines
2.7 KiB
JSON
99 lines
2.7 KiB
JSON
{
|
|
"name": "web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@ant-design/icons": "^4.7.0",
|
|
"@craco/craco": "^6.4.5",
|
|
"@crowdin/cli": "^3.6.4",
|
|
"@testing-library/jest-dom": "^4.2.4",
|
|
"@testing-library/react": "^9.3.2",
|
|
"@testing-library/user-event": "^7.1.2",
|
|
"antd": "5.2.3",
|
|
"braft-editor": "^2.3.9",
|
|
"browser-image-size": "^1.1.0",
|
|
"casdoor-js-sdk": "^0.5.1",
|
|
"classnames": "^2.3.2",
|
|
"codemirror": "^5.54.0",
|
|
"craco-less": "^2.0.0",
|
|
"i18next": "^19.6.0",
|
|
"identicon.js": "^2.3.3",
|
|
"inline-attachment": "^2.0.3",
|
|
"jquery": "^3.5.1",
|
|
"js-md5": "^0.7.3",
|
|
"lodash": "^4.17.20",
|
|
"moment": "^2.29.4",
|
|
"pangu": "^4.0.7",
|
|
"rc-collapse": "^2.0.0",
|
|
"re-resizable": "^6.5.4",
|
|
"react": "^18.2.0",
|
|
"react-codemirror2": "^7.2.1",
|
|
"react-color": "^2.18.1",
|
|
"react-dom": "^18.2.0",
|
|
"react-dropzone": "^11.0.2",
|
|
"react-github-corner": "^2.3.0",
|
|
"react-helmet": "^6.1.0",
|
|
"react-i18next": "^11.7.0",
|
|
"react-markdown": "^4.3.1",
|
|
"react-router-dom": "^5.3.3",
|
|
"react-scripts": "5.0.1",
|
|
"react-scroll": "^1.7.16",
|
|
"react-select2-wrapper": "^1.0.4-beta6",
|
|
"react-tagsinput": "^3.19.0",
|
|
"react-zmage": "0.8.5-beta.36"
|
|
},
|
|
"scripts": {
|
|
"start": "set PORT=3000 && craco start",
|
|
"build": "craco build",
|
|
"test": "craco test",
|
|
"eject": "craco eject",
|
|
"crowdin:sync": "crowdin upload && crowdin download",
|
|
"preinstall": "node -e \"if (process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('Use yarn for installing: https://yarnpkg.com/en/docs/install')\"",
|
|
"fix": "eslint --fix src/**/*.{js,jsx,ts,tsx}",
|
|
"lintcss": "stylelint src/**/*.{css,scss} --fix --custom-syntax postcss-scss"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": "react-app"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.18.13",
|
|
"@babel/eslint-parser": "^7.18.9",
|
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
"@babel/preset-react": "^7.18.6",
|
|
"eslint": "^8.47.0",
|
|
"eslint-plugin-react": "^7.31.1",
|
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
"husky": "^4.3.8",
|
|
"lint-staged": "^13.0.3",
|
|
"postcss-scss": "^4.0.6",
|
|
"stylelint": "^14.11.0",
|
|
"stylelint-config-recommended-less": "^1.0.4",
|
|
"stylelint-config-standard": "^28.0.0"
|
|
},
|
|
"lint-staged": {
|
|
"src/**/*.{css,less}": [
|
|
"stylelint --fix"
|
|
],
|
|
"src/**/*.{js,jsx,ts,tsx}": [
|
|
"eslint --fix"
|
|
]
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
}
|
|
}
|