2023-08-10 15:56:36 -07:00
|
|
|
{
|
2023-11-02 18:03:15 -07:00
|
|
|
"name": "impress",
|
|
|
|
"private": true,
|
2023-08-10 15:56:36 -07:00
|
|
|
"dependencies": {
|
|
|
|
"@apollo/client": "^3.6.9",
|
|
|
|
"@chakra-ui/icons": "^1.0.4",
|
|
|
|
"@chakra-ui/react": "^1.6.0",
|
|
|
|
"@emotion/react": "^11.1.4",
|
|
|
|
"@emotion/styled": "^11.0.0",
|
Add Turbo to speed up the app, and set up for missing UJS features
Oh right, we don't have Rails UJS going on anymore, which is what
handled the confirmation prompts for deleting lists. Turbo is the more
standard modern solution to that, and should speed up certain
pageloads, so let's do it!
Here I install the `turbo-rails` gem, then run `rails turbo:install` to
install the `@hotwired/turbo-rails` npm package. Then I move
`application.js` that's run all on pages but the outfit editor into our
section of JS that gets run through the bundler, and add Turbo to it.
I had to fix a couple tricky things:
1. The outfit editor page doesn't play nice with being swapped into the
document, so I make it require a full page reload instead.
2. Prefetching the Sign In link can cause the wrong `return_to` address
to be written to the `session`. (It's a GET request that does, ever
so slightly, take its own actions, oops!) As a simple hacky answer,
we disallow prefetching on that link.
Haven't fixed up the UJS stuff for confirm prompts to use Turbo yet,
that's next!
2024-03-13 13:43:48 -07:00
|
|
|
"@hotwired/turbo-rails": "^8.0.4",
|
2023-08-10 15:56:36 -07:00
|
|
|
"@loadable/component": "^5.12.0",
|
|
|
|
"@sentry/react": "^5.30.0",
|
2023-08-10 18:09:10 -07:00
|
|
|
"@sentry/tracing": "^5.30.0",
|
2023-11-02 13:50:33 -07:00
|
|
|
"@tanstack/react-query": "^5.4.3",
|
2023-08-10 18:09:10 -07:00
|
|
|
"apollo-link-persisted-queries": "^0.2.2",
|
2023-08-10 15:56:36 -07:00
|
|
|
"easeljs": "^1.0.2",
|
|
|
|
"esbuild": "^0.19.0",
|
|
|
|
"framer-motion": "^4.1.11",
|
|
|
|
"graphql": "^15.5.0",
|
|
|
|
"graphql-tag": "^2.12.6",
|
|
|
|
"immer": "^9.0.6",
|
|
|
|
"lru-cache": "^6.0.0",
|
2023-11-01 20:15:30 -07:00
|
|
|
"react": "^18.2.0",
|
2023-08-10 15:56:36 -07:00
|
|
|
"react-autosuggest": "^10.0.2",
|
2023-11-01 20:15:30 -07:00
|
|
|
"react-dom": "^18.2.0",
|
2023-08-10 15:56:36 -07:00
|
|
|
"react-icons": "^4.2.0",
|
2023-08-10 16:31:39 -07:00
|
|
|
"react-router-dom": "^6.15.0",
|
2023-08-10 15:56:36 -07:00
|
|
|
"react-transition-group": "^4.3.0",
|
|
|
|
"tweenjs": "^1.0.2"
|
|
|
|
},
|
2023-10-24 16:37:06 -07:00
|
|
|
"devDependencies": {
|
2023-11-02 18:03:15 -07:00
|
|
|
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
|
|
"@typescript-eslint/parser": "^6.9.1",
|
|
|
|
"eslint": "^8.52.0",
|
|
|
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
|
|
"eslint-plugin-react": "^7.33.2",
|
|
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
2024-03-13 13:00:27 -07:00
|
|
|
"express": "^4.18.3",
|
2023-11-02 18:03:15 -07:00
|
|
|
"husky": "^8.0.3",
|
2024-03-13 13:00:27 -07:00
|
|
|
"node-fetch": "^3.3.2",
|
2024-03-12 20:02:23 -07:00
|
|
|
"oauth2-mock-server": "^7.1.1",
|
2023-11-02 18:03:15 -07:00
|
|
|
"prettier": "^3.0.3",
|
|
|
|
"typescript": "^5.2.2"
|
2023-10-24 16:37:06 -07:00
|
|
|
},
|
2023-08-10 15:56:36 -07:00
|
|
|
"scripts": {
|
2024-01-14 23:05:53 -08:00
|
|
|
"build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --asset-names='[name]-[hash].digested' --loader:.js=jsx --loader:.png=file --loader:.svg=file --loader:.min.js=text",
|
2023-10-26 14:39:42 -07:00
|
|
|
"build:dev": "yarn build --public-path=/dev-assets",
|
2023-11-02 18:03:15 -07:00
|
|
|
"dev": "yarn build:dev --watch",
|
|
|
|
"lint": "eslint app/javascript",
|
|
|
|
"prepare": "husky install"
|
2024-05-02 13:19:39 -07:00
|
|
|
},
|
|
|
|
"packageManager": "yarn@4.2.1"
|
2023-08-10 15:56:36 -07:00
|
|
|
}
|