项目作者: aarongarciah

项目描述 :
📦 Simple starter to write HTML, JS, and SCSS right away with no additional config.
高级语言: HTML
项目地址: git://github.com/aarongarciah/parcel-static-boilerplate.git
创建时间: 2019-03-24T09:21:52Z
项目社区:https://github.com/aarongarciah/parcel-static-boilerplate

开源协议:MIT License

下载


Parcel Static Boilerplate

Actions Status
Known Vulnerabilities
Netlify Status

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 this repository.

    1. git clone https://github.com/aarongarciah/parcel-static-boilerplate.git
  2. Install dependencies.

    1. npm install
  3. Run dev mode. It will open a browser tab with the dev url http://localhost:1234/.

    1. npm run dev

Production build

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

  1. 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/ in your browser. This command runs the npm run build command before serving the /dist folder.

  1. npm run serve

Tech stack

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?