Skip to content

Guide: Adding Larva to a project

Lara Schenck edited this page Mar 30, 2021 · 4 revisions

OUT OF DATE as of 3/30/21

In progress - do not follow this yet!

In any project:

If working in a new project, add a directory called assets/ inside the theme folder. If in an existing project, you will use the directory called 'larva' generated by the command.

Step 1: Install Larva

# If there is already a package.json, skip this step.
$ npm init

# This command will install Larva and its dependencies, and generate some starter files.
$ npx @penskemediacorp/larva init --save-dev

This init command will copy a directory called larva/ that contains a starter files and config.

Step 2: Move contents larva/ into the root of assets.

....todo