Skip to content
Snippets Groups Projects
Commit 59fba344 authored by Sam Galson's avatar Sam Galson
Browse files

chore(xpub): remove xpub packages and lerna

parent 5afd0ec6
No related branches found
No related tags found
No related merge requests found
Showing
with 24 additions and 103 deletions
packages/*/node_modules/**/*
packages/*/node_modules
node_modules
**/_build
**/node_modules
_build
node_modules
......@@ -53,10 +53,6 @@ push:latest:
only:
- master
# -----------------------------------------------
# xpub-collabra ---------------------------------
# -----------------------------------------------
review:xpub-collabra:
image: pubsweet/deployer:latest
stage: review
......@@ -134,80 +130,3 @@ demo:xpub-collabra:
script:
- source deploy.sh
- create_deployment
# -----------------------------------------------
# xpub-ui ---------------------------------------
# -----------------------------------------------
#review:xpub-ui:
# image: pubsweet/deployer:latest
# stage: review
# variables:
# PACKAGE_NAME: xpub-ui
# environment:
# name: $PACKAGE_NAME/review/$CI_COMMIT_REF_NAME
# # !! kube-lego will fail if domain > 63 chars
# url: "http://${CI_ENVIRONMENT_SLUG}.${BASE_DOMAIN}"
# on_stop: stop_review:xpub-ui
# except:
# - master
# script:
# - source deploy.sh
# - create_deployment
#
#stop_review:xpub-ui:
# image: pubsweet/deployer:latest
# stage: review
# variables:
# PACKAGE_NAME: xpub-ui
# GIT_STRATEGY: none
# when: manual
# environment:
# name: $PACKAGE_NAME/review/$CI_COMMIT_REF_NAME
# action: stop
# script:
# - source deploy.sh
# - delete_deployment
#
#staging:xpub-ui:
# image: pubsweet/deployer:latest
# stage: staging
# variables:
# PACKAGE_NAME: xpub-ui
# environment:
# name: $PACKAGE_NAME/staging
# url: "https://${CI_ENVIRONMENT_SLUG}.${BASE_DOMAIN}"
# only:
# - master
# script:
# - source deploy.sh
# - create_deployment
#
#production:xpub-ui:
# image: pubsweet/deployer:latest
# stage: production
# variables:
# PACKAGE_NAME: xpub-ui
# environment:
# name: $PACKAGE_NAME/production
# url: "https://${CI_ENVIRONMENT_SLUG}.${BASE_DOMAIN}"
# when: manual
# only:
# - master
# script:
# - source deploy.sh
# - create_deployment
#
#demo:xpub-ui:
# image: pubsweet/deployer:latest
# stage: demo
# variables:
# PACKAGE_NAME: xpub-ui
# environment:
# name: $PACKAGE_NAME/demo
# url: "https://${CI_ENVIRONMENT_SLUG}.${BASE_DOMAIN}"
# when: manual
# script:
# - source deploy.sh
# - create_deployment
#
FROM xpub/xpub:base
COPY package.json yarn.lock ./
COPY lerna.json .babelrc .eslintignore .eslintrc .prettierrc .stylelintignore .stylelintrc ./
COPY packages packages
# TODO package namespacing no longer necessary
RUN mkdir -p ${HOME}/packages/xpub-collabra
WORKDIR ${HOME}/packages/xpub-collabra
RUN [ "yarn", "config", "set", "workspaces-experimental", "true" ]
COPY package.json yarn.lock ./
# We do a development install because react-styleguidist is a dev dependency
RUN [ "yarn", "install", "--frozen-lockfile" ]
......@@ -13,18 +13,18 @@ RUN [ "yarn", "install", "--frozen-lockfile" ]
RUN [ "yarn", "cache", "clean"]
RUN [ "rm", "-rf", "/npm-packages-offline-cache"]
ENV NODE_ENV "production"
COPY app.js .babelrc .eslintignore .eslintrc .prettierrc .stylelintignore .stylelintrc ./
# We are temporarily going to use the same image with different commands to deploy different apps in the monorepo. This is bad :(.
COPY static static
COPY api api
COPY webpack webpack
COPY config config
COPY logs logs
COPY app app
WORKDIR ${HOME}/packages/xpub-collabra
RUN [ "npx", "pubsweet", "build"]
ENV NODE_ENV "production"
## No xpub-ui to deploy yet
# WORKDIR ${HOME}/packages/xpub-ui
# RUN [ "npm", "run", "styleguide:build" ]
## Create file for kubernetes health checks
# RUN touch ./styleguide/health
RUN [ "npx", "pubsweet", "build"]
EXPOSE 3000
......
# xpub-collabra
An MVP implementation of the first design sessions with [Collabra Psychology](https://www.collabra.org/), which allows a user to go through the process of creating a submission, assigning editors and reviewers, submitting reviews and submitting a decision.
Note: xpub is still _very_ new. This repository contains an initial set of components but is not yet ready for use.
## Roadmap
......@@ -28,7 +32,7 @@ You can follow more fine-grained lists of things that we're working on
* `xpub-collabra`: a PubSweet application that provides configuration and routing for a journal.
### xpub packages
### xpub packages (located in pubsweet/pubsweet)
* `xpub-connect`: a helper component for connecting pages to data
* `xpub-edit`: WYSIWYG editors for use in xpub forms
......@@ -45,7 +49,7 @@ In the root directory, run `yarn` to install all the dependencies.
## Configuration
To enable manuscript conversion via INK, add the following values to `packages/xpub-collabra/config/local-development.json` (ask in [the xpub channel](https://mattermost.coko.foundation/coko/channels/xpub) if you need an account):
To enable manuscript conversion via INK, add the following values to `config/local-development.json` (ask in [the xpub channel](https://mattermost.coko.foundation/coko/channels/xpub) if you need an account):
```json
{
......@@ -62,9 +66,8 @@ To enable manuscript conversion via INK, add the following values to `packages/x
## Running the app
1. `cd packages/xpub-collabra`
2. The first time you run the app, initialise the database with `yarn run setupdb` (press Enter when asked for a collection title, to skip that step).
3. `yarn start`
1. The first time you run the app, initialise the database with `yarn run setupdb` (press Enter when asked for a collection title, to skip that step).
2. `yarn start`
## CI
......
File moved
File moved
File moved
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment