-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7346f11
Showing
24 changed files
with
7,255 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# npm | ||
/node_modules | ||
|
||
# Logs | ||
npm-debug.log* | ||
|
||
# 11ty | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/dist | ||
/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"proseWrap": "always", | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.