* update to node version 16 * Remove canvas compiled node objects * use f35 testing image as builder/base * Update production builder base image to use Fedora 35 I missed this (it's not immediately obvious that there are 2 base images declared in this file, one called builder, one called production, this seems like it could be refactored to lift that out (give it a name, a cmd, and do nothing else) `as base` perhaps, while keeping separate install processes for testing- and pr-/production images. * Add libpq dependency in production We need this (if not the -devel header file, at least the library) to start pg_ext.so I think this might have been working because of the --cache-from options when building in the build container script? * Update .gitpod.dockerfile * Add temporary cleanup for upgrade to bin/setup This has the undesirable effect of requiring a yarn reinstall. It would be better if there were a smart check to confirm the version of the canvas.node file matched the node version or did not (so we only do this as needed, rather than on every setup invocation until this is removed from the code). * Use check-files rather than force when rebuilding canvas Optimal situation would be a `rebuild` command in yarn (I believe npm has this option) to recompile canvas (all that's needed) rather than fetch, install, and build. Co-authored-by: Michael Kohl <me@citizen428.net>
150 lines
5.1 KiB
JSON
150 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": "16.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.9",
|
|
"@storybook/addon-actions": "^6.4.9",
|
|
"@storybook/addon-docs": "^6.4.9",
|
|
"@storybook/addon-knobs": "^6.4.0",
|
|
"@storybook/addon-links": "^6.4.9",
|
|
"@storybook/addon-notes": "^5.3.21",
|
|
"@storybook/addon-storysource": "^6.4.9",
|
|
"@storybook/addons": "^6.4.9",
|
|
"@storybook/builder-webpack5": "^6.4.9",
|
|
"@storybook/manager-webpack5": "^6.4.9",
|
|
"@storybook/preact": "^6.4.9",
|
|
"@testing-library/cypress": "^7.0.7",
|
|
"@testing-library/dom": "^8.11.1",
|
|
"@testing-library/jest-dom": "^5.16.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.4.5",
|
|
"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",
|
|
"cypress-pipe": "^2.0.0",
|
|
"eslint": "^7.32.0",
|
|
"eslint-config-preact": "^1.3.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.28.0",
|
|
"faker": "^5.5.3",
|
|
"husky": "^7.0.4",
|
|
"jest": "27.4.5",
|
|
"jest-axe": "^4.1.0",
|
|
"jest-fetch-mock": "^3.0.3",
|
|
"jest-watch-typeahead": "^1.0.0",
|
|
"jsdom": "^19.0.0",
|
|
"lint-staged": "^12.1.4",
|
|
"markdown-loader": "^6.0.0",
|
|
"prettier": "^2.5.1",
|
|
"sass": "1.45.1",
|
|
"sass-loader": "^12.4.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.5",
|
|
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
"@babel/plugin-transform-react-jsx": "^7.16.5",
|
|
"@babel/preset-env": "^7.16.5",
|
|
"@github/clipboard-copy-element": "^1.1.2",
|
|
"@github/time-elements": "3.1.2",
|
|
"@honeybadger-io/js": "^3.2.7",
|
|
"@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.5",
|
|
"@storybook/addon-controls": "^6.4.9",
|
|
"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.7.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",
|
|
"i18n-js": "^3.8.0",
|
|
"intersection-observer": "^0.12.0",
|
|
"linkstate": "^2.0.1",
|
|
"lodash.debounce": "4.0.8",
|
|
"postcss": "^8.4.5",
|
|
"postcss-cli": "^9.1.0",
|
|
"postcss-cssnext": "^3.1.0",
|
|
"postcss-smart-import": "^0.7.6",
|
|
"postscribe": "^2.0.8",
|
|
"preact": "^10.6.4",
|
|
"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"
|
|
]
|
|
}
|
|
}
|