Commit Graph

30 Commits (6596d8f7bfc7a195cb90e86c502002b6351ed374)

Author SHA1 Message Date
Mrugesh Mohapatra be88a86e6e
feat(gitpod): use custom prebuilt image (#56074) 2024-09-12 22:34:35 +05:30
Sem Bauke eb84dce6ca
chore: remove Cypress (#55056) 2024-06-14 10:09:40 -07:00
Krzysztof G 326d15da99
chore(tools): generic env variable for challenge editor api location (#53179) 2024-01-18 16:19:49 -08:00
Shaun Hamilton 29cc25bd03
chore(gitpod): move prebuild config to project (#51890) 2023-10-10 20:11:41 +05:30
Shaun Hamilton d86a26fd27
chore(gitpod): build curriculum again (#51168) 2023-08-06 12:39:21 +05:30
Oliver Eyton-Williams 8d0c3557dd
refactor: move client specific scripts inside client (#51123) 2023-08-05 15:43:13 +00:00
Shaun Hamilton 67c4723a06
fix(gitpod): update to use mongosh (#50032
mongo is no longer installed with the workspace
2023-04-10 20:41:31 +05:30
Muhammed Mustafa 7761915f39
fix(docs): instruction of how to install local development environment (#49808)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-03-24 01:01:43 +05:30
Shaun Hamilton 1da3e95ee3
chore(.gitpod): rm extensions@X (#49641) 2023-03-09 14:36:48 +00:00
Oliver Eyton-Williams d7848ae01a
feat: migrate to pnpm for better workspace DX (#49293)
* feat: npm -> pnpm 

This resolves the issues with the gatsby client (gatsby-plugin-pnpm
deals with the fact that gatsby is relying on its own dependencies
being de-duped)
and challenge-editor (which doesn't seem to want to automatically install
codemirror and needed its own eslint config)

* fix: correct mocha path for curriculum tests

* fix: use select workspace with -F not -w

* fix: reorganise packages and restrict hoisting

pnpm works best if the workspaces keep their own dependencies, since
dependencies are not flattened and then what node resolves from a
require is predictable.

@types seem to be a special case and more care is required to prevent
them getting smushed together in the root (hence the .npmrc)

* fix: add types for tools + root

* fix: decouple challenge-auditor from client

* fix: add ui-components types

* fix(client): use the latest types for react 16

* fix: prettify

* fix: prettierignore pnpm-lock

* fix: relax hoisting

Turns out pnpm works just fine with types. I don't know what was going
wrong before, but there are no-longer any type conflicts.

* fix: add @redux-saga/core to fix eslint issue

It seems to only be redux-saga that import/named can't cope with, so it
is probably okay to work around this one.

* chore: add chai to tools/scripts/build

* fix: add store to root for cypress

* fix: allow cypress to download binaries

If we want to keep preventing cypress from downloading binaries, we can
figure out a workaround, but I'm allowing it to ease the transition to
pnpm.

My guess about why this is happening is that npm triggers Cypress's
postinstall script, but pnpm does not (because pnpm install only
installs if necessary, perferring to link)

* chore: re-enable pre/post scripts

* fix: update build scripts for client

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* chore: update engines to use pnpm


* fix: enable choice of (super)block for tests

Only 'nix machines for now.

* chore: pin pnpm to version 7

* chore: remove last npms

Except web + curriculum-server. I'll update them when I start work on
them again.

* fix: lockfile check to catch any package-locks

* fix(action): install pnpm for upcoming tests

* chore: add nodemon to new api

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-02 18:17:44 +00:00
Oliver Eyton-Williams 3a1ad99f0b
fix(.gitpod.yml): use lts node (#49382)
* fix: use lts node in gitpod

* fix: use custom Dockerfile

* fix: actually use the image...
2023-02-14 21:24:33 +05:30
Shaun Hamilton e22f87a085
chore(.gitpod): update extensions (#48104) 2022-10-18 02:43:14 +02:00
Shaun Hamilton b48f9140f4
chore: update gitpod config (#47566) 2022-09-20 20:15:22 +05:30
Shaun Hamilton cc7f584b96
feat(challenge-editor): make work in gitpod (#46784)
* feat(challenge-editor): make work in gitpod

* gitpod: make chal-editor ports public

* refactor: use .env files to set variables

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2022-07-08 11:25:36 +02:00
Mrugesh Mohapatra c1dc0332e7
fix(gitpod): notify user for open port (#46005) 2022-05-17 17:30:07 +01:00
Oliver Eyton-Williams 7216ca55cc
refactor: organise TypeScript config and migrate helpers (#44747)
* feat: allow more 1000 steps to be created at once

* refactor: start migrating to typescript

* refactor: delete-step to ts

* refactor: migrated some helpers

* refactor: migrate create-empty-steps

* refactor: migrate create-step-between

* refactor: finish migrating to TS

* refactor: migrate tests

* fix: ensure mock.restore is done after each test

* fix: prevent double-tscing

* fix: repair the tests

* chore: use ts-node for scripts

We don't need the performance boost of incremental compilation and
ts-node is easier to work with

* refactor: consolidate tsconfigs

* refactor: replace gulp

* fix: use ts-node for build-curriculum

* fix: allow ts compilation of config

* feat: create and use create:config script

* fix: add /config to eslint projects

* fix: remove gulp script
2022-01-25 11:34:16 +01:00
Shaun Hamilton 8a9bcb9400
feat(gitpod): open client in new tab (#42798) 2021-07-08 19:44:21 +05:30
Shaun Hamilton 0316918978
chore(dev): update gitpod extensions (#42706)
* chore(dev): update gitpod extensions

* add public visibility to ports 8000 & 3000
2021-07-02 00:42:39 +05:30
Oliver Eyton-Williams 90d2c3b344
feat: use webpack caching in development (#42286)
* feat: use webpack caching in development

This cuts build time for build-workers considerably.

* fix: update gitpod config

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-05-30 08:59:55 +01:00
Mrugesh Mohapatra bc46c683ad
fix(GitPod): add PR comments back to config
GitPod says they have rolled out a fix - trying it out. Will revert if this doesn't work
2021-04-22 19:54:15 +05:30
Shaun Hamilton 225d9c061d
feat(gitpod): prevent port notification, remove pr comment (#41656) 2021-03-30 13:25:30 +05:30
Mrugesh Mohapatra b5f4754e2a
fix: re-revert the API decoupling (#41263)
* fix(api): decouple api from curriculum

This reverts commit 8f0e441644 and
introduces the implementations from #40703.

* fix(gitpod): add curriculum build to GitPod

This reverts commit 706d70f58d and
introduces implementations from #41234.

* docs: update DevOps manual for api change (#41259)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-25 12:02:35 -08:00
Mrugesh Mohapatra 706d70f58d revert(gitpod): add curriculum build to GitPod
This reverts commit aa9db73e12
via PR #41234
2021-02-25 03:40:09 +05:30
Shaun Hamilton aa9db73e12
fix(gitpod): add curriculum build to GitPod (#41234)
* fix(gitpod): add curriculum build to GitPod

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-23 16:33:06 +01:00
Mrugesh Mohapatra 7f8e0592c8
fix(tools): remove gitpod checks from the PR (#41170) 2021-02-18 21:02:49 +05:30
Shaun Hamilton 850a1a2271
feat(dev): add Cypress and Puppeteer to GitPod (#40862) 2021-02-05 11:14:02 +05:30
Kartik Soneji 86f9087444
feat(gitpod): Add env variables to .bashrc so they can be accessed globally (#39296)
* feat(gitpod): Add env variables to .profile so they can be accessed globally.
2020-07-23 16:22:09 +02:00
Twaha Rahman 597ceba27f
chore: add ESLint extension in .gitpod.yml (#38879) 2020-05-25 13:47:48 +05:30
Jan Keromnes e9d753fc09 fix(tools): fix and accelerate automated gitpod dev setup (#36720)
* fix(tools): switch to official gitpod mongodb image
* fix(tools): accelerate gitpod start-up by prebuilding the client
* fix(tools): accelerate gitpod start-up by continuously prebuilding workspaces
* fix(tools): add setup|automated badge with new fork-compatible gitpod url
2019-08-30 15:12:13 +05:30
Sven Efftinge 769a67211f fix(tools): integrate gitpod for development workflow (#36302) 2019-08-06 21:28:07 +05:30