GithubHelp home page GithubHelp logo

eastslopestudio / eleventy-starter Goto Github PK

View Code? Open in Web Editor NEW
107.0 2.0 17.0 1.17 MB

An 11ty starter project.

Home Page: https://ess-eleventy-starter.netlify.app/

JavaScript 37.83% CSS 13.41% Nunjucks 48.76%
11ty starter-project tailwindcss webpack serverless-functions eleventy redirects proxies netlify-dev tailwind

eleventy-starter's Introduction

Eleventy Starter

A starter setup for front-end development using Eleventy and Webpack.

Netlify Status

Installation

npm install
npm start # alias for `npm run watch`
npm run dev
npm run prod
npm run clean
npm run lint

Netlify

Run the entire Netlify platform locally. Preview it all โ€“ site generation, functions, and edge logic.

netlify dev

eleventy-starter's People

Contributors

covingtondoan avatar dependabot[bot] avatar grantholle avatar rthaut avatar ryanscherler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eleventy-starter's Issues

Remove npx from parcel and 11ty scripts

Since parcel and 11ty are declared as local dependency, no needs to use npx to run them. Using just the cli commands will run the local dependency version.

-"build:html": "cross-env ELEVENTY_ENV=production npx @11ty/eleventy",
-"build:assets": "cross-env NODE_ENV=production npx parcel build ./src/assets/css/app.css ./src/assets/js/app.js --out-dir ./dist/assets --no-source-maps",
-"watch:html": "cross-env ELEVENTY_ENV=development npx @11ty/eleventy --serve --port=8080",
-"watch:assets": "cross-env NODE_ENV=development npx parcel watch ./src/assets/css/app.css ./src/assets/js/app.js --out-dir ./dist/assets --no-source-maps --no-hmr",
+"build:html": "cross-env ELEVENTY_ENV=production eleventy",
+"build:assets": "cross-env NODE_ENV=production parcel build ./src/assets/css/app.css ./src/assets/js/app.js --out-dir ./dist/assets --no-source-maps",
+"watch:html": "cross-env ELEVENTY_ENV=development eleventy --serve --port=8080",
+"watch:assets": "cross-env NODE_ENV=development parcel watch ./src/assets/css/app.css ./src/assets/js/app.js --out-dir ./dist/assets --no-source-maps --no-hmr",

Configuring SCSS

For those of us who wouldn't be using Tailwind, but still want to take advantage of PurgeCSS, what's the best way to configure Sass with this? Sass is still useful for some variables that can't be used as custom properties, and source mapping.

After installing Node Sass, how would we configure it within styles.11ty.js?

Image rendering via picture.js doesn't work

Hello Ryan! Thanks for all the work you (and the rest of the contributors) put into this starter, it certainly has a lot of potential.

Whenever I try to render images in Markdown (using the ![Alt-tag](image.jpg) syntax I get the following error:

`Uncaught exception: (more in DEBUG output)

Input file is missing

Error was thrown:
Error: Input file is missing
at Function.module.exports.loopWhile (C:\Playground\StaticSites\eleventy-starter\node_modules\deasync\index.js:71:23)
at deasyncSharp (C:\Playground\StaticSites\eleventy-starter\utils\picture.js:36:11)
at module.exports (C:\Playground\StaticSites\eleventy-starter\utils\picture.js:104:33)
at Object.md.renderer.rules.image (C:\Playground\StaticSites\eleventy-starter\utils\markdown.js:42:14)
at Renderer.renderInline (C:\Playground\StaticSites\eleventy-starter\node_modules\markdown-it\lib\renderer.js:271:28)
at Renderer.render (C:\Playground\StaticSites\eleventy-starter\node_modules\markdown-it\lib\renderer.js:324:22)
at MarkdownIt.render (C:\Playground\StaticSites\eleventy-starter\node_modules\markdown-it\lib\index.js:543:24)
at C:\Playground\StaticSites\eleventy-starter\node_modules@11ty\eleventy\src\Engines\Markdown.js:72:38
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Template.render (C:\Playground\StaticSites\eleventy-starter\node_modules@11ty\eleventy\src\TemplateContent.js:199:22)`

What am I doing wrong?

Add script to clean build before start and build

Right now the dist folder is not cleaned before build and watch scripts. The clean scripts are not called automatically before such scripts and rimraf is not declared as local dev dependency.

Missing 404.md causes Browsersync error

Hi,
thank you for creating this starter pack. I really like it :)
One thing it would be nice to add is simple 404.md in site folder, so we won't have this ugly error.

image

Fix dependencies definitions

Dependencies in package.json are misplaced, most of them are dev dependencies and not public.

  "devDependencies": {
    "@11ty/eleventy": "^0.10.0",
    "@babel/core": "^7.8.3",
    "@babel/plugin-proposal-class-properties": "^7.8.3",
    "@babel/preset-env": "^7.8.3",
    "@fullhuman/postcss-purgecss": "^1.3.0",
    "cross-env": "^6.0.3",
    "html-minifier": "^4.0.0",
    "npm-run-all": "^4.1.5",
    "parcel-bundler": "^1.12.4",
    "prettier": "^1.19.1"
  }
  "dependencies": {
    "stimulus": "^1.1.1",
    "turbolinks": "^5.2.0"
  },

PS: rimirar is used as global dependency which may be not installed. I suggest to add is as local devDep

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.