forked from OpenNeo/impress
Matchu
c2abc8d876
Okay, this is much simpler than the impress-2020 version where we symlinked node_modules and stuff - Bundler is just a lot better at this lol Right now, the app is failing to start because we don't install Node—I wasn't sure whether we'd need to and whether I was gonna precompile the assets etc Though now that I say that out loud, I guess part of the issue might be that I'm not sure the app is running in RAILS_ENV=production, I wonder if it still wants Node in that case?? I'll flip that switch in the service file now, then commit to save my place for the day, then try again with starting the app sometime and see what it says!
35 lines
1.4 KiB
JSON
35 lines
1.4 KiB
JSON
{
|
|
"name": "app",
|
|
"dependencies": {
|
|
"@apollo/client": "^3.6.9",
|
|
"@auth0/auth0-react": "^1.0.0",
|
|
"@chakra-ui/icons": "^1.0.4",
|
|
"@chakra-ui/react": "^1.6.0",
|
|
"@emotion/react": "^11.1.4",
|
|
"@emotion/styled": "^11.0.0",
|
|
"@loadable/component": "^5.12.0",
|
|
"@sentry/react": "^5.30.0",
|
|
"@sentry/tracing": "^5.30.0",
|
|
"apollo-link-persisted-queries": "^0.2.2",
|
|
"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",
|
|
"react": "^17.0.1",
|
|
"react-autosuggest": "^10.0.2",
|
|
"react-dom": "^17.0.1",
|
|
"react-icons": "^4.2.0",
|
|
"react-router-dom": "^6.15.0",
|
|
"react-transition-group": "^4.3.0",
|
|
"tweenjs": "^1.0.2"
|
|
},
|
|
"scripts": {
|
|
"build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --loader:.js=jsx --loader:.png=file --loader:.svg=file --loader:.min.js=text",
|
|
"build:production": "yarn build --minify",
|
|
"deploy:setup": "echo $'Setup requires you to become the root user. You\\'ll need to enter the password for your account on the remote web server below, and you must be part of the `sudo` user group.' && ansible-playbook -K -i deploy/inventory.cfg deploy/setup.yml",
|
|
"deploy": "ansible-playbook -i deploy/inventory.cfg deploy/deploy.yml"
|
|
}
|
|
}
|