A starter repository showing how to build a blog with the Eleventy static site generator.
git clone https://github.com/llighter/yunha-ind.git my-blog-name
cd my-blog-name
Specifically have a look at .eleventy.js
to see if you want to configure any Eleventy options differently.
npm install
In this project, I'm using rollup
and gulp
and sass
with eleventy
. You need to use npm run build
command to build this project at Once.
"scripts": {
"clean": "rm -rf docs",
"start": "eleventy --serve",
"build:gulp": "npx gulp build",
"build:eleventy": "eleventy --quiet",
"build:rollup": "node build.js",
"build:sass": "node ./compile-css.js src/styles/all.scss docs/app.css",
"build": "npm-run-all --serial clean build:sass build:eleventy build:gulp build:rollup",
"test": "echo \"Error: no test specified\" && exit 1",
"deploy": "ELEVENTY_ENV=prod npm run build"
},
# Build all at once
npm run build
# Deploy all at once
npm run deploy
Or build and host locally for local development
# run directly
npx eleventy --serve
# run with npm command
npm run start