Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Completely separate server and client code #26

Open
johnrees opened this issue Mar 16, 2019 · 1 comment
Open

Completely separate server and client code #26

johnrees opened this issue Mar 16, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@johnrees
Copy link
Contributor

No description provided.

@johnrees johnrees added the enhancement New feature or request label Mar 16, 2019
@johnrees johnrees self-assigned this Mar 16, 2019
@johnrees
Copy link
Contributor Author

Auto deploy server to heroku and client to netlify

The root package.json could look something like

{
  "name": "planx-api",
  "version": "1.0.0",
  "private": true,
  "dependencies": {},
  "devDependencies": {
    "concurrently": "^4.1.0"
  },
  "scripts": {
    "client": "cd src/client && yarn start",
    "server": "cd src/server && yarn start",
    "build:client": "cd src/client && yarn install && yarn build",
    "build:server": "cd src/server && yarn build",
    "heroku-postbuild": "yarn build:server",
    "start": "concurrently 'yarn server' 'yarn client'"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/theopensystemslab/planx-api.git"
  },
  "keywords": [
    "osl",
    "planx"
  ],
  "license": "MPL-2.0",
  "bugs": {
    "url": "https://github.com/theopensystemslab/planx-api/issues"
  },
  "homepage": "https://github.com/theopensystemslab/planx-api#readme",
  "engines": {
    "node": "10.x",
    "yarn": "1.x"
  },
  "cacheDirectories": [
    "node_modules",
    "src/client/node_modules",
    "src/server/node_modules"
  ]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant