[go: up one dir, main page]

Skip to content

piratepx/www

Repository files navigation

🏴‍☠️ piratepx / website

The website at https://www.piratepx.com. Built with 11ty and Tailwind CSS.

piratepx is a simple, privacy-respecting, no cookie, zero JavaScript, 37 byte counter pixel for websites, mobile apps, server-side APIs, CLIs, and just about anywhere else.

Sign up for free at https://www.piratepx.com! piratepx

Development

The following includes the necessary steps to get setup for development. For 11ty-specific details, see their docs.

Prerequisites

The only prerequisite is a compatible version of Node.js (see engines.node in package.json). nvm is the recommended installation method:

$ nvm install

Dependencies

Install dependencies with npm:

$ npm install

Start

Start the development server:

$ npm run dev

Code Style

Prettier is setup to enforce a consistent code style. It's highly recommended to add an integration to your editor that automatically formats on save.

To run via the command line:

$ npm run lint

Releasing

After development is done in the development branch and is ready for release, it should be merged into the master branch, where the latest release code lives. Release It! is then used to interactively orchestrate the release process:

$ npm run release

Production Build

The production-optimized static site can be built by running:

$ npm run build

This creates a dist directory with the files.