Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aarongarciah/parcel-static-boilerplate

📦 Simple starter to write HTML, JS, and SCSS right away with no additional config.
https://github.com/aarongarciah/parcel-static-boilerplate

autoprefixer babel boilerplate eslint imagemin jamstack nunjucks parcel prettier sass scss static-site static-site-generator stylelint

Last synced: 4 months ago
JSON representation

📦 Simple starter to write HTML, JS, and SCSS right away with no additional config.

Awesome Lists containing this project

README

        

# Parcel Static Boilerplate

[![Actions Status](https://github.com/aarongarciah/parcel-static-boilerplate/workflows/CI/badge.svg)](https://github.com/aarongarciah/parcel-static-boilerplate/actions)
[![Known Vulnerabilities](https://snyk.io/test/github/aarongarciah/parcel-static-boilerplate/badge.svg?targetFile=package.json)](https://snyk.io/test/github/aarongarciah/parcel-static-boilerplate?targetFile=package.json)
[![Netlify Status](https://api.netlify.com/api/v1/badges/b634f3a6-0192-4258-8e27-54fa8a6d1e67/deploy-status)](https://app.netlify.com/sites/parcel-static-boilerplate/deploys)

Simple starter to start writing HTML, JS, and SCSS right away with no additional config. Can be used as a static site generator!

## Development

1. **Clone** or [download](https://github.com/aarongarciah/parcel-static-boilerplate/archive/master.zip) this repository.

```
git clone https://github.com/aarongarciah/parcel-static-boilerplate.git
```

2. **Install** dependencies.

```
npm install
```

3. **Run** dev mode. It will open a browser tab with the dev url [`http://localhost:1234/`](http://localhost:1234/).

```
npm run dev
```

## Production build

Run the build script and the optimized for production website will be generated in the `/dist` folder.

```
npm run build
```

## Serve production build locally

If you want to serve your production build (the generated `/dist` folder) locally just run this command and open [`http://localhost:5000/`](http://localhost:5000/) in your browser. This command runs the `npm run build` command before serving the `/dist` folder.

```
npm run serve
```

## Tech stack

- [Parcel](https://parceljs.org/)
- [Babel](https://babeljs.io/)
- [ESLint](https://eslint.org/)
- [Prettier](https://prettier.io/)
- [Sass](https://sass-lang.com/)
- [Autoprefixer](https://github.com/postcss/autoprefixer)
- [Stylelint](https://stylelint.io/)
- [Nunjucks](https://mozilla.github.io/nunjucks/)
- [Imagemin](https://github.com/imagemin/imagemin)

## To do

- [ ] Detail all features: linting, formatting, building, etc.
- [ ] Add all available commands.
- [ ] Explain why there are two `/static` folders.
- [ ] Warn against how Parcel treats the `site.webmanifest` file.
- [ ] Explain how to config Imagemin.
- [ ] Explain how to config Nunjucks.
- [ ] Find a good Nunjucks code editor formatter.
- [ ] Add recommended extensions for development.
- [ ] Add testing setup with Jest?