Giter Club home page Giter Club logo

borfolio's Introduction

Elevenpack

Get started quickly with Eleventy, while using modern JS & CSS workflows. Tools used: webpack, babel, PostCSS and Tailwind.

The focus is to have a minimal setup that allows modern JS & CSS features and a performant build output, with bundling and cache busting for the assets. Here's a quick list of features:

  • standard structure for new projects (check out the src folder)
  • basic initial layout (src/site/_includes/layouts/default.njk)
  • JS & CSS bundling through webpack
  • cache busting for production deployments
  • modern JS support through Babel
  • modern CSS support through PostCSS (postcss-import, postcss-preset-env and cssnano plugins included)
  • the Tailwind library is included by default
  • Vendor assets: anything in the src/vendor folder will be copied through to the output folder.

This repository is automatically published on Netlify at https://elevenpack.netlify.com/.

Contributions are welcome!

Usage

git clone [email protected]:deviousdodo/elevenpack.git mysite
cd mysite
yarn
yarn dev
# ... edit anything in src, yarn add other packages, etc

To publish your website, run yarn build and the output will be in the dist directory.

File structure

Everything in src/site will be converted by Eleventy - this is the input folder. The ouput folder is dist.

The src/img and src/vendor folders will be copied verbatim and you can reference any file by using the direct path, eg.

<img src="/img/example.png">
<link rel="stylesheet" href="/vendor/example.min.css">

The src/vendor folder is meant for external assets that you don't want to bundle (because they change rarely compared to your own source or for performance reasons).

The src/js and src/css folders will be bundled. The index.js & index.css files are the entry points and thus required.

Similar projects

If you'd like to try other starter projects then check out https://www.11ty.dev/docs/starter/

borfolio's People

Contributors

deviousdodo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.