Welcome, camper
⛺ Campsite is a fresh new static site generator, pack light, pitch fast, and build sites with a cozy developer experience. Campsite supports Markdown, Nunjucks, Liquid, Vue, and Alpine.
Prerequisites
Before you begin, ensure you have the following installed on your machine:
- Node.js: Campsite requires Node.js version 14 or higher. You can download it from nodejs.org.
- npm or yarn: npm comes bundled with Node.js, but you can also use yarn as an alternative package manager. You can install yarn from yarnpkg.com.
- Git: While not strictly necessary, having Git installed is recommended for version control and managing your Campsite projects. You can download it from git-scm.com.
Installation Steps
To create your first Campsite site, follow these steps:
- Install Campsite: Use npm or yarn to install Campsite globally.
npm install -g campsitejs - Create a New Site: Run the following command to create a new Campsite project.
campsitejs my-site-name - Navigate to Your Site: Change into your new site directory.
cd my-site-name - Start the Development Server: Launch the development server to preview your site.
campsitejs dev - Build for Production: When you’re ready to deploy, build your site with:
The output will be in thecampsitejs build./campfire/folder, this can be changed in yourcampsite.config.jsfile.
Have fun setting up your campsite! 🌲🏕️🔥 Ps. better docs are coming very soon.
-Christophor S. Wilson, Creator of Campsite