* update dependencies * fix eslint warnings * remove redundant sass-loader
104 lines
2.6 KiB
JSON
104 lines
2.6 KiB
JSON
{
|
|
"name": "remark-ui",
|
|
"version": "0.1.0",
|
|
"scripts": {
|
|
"build": "webpack --mode production",
|
|
"start": "webpack-dev-server --mode development",
|
|
"lint": "eslint --ext=.js,.jsx .",
|
|
"test": "jest",
|
|
"test:coverage": "jest --coverage",
|
|
"prettier": "prettier --write \"./**/*.{js,jsx,scss}\""
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "./node_modules/.bin/lint-staged",
|
|
"post-commit": "git update-index --again"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"linters": {
|
|
"./**/*.{js,jsx}": [
|
|
"eslint --fix",
|
|
"git add"
|
|
],
|
|
"./**/*.scss": [
|
|
"prettier --write",
|
|
"git add"
|
|
]
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "^9.4.7",
|
|
"@babel/core": "^7.2.2",
|
|
"babel-eslint": "^10.0.1",
|
|
"@babel/preset-env": "^7.3.1",
|
|
"@babel/plugin-transform-react-jsx": "^7.3.0",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
"babel-loader": "^8.0.5",
|
|
"clean-webpack-plugin": "^1.0.1",
|
|
"copy-webpack-plugin": "^4.6.0",
|
|
"css-loader": "^2.1.0",
|
|
"eslint": "^5.14.0",
|
|
"eslint-config-prettier": "^4.0.0",
|
|
"eslint-plugin-jsx-a11y": "^6.2.1",
|
|
"eslint-plugin-prettier": "^3.0.1",
|
|
"eslint-plugin-react": "^7.12.4",
|
|
"mini-css-extract-plugin": "^0.5.0",
|
|
"file-loader": "^3.0.1",
|
|
"html-webpack-plugin": "^3.2.0",
|
|
"husky": "^1.3.1",
|
|
"jest": "^24.1.0",
|
|
"jest-localstorage-mock": "^2.4.0",
|
|
"lint-staged": "^8.1.4",
|
|
"npm-run-all": "^4.1.5",
|
|
"postcss-calc": "^7.0.1",
|
|
"postcss-csso": "^3.0.0",
|
|
"postcss-for": "^2.1.1",
|
|
"postcss-loader": "^3.0.0",
|
|
"postcss-nested": "^4.1.1",
|
|
"postcss-simple-vars": "^5.0.1",
|
|
"postcss-url": "^8.0.0",
|
|
"postcss-wrap": "0.0.4",
|
|
"prettier": "^1.16.4",
|
|
"style-loader": "^0.23.1",
|
|
"webpack": "^4.29.4",
|
|
"webpack-cli": "^3.2.3",
|
|
"webpack-bundle-analyzer": "^3.0.4",
|
|
"webpack-dev-server": "^3.1.14"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^0.18.0",
|
|
"bem-react-helper": "^1.1.2",
|
|
"core-js": "^2.5.7",
|
|
"focus-visible": "^4.1.5",
|
|
"preact": "^8.4.2",
|
|
"preact-redux": "^2.0.3",
|
|
"redux": "^4.0.1"
|
|
},
|
|
"eslintIgnore": [
|
|
"public"
|
|
],
|
|
"jest": {
|
|
"transform": {
|
|
"^.+\\.jsx?$": "<rootDir>/fileTransformer.js"
|
|
},
|
|
"setupFiles": [
|
|
"<rootDir>/injectGlobalVariable.js",
|
|
"jest-localstorage-mock"
|
|
],
|
|
"moduleDirectories": [
|
|
"node_modules",
|
|
"<rootDir>/app"
|
|
],
|
|
"testMatch": [
|
|
"<rootDir>/**/*.test.js"
|
|
],
|
|
"moduleNameMapper": {
|
|
"\\.scss$": "<rootDir>/app/testUtils/mockStyles.js"
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=8"
|
|
}
|
|
}
|