Code Monkey home page Code Monkey logo

eleventy-base's Introduction

Starter project for static site using Eleventy

This is a startup project based on Eleventy, a great and simple Static Site Generator.

The configuration of this work environment includes:

  • A scaffold to start building quickly with Eleventy.
  • Webpack configuration for development and production environments.
  • Preprocessing SASS files to CSS.
  • Babel for compiler modern Javascript.
  • Nunjuck configuration as template engine.
  • Compile from Vue Single File Components.
  • CSS and Javascript minified bundles.
  • Asset management and optimization.
  • Configuration file for publish in Netlify.

Install

$ npm i

Development Mode

$ npm run dev

Development mode runs a local web server with hot-reloading function at http: // localhost: 8080

Production Mode

The production mode generates precompiled templates, optimized CSS styles and javascript files building the website ready for publication in the /dist folder.

$ npm run build

Netlify functions

It´s possible to run and test our lambda functions in the local development environment without the need to publish or deploy. To do this we will globally install the Netlify CLI with the following command:

$ npm i -g netlify-cli

Once installed we can run the Netlify development environment:

$ netlify dev

To execute our function we will access to the path:

/localhost:8888/.netlify/functions/{{FUNCTION_NAME}}

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

[0.2.3] - 2020-07-22

Fixed

  • Update npm depencencies (lodash security vulnerability)

[0.2.2] - 2019-12-30

Fixed

  • Update deprecated uglifyjs-webpack-plugin

[0.2.1] - 2019-11-25

Fixed

Added

  • Add babel and ES6 in packege.json keywords.
  • Added a javascript lambda function example file /functions/test.js.
  • Added /functions folder.

Changed

  • README.md review translation and Changelog.
  • Changed netlify.toml with Netlify functions directory config.

Removed

  • Delete typescript in package.json kewords.

[0.1.0] - 2019-10-05

Fixed

  • Absolute path for main.css & main.js in default layout

Added

  • Babel configuration (webpack).
  • Created a site.js in /_data width process.env.ELEVENTY_ENV variable
  • Added a pixel.png in /images.
  • Added a read.me in /css/partials.
  • Created a /js/modules folder.

Changed

  • Eleventy BrowserSyncConfig (watch: true).
  • Example for load the Test Vue Single File Component.
  • README.md review translation and Changelog.

Removed

  • TypeScript configuration (webpack, typings, tsconfig.json).

[0.0.1] - 2019-08-23

Added

  • README.md including Project Changelog.

eleventy-base's People

Contributors

juanmiguelguerrero avatar

Watchers

James Cloos 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.