<aside> ⚠️ To fully setup a dendry project, you will need a working node/javascript environnement. Dendry has been tested successfully with node ≥ 16.
</aside>
First, you’ll need to bootstrap an empty project. Our project will be named Treasure Island so, let’s issue the first command
npx aucchen/dendry new treasure-island
This will create a treasure-island
directory, that will contain a source
directory. We’ll look inside source
in a moment. First, let’s finish the setup and actually add dendry to the project.
cd treasure-island
npm add aucchen/dendry
Open package.json
and add the following scripts
entry.
{
"dependencies": {
"dendry": "github:aucchen/dendry"
},
"scripts": {
"dendry": "dendry"
}
}
Now, let’s build the sample project :
npm run dendry make-html
A new folder, out
will be created.
Open out/html/index.html
in your favorite browser. Et voilà !