Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ node_modules/
test/
scripts/
.eslintrc.js
jest.config.js
src/libs
@types
9 changes: 1 addition & 8 deletions .github/workflows/pull_request_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,4 @@ jobs:

- name: Install Dependencies
run: yarn install
if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))

# - name: Publish next canary release of @thothai/thoth-core
# run: git checkout yarn.lock && yarn publish:canary
# if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))
# - name: Publish next canary release of @latitudegames/thoth-core
# run: git checkout yarn.lock && yarn publish:canary
# if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))
if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

23 changes: 0 additions & 23 deletions .vscode/launch.json

This file was deleted.

8 changes: 0 additions & 8 deletions .vscode/settings.json

This file was deleted.

12 changes: 0 additions & 12 deletions CONTRIBUTORS.txt

This file was deleted.

4 changes: 0 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ Copyright (c) 2022 Latitude, Inc.
All rights reserved.
https://www.latitude.io

Licensed under the Apache License version 2.0 (the "License");
You may not use this software except in compliance with the License.
You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0
Expand Down
35 changes: 0 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,11 @@ yarn run dev:windows
We use dotenv-flow for local environment variable management

Go to client folder, and create a new file called .env.local -- copy and .env vars you want to set from .env there
If you are developing independently and are not a member of Latitude Games team, set **REACT_APP_USE_LATITUDE=false**

Go to server folder, and create a new file called .env.local -- copy and .env vars you want to set from .env there
If you are developing independently and are not a member of Latitude Games team, set **USE_LATITUDE=false**

## Client Setup

1. Generate a [Personal Access Token](https://github.com/settings/tokens) on Github which will allow you to install private latitude packages. Make sure you check the `write:packages` option. (`read:packages` will suffice as well if you aren't planning on publishing new versions of @thothai/thoth-core)
1. In your `~/.bashrc`, append the line `export NPM_TOKEN=YourTokenGoesHere`, and restart your terminal (you can run `source ~/.bashrc` to do so)
1. Clone the repository
1. Navigate to the project root by running `cd thoth`
1. Run `yarn install` to install project dependencies
Expand All @@ -57,37 +53,6 @@ If you are developing independently and are not a member of Latitude Games team,
1. Core the contents of `core/.env.default` to `core/.env` and modify the secrets as necessary
1. Step 2 in Monorepo Development Setup

## Monorepo Development

Within the yarn workspace we need to be mindful of which version of the shared package @thothai/thoth-core we are including in our local development setup and our deploys to Netlify.

You can either:

1. Target a published version of [@thothai/thoth-core](https://github.com/latitudegames/thoth/packages/983711) in client/package.json
2. Or actively develop against the current state of the repository. (By ensuring that client/package.json is targetting the same version of @thothai/thoth-core that is currently listed in core/package.json)

If you are testing with the Latitude API locally you can point the latitude api to your local thoth package:

1. making the dependance `"@thothai/thoth-core": "../thoth/core"`
or
2. run `yarn link` inside '/packages/core' and then copy the command it generates for you and run that command in your root latitude api path. This will tell your latitude api to use the simlinked version of thoth that your actively developing.

## @thothai/thoth-core CI

### Testing

On Pull Request, GitHub actions will first determine if the diff contains changes in the `core` directory. If so
and there isn't an active `thoth-core` labelled PR already open - it will proceed with building and deploying a Canary Release
to GitHub packages. There can only be one `thoth-core` labelled PR active at a time, so if one exists additional PR's will be labelled `thoth-core-draft` by the CI. This `thoth-core-draft` label can be removed, and the CI re-run to build a canary once the unique `thoth-core` label position has been vacated.

The latest canary release can be tested and installed locally with `yarn add @thothai/thoth-core@canary`. The Netlify Deploy Preview is configured to sense `thoth-core` PR's as well and targets the latest canary release, but it runs concurrently to the canary publishing process. You can test a canary release of `thoth-core` on your branch's Deploy Preview by re-deploying from the Netlify UI for your branch. It is important to note that `thoth-core-draft` PR's will still have a deploy preview on Netlify, but will be building with the latest canary release of `thoth-core` which may be unrelated to that PR's changes until it had it's own canary release and been re-deployed.

### Releases

When a `thoth-core` PR has been merged with main, the CI will create a prerelease based on the last commit, publish
@thothai/thoth-core to GitHub packages and take care of incrementing the patch version in core/package.json to prepare
for the next prerelease.

## Available Scripts

In the project directory, you can run:
Expand Down
23 changes: 23 additions & 0 deletions lerna-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
0 silly argv {
0 silly argv _: [ 'exec' ],
0 silly argv scope: '@thothai/thoth-core',
0 silly argv args: [],
0 silly argv '--': [ 'yarn', 'start' ],
0 silly argv lernaVersion: '4.0.0',
0 silly argv '$0': 'node_modules/.bin/lerna'
0 silly argv }
1 notice cli v4.0.0
2 verbose rootPath /home/beast/Documents/GitHub/nothing-thoth
3 error JSONError: Expected double-quoted property name in JSON at position 172 while parsing '{ "name": "@thothai/thoth-sharedb", ' in packages/sharedb/package.json
3 error
3 error   7 | "scripts": {
3 error   8 | "start": "nodemon index.ts",
3 error > 9 | },
3 error   | ^
3 error   10 | "keywords": [],
3 error   11 | "author": "",
3 error   12 | "license": "ISC",
3 error
3 error at parseJson (/home/beast/Documents/GitHub/nothing-thoth/node_modules/parse-json/index.js:29:21)
3 error at parse (/home/beast/Documents/GitHub/nothing-thoth/node_modules/@lerna/project/node_modules/load-json-file/index.js:15:9)
3 error at module.exports (/home/beast/Documents/GitHub/nothing-thoth/node_modules/@lerna/project/node_modules/load-json-file/index.js:18:47)
76 changes: 0 additions & 76 deletions model-notes.md

This file was deleted.

11 changes: 0 additions & 11 deletions netlify/plugins/conditional-canary/index.js

This file was deleted.

1 change: 0 additions & 1 deletion netlify/plugins/conditional-canary/manifest.yml

This file was deleted.

5 changes: 0 additions & 5 deletions netlify/plugins/staging-canary/index.js

This file was deleted.

1 change: 0 additions & 1 deletion netlify/plugins/staging-canary/manifest.yml

This file was deleted.

10 changes: 0 additions & 10 deletions ot-notes.md

This file was deleted.

Loading