Skip to content

jspm/jspm.org

Repository files navigation

JSPM.ORG

Local Setup

If you don't have core access to JSPM as a core contributor, fork and clone import-map, generator, and jspm-cli. JSPM.ORG is built using git submodules, so you'll need to fork and clone the submodule repositories as well.

To do this quickly, use the Github CLI; nstallation Instructions here.

Submodule Setup

Fork and clone each of the submodule repositories:

gh repo fork jspm/import-map --clone && \
gh repo fork jspm/generator --clone && \
gh repo fork jspm/jspm-cli --clone

Clone the jspm.org repository:

gh repo fork jspm/jspm.org --clone

Set up the submodules:

git submodule update --init

To ensure your submodules are up to date, run:

git submodule update --remote

Node setup

Insure you're using the correct version of node:

n i auto
# or nvm i

Recursively install node modules:

npm install --recursive

Chomp Setup (local development)

Install chomp globally:

npm install -g chomp

Now you should be able to build the site:

chomp build

And with watch

chomp build --watch

Troubleshooting

Typedoc publishes breaking changes with feature updates. This may cause builds to fail.

To fix this, ensure you're using the exact version of Typedoc and you're using the correct version of node.

File already exists error:

Delete the file/folder and try again.

Version mismatch:

Ensure git submodules are up to date. Update the versions specified in the root chompfile.toml.