2.129.6 • Published 1 month ago

@sjcrh/proteinpaint-shared v2.129.6

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

@sjcrh/proteinpaint-shared

Background

This workspace was separate from the deprecated server/shared dir. The code here are meant to be consumed at runtime by either client or server code. Do NOT put utility/helper code here that are specific to only one workspace, those files should be saved in that workspace.

IMPORTANT:

  • code must work in browser and nodejs: do not import libs, deps, or globals that are specific to nodejs or browser environments, like fs or DOM elements

Develop

For server dev, the tsx library will accept imports with or without file extension. Server (consumer) code MUST use the .js file extension even when importing #shared/*.ts files.

For client dev, the esbuild config will bundle the #shared imports correctly, even when .js extension is used to import what is actually a .ts file, by using custom plugins like dirname.

Build

This package will be bundled as part of the client dependencies.

For server builds, run npm run build to generate src/*.js from src/*.ts files. This is also automatically done as part of the prepack package script.

NOTE: For now, only code in .js files.

If using .ts files:

  1. commit the generated .js files
  2. add the js file to package.json prettier command keep doing this until a dev script or another approach can take care of the .js file requirement.

Test

# run all tests
npm test

# run one script
node test/mds3tk.unit.spec.js
2.129.1

2 months ago

2.109.0

5 months ago

2.109.1

4 months ago

2.126.0

2 months ago

2.124.0

2 months ago

2.119.0-0

3 months ago

2.121.0

3 months ago

2.120.1

3 months ago

2.88.2

7 months ago

2.95.0

6 months ago

2.96.0

6 months ago

2.118.3-2

3 months ago

2.99.0

6 months ago

2.99.1

6 months ago

2.98.0

6 months ago

2.112.1-0

4 months ago

2.109.1-0

4 months ago

2.119.0

3 months ago

2.118.0

3 months ago

2.117.0

3 months ago

2.116.0

4 months ago

2.115.0

4 months ago

2.114.0

4 months ago

2.113.0

4 months ago

2.112.0

4 months ago

2.111.0

4 months ago

2.116.1-1

3 months ago

2.85.0

8 months ago

2.83.0

8 months ago

2.87.1

8 months ago

2.87.0

8 months ago

2.86.0

8 months ago

2.129.6

1 month ago

2.129.5

1 month ago

2.106.0

5 months ago

2.129.2

2 months ago

2.108.0

5 months ago

2.79.4

10 months ago

2.79.3

10 months ago

2.79.2

10 months ago

2.79.1

10 months ago

2.78.0-0

10 months ago