* init * buttons * buttons, ctas, icons * ctas fix * links vs ctas * alias * fixes * add tests for Buttons component * add tooltip to button story controls * add link and CTA tests * add prop types * docs * designs * docs * focus visible moved to global place * Updated some component snapshot tests. * Mocked react-inlinesvg module because of https://github.com/gilbarbara/react-inlinesvg/issues/145\#issuecomment-623453339 * tests * Copy updates Co-authored-by: Suzanne Aitchison <suzanne@forem.com> * missed spots * Apply suggestions from code review Co-authored-by: Suzanne Aitchison <suzanne@forem.com> * danger accent colors * node * colors * adding code comment * better prop name: style -> variant * button new Co-authored-by: Suzanne Aitchison <suzanne@forem.com> Co-authored-by: Nick Taylor <nick@dev.to>
149 lines
5.1 KiB
JSON
149 lines
5.1 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": "14.x"
|
|
},
|
|
"main": "index.js",
|
|
"directories": {
|
|
"doc": "docs",
|
|
"lib": "lib",
|
|
"test": "test"
|
|
},
|
|
"resolutions": {
|
|
"glob-parent": "^6.0.1"
|
|
},
|
|
"scripts": {
|
|
"prepare": "husky install",
|
|
"generate-storybook-themes": "sass -q app/assets/stylesheets/themes:app/javascript/storybook-static/themes && bin/generate-css-utility-classes-docs.js",
|
|
"build-storybook": "build-storybook -c app/javascript/.storybook -s app/assets -o app/javascript/storybook-static --quiet && yarn generate-storybook-themes",
|
|
"prestorybook": "rm -rf app/javascript/storybook-static && yarn generate-storybook-themes",
|
|
"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 cypress/**/*.js",
|
|
"test": "jest app/javascript/ bin/ --coverage",
|
|
"test:watch": "jest app/javascript/ bin/ --watch",
|
|
"postcss": "postcss public/assets/*.css -d public/assets 2> postcss_error.log",
|
|
"e2e": "bin/e2e",
|
|
"e2e:creator-onboarding-seed": "yarn run e2e --creator-onboarding-seed"
|
|
},
|
|
"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": {
|
|
"@knapsack-pro/cypress": "^4.5.0",
|
|
"@storybook/addon-a11y": "^6.4.0",
|
|
"@storybook/addon-actions": "^6.4.0",
|
|
"@storybook/addon-docs": "^6.3.12",
|
|
"@storybook/addon-knobs": "^6.2.9",
|
|
"@storybook/addon-links": "^6.3.12",
|
|
"@storybook/addon-notes": "^5.3.21",
|
|
"@storybook/addon-storysource": "^6.4.0",
|
|
"@storybook/addons": "^6.2.8",
|
|
"@storybook/builder-webpack5": "^6.3.12",
|
|
"@storybook/manager-webpack5": "^6.3.12",
|
|
"@storybook/preact": "^6.3.12",
|
|
"@testing-library/cypress": "^7.0.7",
|
|
"@testing-library/dom": "^8.11.1",
|
|
"@testing-library/jest-dom": "^5.15.1",
|
|
"@testing-library/preact": "^2.0.1",
|
|
"@testing-library/preact-hooks": "^1.1.0",
|
|
"@testing-library/user-event": "^13.5.0",
|
|
"@whitespace/storybook-addon-html": "^5.0.0",
|
|
"babel-core": "^7.0.0-bridge.0",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-jest": "^27.3.1",
|
|
"babel-loader": "^8.2.3",
|
|
"css-loader": "^5.2.7",
|
|
"cssom": "^0.5.0",
|
|
"cypress": "^8.7.0",
|
|
"cypress-failed-log": "^2.9.2",
|
|
"cypress-file-upload": "^5.0.8",
|
|
"eslint": "^7.32.0",
|
|
"eslint-config-preact": "^1.2.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-import-resolver-webpack": "^0.13.2",
|
|
"eslint-plugin-babel": "^5.3.1",
|
|
"eslint-plugin-cypress": "^2.12.1",
|
|
"eslint-plugin-ignore-erb": "^0.1.1",
|
|
"eslint-plugin-import": "^2.25.3",
|
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
"eslint-plugin-no-only-tests": "^2.6.0",
|
|
"eslint-plugin-react": "^7.27.1",
|
|
"faker": "^5.5.3",
|
|
"husky": "^7.0.4",
|
|
"jest": "27.4.1",
|
|
"jest-axe": "^4.1.0",
|
|
"jest-fetch-mock": "^3.0.3",
|
|
"jest-watch-typeahead": "^1.0.0",
|
|
"jsdom": "^18.1.1",
|
|
"lint-staged": "^12.1.2",
|
|
"markdown-loader": "^6.0.0",
|
|
"prettier": "^2.5.0",
|
|
"sass": "1.44.0",
|
|
"sass-loader": "^12.3.0",
|
|
"storybook-addon-jsx": "^7.3.14",
|
|
"style-loader": "^2.0.0",
|
|
"svgo": "2.8.0",
|
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
"webpack-dev-server": "^3.11.2"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7.16.0",
|
|
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
"@babel/plugin-transform-react-jsx": "^7.16.0",
|
|
"@babel/preset-env": "^7.16.4",
|
|
"@github/clipboard-copy-element": "^1.1.2",
|
|
"@github/time-elements": "3.1.2",
|
|
"@honeybadger-io/webpack": "^1.5.1",
|
|
"@hotwired/stimulus": "3.0.1",
|
|
"@hotwired/stimulus-webpack-helpers": "1.0.1",
|
|
"@rails/ujs": "6.1.4",
|
|
"@rails/webpacker": "5.4.3",
|
|
"@reach/combobox": "^0.16.4",
|
|
"@storybook/addon-controls": "^6.3.12",
|
|
"ahoy.js": "^0.4.0",
|
|
"autoprefixer": "^10.4.0",
|
|
"babel-plugin-inline-react-svg": "^2.0.1",
|
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
"babel-preset-preact": "^2.0.0",
|
|
"canvas": "^2.8.0",
|
|
"chart.js": "^3.6.0",
|
|
"classnames": "^2.3.1",
|
|
"clipboard-polyfill": "^3.0.3",
|
|
"core-js": "3",
|
|
"file-loader": "^6.2.0",
|
|
"focus-trap": "^6.7.1",
|
|
"focus-visible": "^5.2.0",
|
|
"he": "^1.2.0",
|
|
"honeybadger-js": "2.3.0",
|
|
"i18n-js": "^3.8.0",
|
|
"intersection-observer": "^0.12.0",
|
|
"linkstate": "^2.0.1",
|
|
"lodash.debounce": "4.0.8",
|
|
"postcss": "^8.4.4",
|
|
"postcss-cli": "^9.0.2",
|
|
"postcss-cssnext": "^3.1.0",
|
|
"postcss-smart-import": "^0.7.6",
|
|
"postscribe": "^2.0.8",
|
|
"preact": "^10.5.15",
|
|
"prop-types": "^15.7.2",
|
|
"pusher-js": "^7.0.3",
|
|
"rails-erb-loader": "^5.5.2",
|
|
"web-share-wrapper": "^0.2.2"
|
|
},
|
|
"jest": {
|
|
"setupFiles": [
|
|
"jest-localstorage-mock"
|
|
]
|
|
}
|
|
}
|