Skip to content

Commit

Permalink
Merge pull request #94 from spacenomads/issue/93-readme-review
Browse files Browse the repository at this point in the history
Issue/93 readme review
  • Loading branch information
oneeyedman authored Oct 12, 2023
2 parents 4b93925 + b5c9427 commit 94edb29
Showing 1 changed file with 59 additions and 19 deletions.
78 changes: 59 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,61 @@

# Asteroids

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)
![GitHub package.json version (branch)](https://img.shields.io/github/package-json/v/spacenomads/Asteroids/main?label=Version&labelColor=414141&color=ffcc00)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg?labelColor=%23414141&color=%23ffcc00)](code_of_conduct.md)

Ahoy! This kit is our all-new/all-old web starter kit. Use it well!

Ahoy! This kit is my all-new/all-old web starter kit. Use it well!

<center>
<img src="asteroids-700.png" width="350">
</center>

With the help of [Gulp](https://gulpjs.com) and [11ty](https://www.11ty.dev/), Asteroids includes SCSS processing, JS minification and [Nunjucks](https://mozilla.github.io/nunjucks/), a super cool template engine created by Mozilla.

## Required steps: Installing Node and Gulp

To run Asteroids you'll need to have Node and Gulp installed:

- [NodeJS](https://nodejs.org/en) LTS version should be okay.
- [Gulp](https://gulpjs.com/) globally installed.

> 🤓 Running on Windows? Just remember to use the Git Bash console instead of that horrible thing called PowerShell.
### NodeJS

Go to the [official NodeJS website](https://nodejs.org/en) and download the version that best suits you. The LTS version should work fine. Install it, and your done :)

You can check if everything went okay by opening a terminal window and typing:

```shell
node -v
```

## Gulp

We'll need Gulp to process our SCSS and JS files because Eleventy doesn't do this.
Go to the [official Gulp website](https://gulpjs.com/docs/en/getting-started/quick-start) and follow the installing instructions. They should be something like open a terminal and type:

```shell
npm install --global gulp-cli
```

But it's best to check it out ;)

You can also check that everything went the way it was supposed to by opening a new terminal window and typing:

```shell
gulp -v
```

## Quickstart

Install [Node.js](https://nodejs.org/) and [Gulp](https://gulpjs.com) to run this starter kit.
Once you've installed both NodeJS and Gulp, let's run this starter kit:

1. Download or clone the repository
2. Install the local dependencies with `$ npm i`
3. Run the kit development stuff with `$ npm start`
1. Download or clone the repository.
2. Install the local dependencies with `$ npm i`.
3. Run the kit development stuff with `$ npm start`.

## Tasks

Expand Down Expand Up @@ -91,32 +128,35 @@ The project folder structure looks like this:

Asteroids do not include a CSS reset stylesheet anymore, but we have added two awesome tools:

* A **csscomb** JSON file to use with your code editor as your own risk :)
* The media query combiner tool from @hail2u [**css-mqpacker**](https://github.com/hail2u/node-css-mqpacker/pkgs/npm/css-mqpacker).
- A **csscomb** JSON file to use with your code editor as your own risk :)
- The media query combiner tool from @hail2u [**css-mqpacker**](https://github.com/hail2u/node-css-mqpacker/pkgs/npm/css-mqpacker).

## LINTERS AND STUFF

A few linter configurations are also included in Asteroids: Eslint, Stylelint and Markdown lint. You may need certain plugins or extensions for your code editor in order to use them.

> 👉 There is no such thing as a pre commit configuration or autoformat setting, these linters are only meant to show "problems" as you edit any JS/SCSS/MD file.

## Browser Support

That's up to you :), although you can find a "browserlist" property for the autoprefixer in the package.json file.

## TODO

So, what is next?

* [X] Gulp task to generate a timestamped deploy folder
* [X] Add CSS Linters
* [X] Add JS Linters
* [X] Use EJS/Nunjucks instead of PUG
* [X] Quit using Jquery
* [X] Migrate to 11ty
* [ ] Add a GitHub Pages action
* [ ] Mobile icons + PSD source file
* ~~Update modernizr checkers~~
* ~~Fix PUG/HTML reload loop~~
- [ ] Use SASS Dart.
- [ ] Process JS files: minify and obfuscate?
- [ ] Add a GitHub Pages action.
- [ ] Mobile icons + PSD source file.
- [X] Gulp task to generate a timestamped deploy folder. @done
- [X] Add CSS Linters. @done
- [X] Add JS Linters. @done
- [X] Use EJS/Nunjucks instead of PUG. @done
- [X] Quit using Jquery. @done
- [X] Migrate to 11ty. @done
- [X] ~~Update modernizr checkers~~. @wontDoIt
- [X] ~~Fix PUG/HTML reload loop~~. @wontDoIt

## Request a feature

Expand Down

0 comments on commit 94edb29

Please sign in to comment.