* adding more tests - covers article.jsx and elements created from its props and state - added png as static file that needs stubbing * video + channelDetails test coverage * chat + channels tests * channels cc refactor * yarn install * update snapshot and string spacing * chat.jsx test mostly tests rendering elements - does not test imported components, as those are already tested separately - does not imported functions from actions or utils as those will be tested separately as well * cleaning up - mocked response with flush promises for state/component to reflect appropriate changes * snapshot updates
100 lines
2.7 KiB
JSON
100 lines
2.7 KiB
JSON
{
|
|
"name": "Dev.to",
|
|
"version": "1.0.0",
|
|
"description": "Where programmers share ideas and help each other grow",
|
|
"main": "index.js",
|
|
"directories": {
|
|
"doc": "docs",
|
|
"lib": "lib",
|
|
"test": "test"
|
|
},
|
|
"scripts": {
|
|
"test": "jest app/javascript/ --coverage",
|
|
"test:watch": "jest app/javascript/ --watch",
|
|
"storybook": "start-storybook -p 6006 -c app/javascript/.storybook -s app/javascript/.storybook/assets",
|
|
"build-storybook": "build-storybook -c app/javascript/.storybook -s app/javascript/.storybook/assets",
|
|
"precommit": "lint-staged"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx}": [
|
|
"prettier --write",
|
|
"eslint --fix",
|
|
"git add"
|
|
],
|
|
"{app,spec}/**/*.rb": [
|
|
"bin/rubocop --require rubocop-rspec --auto-correct",
|
|
"git add"
|
|
],
|
|
"*.json": [
|
|
"prettier --write",
|
|
"git add"
|
|
],
|
|
"*.md": [
|
|
"prettier --write",
|
|
"git add"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"trailingComma": "all",
|
|
"printWidth": 80
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/thepracticaldev/dev.to.git"
|
|
},
|
|
"author": "",
|
|
"license": "AGPL-3.0-or-later",
|
|
"bugs": {
|
|
"url": "https://github.com/thepracticaldev/dev.to/issues"
|
|
},
|
|
"homepage": "https://github.com/thepracticaldev/dev.to#readme",
|
|
"devDependencies": {
|
|
"@storybook/addon-actions": "^4.0.0",
|
|
"@storybook/addon-links": "^4.0.0",
|
|
"@storybook/addons": "^4.0.0",
|
|
"@storybook/react": "^3.4.11",
|
|
"babel-eslint": "^10.0.1",
|
|
"babel-jest": "^23.4.2",
|
|
"eslint": "^5.9.0",
|
|
"eslint-config-airbnb": "^17.1.0",
|
|
"eslint-config-airbnb-base": "^13.1.0",
|
|
"eslint-config-prettier": "^3.3.0",
|
|
"eslint-plugin-babel": "^5.3.0",
|
|
"eslint-plugin-ignore-erb": "^0.1.1",
|
|
"eslint-plugin-import": "^2.14.0",
|
|
"eslint-plugin-jsx-a11y": "^6.1.2",
|
|
"eslint-plugin-react": "^7.11.1",
|
|
"faker": "^4.1.0",
|
|
"husky": "^1.1.4",
|
|
"jest": "^23.5.0",
|
|
"jsdom": "^13.0.0",
|
|
"jest-fetch-mock": "^1.7.4",
|
|
"lint-staged": "^8.0.5",
|
|
"preact-render-spy": "^1.3.0",
|
|
"preact-render-to-json": "^3.6.6",
|
|
"prettier": "^1.15.2",
|
|
"webpack-dev-server": "^2.11.3"
|
|
},
|
|
"dependencies": {
|
|
"@rails/webpacker": "^3.5.5",
|
|
"@webscopeio/react-textarea-autocomplete": "^2.3.4",
|
|
"babel-plugin-transform-react-jsx": "^6.24.1",
|
|
"babel-preset-preact": "^1.1.0",
|
|
"codemirror": "^5.41.0",
|
|
"intersection-observer": "^0.5.1",
|
|
"linkstate": "^1.1.1",
|
|
"marked": "^0.5.1",
|
|
"preact": "^8.3.1",
|
|
"preact-compat": "^3.18.4",
|
|
"preact-textarea-autosize": "^4.0.7",
|
|
"prop-types": "^15.6.2",
|
|
"pusher-js": "^4.3.1",
|
|
"twilio-video": "^1.14.1"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
}
|
|
}
|