0.20.1-canary.6 • Published 1 month ago

@codecademy/workshop-client v0.20.1-canary.6

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

Workshop JavaScript Client Library

The Workshop Client library is installed in Codecademy web clients and provides access from those clients to code execution services (Propeller, previously known as Workshop). Propeller manages a persistent websocket connection allowing clients to sync user code, execute that code in a variety of server environments, run terminal commands, and perform other code/workspace management and execution actions.

Testing changes locally

  1. Check out both this repo and the Codecademy repo
  2. Run yarn build in the workshop-client directory
  3. Run yarn link in the workshop-client directory
  4. In the monorepo, run yarn link @codecademy/workshop-client
  5. Run (or re-run) yarn nx start learning-environment in the monorepo
  6. Verify that you can connect to the LE in your local branch. If you continue to make changes in the client, you'll need to re-yarn build and restart the LE application.

Starting a session

To start a session, create a client instance and connect to workshop.

import WorkshopSession from '@codecademy/workshop-client';

let session = new WorkshopSession({
  protocol: 'https',
  apiBase: 'effective-lamp.cc-propeller.cloud',
  workspaceSlug: 'my-workspace',
  jwt: 'my.user.jwt',
});

session
  .initialize()
  .then(() => {
    // Ready to use
  })
  .catch(error => {
    // Something went wrong
  });

Publishing the package

This package is automatically published when the version number changes

  • merge your PR into main
  • create a new PR that updates the version of the package in package.json. Base the version bump on all of the changes that will be added in this version.
  • merge the version PR into main
  • check the actions to see when the package is published
0.20.1-canary.6

1 month ago

0.20.1-canary.5

1 month ago

0.20.1-canary.2

1 month ago

0.20.1-canary.3

1 month ago

0.20.1-canary.0

1 month ago

0.20.1-canary.1

1 month ago

0.20.1-canary.4

1 month ago

0.20.0

2 months ago

0.19.0

2 months ago

0.18.0

3 months ago

0.17.1

3 months ago

0.15.0

10 months ago

0.17.0

9 months ago

0.14.0

10 months ago

0.16.0

10 months ago

0.13.0

12 months ago

0.11.0

1 year ago

0.12.0

1 year ago

0.10.1

2 years ago

0.10.2

2 years ago

0.10.0

2 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.9.0-beta

3 years ago

0.9.0-beta2

3 years ago

0.8.4

3 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.4-0

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.5

4 years ago

0.5.4

4 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

7 years ago

0.0.36

7 years ago

0.0.35

7 years ago

0.0.34

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

7 years ago

0.0.30

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.27

7 years ago

0.0.26

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago