@protolith/morphic v0.1.3
morphic
Node.js Static Site Generator
Usage
mkdir morphic-sitecd morphic-sitegit initecho 'node_modules' > .gitignorenpm i @protolith/morphic@latestmkdir publicmkdir contentmkdir templatescd contentecho '---
title: Home
---
# <%= model.title %>
home page content' > index.mdcd ../templatesecho '<!DOCTYPE html>
<html>
<head>
<title><%= model.title %></title>
</head>
<body>
<%- model.content %>
</body>
</html>' > index.ejscd ..With the default files created, from the morphic-site folder run the command:
npx morphic --serveThis will create an output folder containing the generated html, and open a browser window to view.
Build
Clone repo and run:
npm run buildor
npm run build-typecheckThese commands will compile the typescript src directory to a new folder named dist, containing the javascript output.
Building without typechecking will not pass source files through the typescript compiler (only babel).
Notice
Morphic is very much still a work in progress and is not ready for production use.
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago