docbrown/package.json
2020-10-05 15:25:45 -04:00

181 lines
5.6 KiB
JSON

{
"name": "dev.to",
"version": "1.0.0",
"description": "Where programmers share ideas and help each other grow",
"engines": {
"yarn": ">=1.21.x",
"node": "12.18.x"
},
"main": "index.js",
"directories": {
"doc": "docs",
"lib": "lib",
"test": "test"
},
"scripts": {
"api-docs:lint": "spectral lint -F hint -v docs/api_v0.yml && lint-openapi -e docs/api_v0.yml",
"api-docs:serve": "redoc-cli serve docs/api_v0.yml --options.pathInMiddlePanel --options.jsonSampleExpandLevel=all --options.menuToggle -t docs/api_template.hbs --watch",
"storybook-prerequisites": "node-sass app/assets/stylesheets/themes -o app/javascript/storybook-static/themes && bin/generate-css-utility-classes-docs.js",
"prebuild-storybook": "npm run storybook-prerequisites",
"build-storybook": "build-storybook -c app/javascript/.storybook -s app/assets -o app/javascript/storybook-static --quiet",
"prestorybook": "npm run storybook-prerequisites",
"storybook": "start-storybook -p 6006 -c app/javascript/.storybook -s app/assets,app/javascript/storybook-static",
"lint:frontend": "eslint app/assets/javascripts/**/*.js app/javascript/**/*.jsx app/javascript/**/*.js",
"pretest": "npm run lint:frontend",
"test": "jest app/javascript/ bin/ --coverage",
"test:watch": "jest app/javascript/ bin/ --watch",
"postcss": "postcss public/assets/*.css -d public/assets"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"app/assets/config/manifest.js": [
"prettier --write",
"eslint --fix -c app/assets/javascripts/.eslintrc.js"
],
"docs/api_v0.yml": [
"spectral lint -F hint",
"lint-openapi -e"
],
"*.{js,jsx}": [
"prettier --write",
"eslint --fix",
"jest --findRelatedTests"
],
"{app,spec,config,lib}/**/*.rb": [
"bundle exec rubocop --require rubocop-rspec --auto-correct"
],
"app/views/**/*.jbuilder": [
"bundle exec rubocop --require rubocop-rspec --auto-correct"
],
"Gemfile": [
"bundle exec rubocop --require rubocop-rspec --auto-correct"
],
"*.rake": [
"bundle exec rubocop --require rubocop-rspec --auto-correct"
],
"app/**/*.html.erb": [
"bundle exec erblint --autocorrect"
],
"*.json": [
"prettier --write"
],
"*.scss": [
"prettier --write"
],
"*.md": [
"prettier --write --prose-wrap always"
],
"*.svg": [
"svgo --disable=removeViewBox --pretty"
]
},
"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": {
"@stoplight/spectral": "5.6.0",
"@storybook/addon-a11y": "^6.0.22",
"@storybook/addon-actions": "^6.0.22",
"@storybook/addon-knobs": "^6.0.22",
"@storybook/addon-links": "^6.0.25",
"@storybook/addon-notes": "^5.3.21",
"@storybook/addon-storyshots": "^6.0.20",
"@storybook/addons": "^6.0.22",
"@storybook/preact": "^6.0.22",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/preact": "^2.0.0",
"@testing-library/preact-hooks": "^1.1.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.3.0",
"babel-loader": "^8.1.0",
"css-loader": "^4.3.0",
"cssom": "^0.4.4",
"eslint": "^7.10.0",
"eslint-config-preact": "^1.1.1",
"eslint-config-prettier": "^6.12.0",
"eslint-import-resolver-webpack": "^0.12.2",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-ignore-erb": "^0.1.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.21.2",
"faker": "^5.1.0",
"gitdocs": "^2.0.0",
"husky": "^4.3.0",
"ibm-openapi-validator": "0.30.0",
"jest": "26.4.2",
"jest-axe": "^4.0.0",
"jest-fetch-mock": "^3.0.3",
"jest-watch-typeahead": "^0.6.1",
"jsdom": "^16.4.0",
"lint-staged": "^10.4.0",
"markdown-loader": "^5.1.0",
"node-sass": "^4.14.1",
"prettier": "^2.1.2",
"redoc-cli": "0.9.12",
"sass-loader": "^10.0.2",
"style-loader": "^1.3.0",
"svgo": "1.3.2",
"webpack-dev-server": "^3.11.0"
},
"dependencies": {
"@babel/core": "^7.11.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-react-jsx": "^7.10.4",
"@babel/preset-env": "^7.11.0",
"@github/clipboard-copy-element": "^1.1.2",
"@honeybadger-io/webpack": "^1.2.0",
"@rails/webpacker": "5.2.1",
"ahoy.js": "^0.3.7",
"autoprefixer": "^9.8.6",
"babel-preset-preact": "^2.0.0",
"chart.js": "^2.9.3",
"clipboard-polyfill": "^3.0.1",
"core-js": "3",
"file-loader": "^6.0.0",
"focus-visible": "^5.1.0",
"he": "^1.2.0",
"honeybadger-js": "2.3.0",
"intersection-observer": "^0.11.0",
"linkstate": "^1.1.1",
"lodash.debounce": "4.0.8",
"postcss-cli": "^7.1.1",
"postcss-cssnext": "^3.1.0",
"postcss-smart-import": "^0.7.6",
"postscribe": "^2.0.8",
"preact": "^10.5.3",
"preact-textarea-autosize": "^4.0.7",
"prop-types": "^15.7.2",
"pusher-js": "^7.0.0",
"rails-erb-loader": "^5.5.2",
"stimulus": "^1.1.1",
"twilio-video": "^2.7.2",
"web-share-wrapper": "^0.2.1"
},
"resolutions": {
"gitdocs/markdown-to-jsx": "^6.11.4"
},
"jest": {
"setupFiles": [
"jest-localstorage-mock"
]
}
}