Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jstayton committed Oct 1, 2020
0 parents commit 7346f11
Show file tree
Hide file tree
Showing 24 changed files with 7,255 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = (eleventyConfig) => {
eleventyConfig.setUseGitIgnore(false)

eleventyConfig.addWatchTarget('./public')

eleventyConfig.addWatchTarget('./tmp')

eleventyConfig.addPassthroughCopy({ './public': '.' })

eleventyConfig.addPassthroughCopy('./src/_assets/*.(jpg|svg)')

eleventyConfig.addPassthroughCopy({
'./tmp/_assets/main.css': './_assets/main.css',
})

eleventyConfig.addShortcode('version', () => String(Date.now()))

eleventyConfig.addPairedShortcode('env', (content, env) =>
(process.env.NODE_ENV || 'development') === env ? content : ''
)

return {
dir: {
input: 'src',
output: 'dist',
},
}
}
8 changes: 8 additions & 0 deletions .eleventyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# npm
/node_modules

# Logs
npm-debug.log*

# 11ty
/dist
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# npm
/node_modules

# Logs
npm-debug.log*

# 11ty
/dist

# Temp
/tmp/**
!/tmp/.keep
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist
/tmp
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"proseWrap": "always",
"semi": false,
"singleQuote": true
}
14 changes: 14 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"git": {
"commitMessage": "Release v${version}",
"tagName": "v${version}",
"tagAnnotation": "Release v${version}"
},
"github": {
"release": true,
"releaseName": "Release v${version}"
},
"npm": {
"publish": false
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 piratepx

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
75 changes: 75 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# 🏴‍☠️px Website

The website at https://www.piratepx.com. Built with
[11ty](https://www.11ty.dev/) and [Tailwind CSS](https://tailwindcss.com/).

piratepx is a simple, privacy-respecting, no cookie, zero JavaScript, 35 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!

## Development

The following includes the necessary steps to get setup for development. For
11ty-specific details, see their [docs](https://www.11ty.dev/docs/).

### Prerequisites

The only prerequisite is a compatible version of [Node.js](https://nodejs.org/)
(see `engines.node` in [`package.json`](package.json)).
[nvm](https://github.com/nvm-sh/nvm) is the recommended installation method:

```bash
$ nvm install
```

### Dependencies

Install dependencies with npm:

```bash
$ npm install
```

### Start

Start the development server:

```bash
$ npm run dev
```

### Code Style

[Prettier](https://prettier.com/) is setup to enforce a consistent code style.
It's highly recommended to
[add an integration to your editor](https://prettier.io/docs/en/editors.html)
that automatically formats on save.

To run via the command line:

```bash
$ 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!](https://github.com/release-it/release-it) is then used to
interactively orchestrate the release process:

```bash
$ npm run release
```

### Production Build

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

```bash
$ npm run build
```

This creates a `dist` directory with the files.
Loading

0 comments on commit 7346f11

Please sign in to comment.