0.0.20 • Published 9 months ago
@jeromeetienne/static_builder v0.0.20
Static Web Builder
It is a simple static web builder. It has been built to build static web pages.
It works for me 👍. it has been designed mainly for my own use.
How to install
npm install @jeromeeetienne/static_builderHow to use
npx static_builder -hHow to use with npx
When it isnt installed, you can use it with npx
npx @jeromeeetienne/static_builder -hWhen it is installed, you can use it with npx
npx static_builder -hHow to publish a new npm version
npm run publish- the npm organisation where it is published
- the npm page itself https://www.npmjs.com/package/@jeromeetienne/static_builder
Goal Declaration
./webis for development only,./distis for production only- We convert
./webto./distusing this script
Why to do it manually
- i tried with vite... it was easy at first 😃 and then it becames a nightmare
- i lose time trying to understand how vite works, and working around it
./web File Structure
./webhas 'pages' e.g../web/home/is the home page./web/{page}/index.htmlis the html page./web/{page}/js/main.jsis the entry point for js./web/{page}/css/main.cssis the entry point for css
File processing
.html.ejsneeds to be converted to.html.jsneeds to be bundled and minified.cssneeds to be bundled and minified./web/{page}/vendor/is copied as is./web/images/is copied as is./web/index.htmlis copied as is- a CNAME file is copied to
./dist- it is the github pages domain - contentmagick.ai