create-afterion-landing
v0.1.0
Published
Bootstrap an Afterion agency landing website from the Astro template.
Maintainers
Readme
create-afterion-landing
Bootstrap an Afterion agency landing website from the Astro template with a small interactive CLI.
Run anywhere (no install)
With Node.js 20+ you can run it without installing:
npx create-afterion-landingOr with pnpm:
pnpm dlx create-afterion-landingOptional: create a project in a specific directory and skip prompts:
npx create-afterion-landing my-site --yesInstall globally (optional)
npm install -g create-afterion-landing
# or
pnpm add -g create-afterion-landingThen run from any directory:
create-afterion-landingLocal development
pnpm install
pnpm build
node dist/index.jsOr run without building:
pnpm devFlags
node dist/index.js my-site \
--site-name "My Agency" \
--site-url "https://myagency.com" \
--contact-email "[email protected]" \
--locales en,vi \
--default-locale en \
--no-gitPublishing to npm (free, public packages)
From the package root:
pnpm build
npm publishIf the name create-afterion-landing is taken, use a scoped name in package.json, e.g. "name": "@your-org/create-afterion-landing", then publish with npm publish --access public.
Notes
- The CLI clones the Afterion landing template from GitHub into a temporary directory by default.
- Use
--template-dir ../afterion-landing-website-templatefor local development against a checked-out template copy.
