Skip to content

Commit

Permalink
feat: switch to Eleventy (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander authored May 2, 2020
1 parent cb3e09a commit 5223386
Show file tree
Hide file tree
Showing 156 changed files with 10,711 additions and 10,882 deletions.
3 changes: 3 additions & 0 deletions .browserlistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Browsers that we support

> 1%
27 changes: 11 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
var double = "double";

module.exports = {
root: true,
env: {
browser: true,
node: true
es6: true,
node: true,
browser: true
},
extends: "eslint:recommended",
parserOptions: {
parser: 'babel-eslint'
sourceType: "module",
ecmaVersion: 2017
},
extends: [
'@nuxtjs',
'plugin:nuxt/recommended'
],
"ignorePatterns": ["src/_includes/static/", "dist"],
rules: {
"indent": [1, "tab"],
"no-tabs": 0,
"quotes": [2, "double", { "avoidEscape": true }],
"import/no-named-as-default": 0,
"semi": [2, "always"],
"vue/html-indent": [1, "tab"]
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"]
}
}
};
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
* [ ] This pull request has been linted by running `npm run lint` without errors
* [ ] This pull request has been tested by running `npm run dev` and reviewing affected routes
* [ ] This pull request has been built by running `npm run generate` without errors
* [ ] This pull request has been tested by running `npm run start` and reviewing affected routes
* [ ] This pull request has been built by running `npm run build` without errors
* [ ] This isn't a duplicate of an existing pull request

## Description
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
run: |
npm ci
npm test
npm run generate
npm run build
env:
CI: true
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,9 @@ sw.*

# Virtual Environment Settings
Pipfile

# Static files
src/_includes/static

# Local Netlify folder
.netlify
2 changes: 1 addition & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"default": true,
"default": true,
"MD013": { "line_length": 120 },
"MD026": false,
"MD033": false
Expand Down
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/inclusive-design/wecount.inclusivedesign.ca/Test%20and%20build?label=github&style=flat-square)](https://github.com/inclusive-design/wecount.inclusivedesign.ca/actions)
[![Netlify Status](https://img.shields.io/netlify/d63b3d00-fd5f-47d7-8e43-d09bf4e8eb4f?style=flat-square)](https://app.netlify.com/sites/wecount/deploys)

The source files for the We Count website, built with [Nuxt](https://nuxtjs.org/).
The source files for the We Count website, built with [Eleventy](https://11ty.dev/).

## Getting Started

Expand All @@ -29,10 +29,11 @@ npm ci

## How to Run

To run the website in local development mode, enter the following in your command line:
To run the website in local development mode that supports a live reload at file changes, enter the following in your
command line:

```bash
npm run dev
npm run start
```

## How to Test
Expand All @@ -46,7 +47,7 @@ npm run lint

We use the following lint configurations:

- [ESLint (JS/Vue)](https://github.com/inclusive-design/wecount.inclusivedesign.ca/blob/master/.eslintrc.js)
- TODO: [ESLint (JS)](https://github.com/inclusive-design/wecount.inclusivedesign.ca/blob/master/.eslintrc.js)
- [Stylelint (CSS/SCSS)](https://github.com/inclusive-design/wecount.inclusivedesign.ca/blob/master/stylelint.config.js)
- [MarkdownLint (Markdown)](https://github.com/inclusive-design/wecount.inclusivedesign.ca/blob/master/.markdownlint.json)

Expand All @@ -55,14 +56,7 @@ We use the following lint configurations:
To build a static version of the website, enter the following in your command line:

```bash
nuxt generate
```

The static website's files will be in the newly-created `dist` directory in the root of the project.
To preview the static website, enter the following into your command line:

```bash
npx serve dist
npm run build
```

## How to Deploy
Expand Down
7 changes: 0 additions & 7 deletions assets/README.md

This file was deleted.

40 changes: 0 additions & 40 deletions assets/config.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/images/logo_canada.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/images/logo_idrc.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/images/logo_wecount.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/images/next.svg

This file was deleted.

3 changes: 0 additions & 3 deletions assets/images/prev.svg

This file was deleted.

24 changes: 0 additions & 24 deletions components/Aside.vue

This file was deleted.

Loading

0 comments on commit 5223386

Please sign in to comment.