This commit is contained in:
tatianamac 2019-11-26 14:50:43 -08:00
parent 8a55660ed0
commit 6d5445ecc5
13894 changed files with 2233957 additions and 0 deletions

1
dist/assets/css/base.css vendored Normal file
View File

@ -0,0 +1 @@
@import url("https://use.typekit.net/qlo3dpu.css");:root{--auto-grid-min-size: 17rem}body{border-top:1rem solid red;font-family:monotype-grotesque,"Lucida Sans",sans-serif;font-size:20px;padding:2rem;margin:0}h1{font-family:monotype-grotesque-extended,Arial Black,sans-serif;font-weight:700}.subtitle{font-family:monotype-grotesque-extended,Arial Black,sans-serif;font-weight:400;letter-spacing:0.1;grid-column:span 2}.summary{grid-column:span 2}.small{font-size:0.75em}.title__thicc{font-size:8vh;line-height:0.75;padding:0;margin:0.5rem 0rem;grid-column:span 2}.help{margin:1rem 0}.help li{margin:0.75rem 0}.grid{display:grid;grid-template-columns:repeat(4, [col] 1fr [col]);grid-template-rows:fit-content, fit-content, auto;grid-row-gap:10rem;grid-column-gap:4rem}.auto-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));grid-gap:1rem}.box{background:black;color:white;padding:1rem;margin:1rem 0.5rem;height:auto}.box a{color:white}.list ul{padding:0 0 0 1em;margin:0}.list li{list-style:none;padding-bottom:0.5em}.list li.subterm{padding-left:10px}.list li:last-child{padding:0}.list li.subterm:before{content:'\21B3 ';padding-right:5px}.block__dictionary{max-width:50rem;margin-left:auto;margin-right:auto;padding:0 1rem}.block__word{display:flex;flex-direction:column;margin:1rem}p{margin:0.75rem 0;font-size:1.25rem}.style__italics{font-style:italic}.word__title{font-family:orpheuspro,Palatino,Times,serif;font-weight:900;font-size:2.5rem;line-height:1.25;margin:0}.word>p:first-of-type,.word__definition{font-family:monotype-grotesque,"Lucida Sans",sans-serif;font-size:1.5rem}.word__speech{font-size:0.5em;font-family:monotype-grotesque,"Lucida Sans",sans-serif}.word__signal{border-top:1px solid currentcolor;display:inline-block;font-family:monotype-grotesque-extended,Arial Black,sans-serif;text-transform:uppercase;font-size:0.75rem;letter-spacing:0.15rem;padding:0.5rem 0.75rem}.word__signal__avoid{color:red}.word__signal__avoid:before{content:'🚨';margin-left:-2.15rem}.word__signal__better{color:green}.word__signal__better:before{content:'🚨';margin-left:-2.15rem}.word__signal__tool{color:black}.word__signal__tool:before{content:'🧰';margin-left:-2.15rem}.word__link{text-decoration:none;color:black;border-bottom:darkgrey solid 0.1em;font-family:monotype-grotesque-extended,Arial Black,sans-serif;margin:1rem 0}.word__link:hover{border-bottom:red solid 0.1rem}.block__dictionary{max-width:50rem;margin-left:auto;margin-right:auto;padding:0 1rem}.auto-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));grid-gap:1rem}.block__word{grid-column:span 2;display:flex;flex-direction:column;margin:1rem}p{margin:0.75rem 0;font-size:1.25rem;line-height:1.25}.style__italics{font-style:italic}.word__title{font-family:orpheuspro,Palatino,Times,serif;font-weight:900;font-size:2.5rem;line-height:1.25}.word__definition{font-family:monotype-grotesque,"Lucida Sans",sans-serif;font-size:1.5rem}.word__speech{font-size:0.5em;font-family:monotype-grotesque,"Lucida Sans",sans-serif}.word__signal{border-top:1px solid currentcolor;display:inline-block;font-family:monotype-grotesque-extended,Arial Black,sans-serif;text-transform:uppercase;font-size:0.75rem;letter-spacing:0.15rem;padding:0.5rem 0.75rem}.word__signal__avoid{color:red}.word__signal__avoid:before{content:'🚨';margin-left:-2.15rem}.word__signal__better{color:green}.word__signal__better:before{content:'👍';margin-left:-2.15rem}.block__type{display:grid;grid-template-columns:1fr 4fr;align-items:flex-start}.word__type{text-align:right;padding-right:1rem;font-family:monotype-grotesque-condensed,Arial Narrow,sans-serif;font-size:0.85rem;text-transform:uppercase}.word__link{text-decoration:none;color:black;border-bottom:darkgrey solid 0.1em;font-family:monotype-grotesque-extended,Arial Black,sans-serif}.word__breakdown{font-family:monotype-grotesque,"Lucida Sans",sans-serif;border-left:0.1rem solid lightgrey;padding-left:1rem}.flag__red{background-color:pink;font-size:0.9rem;font-weight:bold;border-radius:1rem;padding:0.45rem 0.65rem;margin:0.25rem 0.75rem;text-transform:lowercase}.flag__red:before{content:'🚨';margin-right:0.35rem}.list-semicolon{margin:0;padding:0;list-style:none}.list-semicolon>li{display:inline}.list-semicolon>li:not(:last-child)::after{content:'; '}

1
dist/assets/css/base.css.map vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sourceRoot":"","sources":["../scss/base.scss"],"names":[],"mappings":";AACU;AAIV;EACE;;;AAiDF;EACE;EACA,aAnCa;EAoCb;EACA;EAAe;;;AAGjB;EACE,aAvCW;EAwCX,aAjCO;;;AAoCT;EACE,aA5CW;EA6CX,aAxCU;EAyCV;EACA;;;AAGF;EACE;;;AAGF;EACI;;;AAGJ;EACE;EACA;EACA;EACA;EACA;;;AAKA;EACE;;AACF;EACE;;;AAMJ;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AAKF;EACE;EACA;;AAGF;EACE;EACA;;AAEA;EACA;;AAGA;EACA;;AAGA;EACA;EACA;;;AAKN;EACE;EACA;EACA;EACA;;;AAGF;EACA;EACA;EACA;;;AAGA;EACA;EACA;;;AAGA;EACA;;;AAIE;EACA,aAzJQ;EA0JR;EACA;EACA;;AAGA;EACA,aAjKa;EAkKb;;AAGA;EACA;EACA,aAvKa;;AA0Kb;EACA;EACA;EACA,aA3KW;EA4KX;EACA;EACA;EACA;;AAEA;EACE;;AAEA;EAxKF;EAYA;;AAkKA;EACA;;AAEE;EAjLF;EAYA;;AA2KA;EACE;;AAEA;EAlLF;EAIA;;AAsLA;EACE;EACA;EACA;EACA,aAlNS;EAmNT;;AAEA;EACE;;;AAMN;EACE;EACA;EACA;EACA;;;AAGF;EACA;EACA;EACA;;;AAGA;EACA;EACA;EACA;EACA;;;AAGA;EACA;EACA;EACA;;;AAGA;EACA;;;AAIA;EACA,aA7PU;EA8PV;EACA;EACA;;AAGA;EACA,aArQe;EAsQf;;AAGA;EACA;EACA,aA3Qe;;AA8Qf;EACA;EAEA;EACA,aAhRa;EAiRb;EACA;EACA;EACA;;AAEE;EACE;;AAEA;EACE;EACA;;AAIJ;EACA;;AAEA;EACE;EACA;;;AAMJ;EACE;EACA;EACA;;;AAGF;EACA;EACA;EACA,aAlTa;EAmTb;EACA;;;AAGA;EACA;EACA;EACA;EACA,aA5Ta;;;AA+Tb;EACA,aAlUe;EAmUf;EACA;;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EAjUA;EAgBA","file":"base.css"}

0
dist/definitions/bierasure/index.html vendored Normal file
View File

6
dist/definitions/bisexual/index.html vendored Normal file
View File

@ -0,0 +1,6 @@
<p>of, relating to, or characterised by being sexually attracted to more than one gender.</p>
<hr>
<h4>Note</h4>
<p>Bisexuality does not preclude attraction to <a href="#non-binary">non-binary</a> or <a href="#transgender">transgender</a> people.</p>
<h4>Further Reading</h4>
<p><a href="http://www.bisexualindex.org.uk/index.php/AmIBisexual">Am I Bisexual?</a></p>

View File

7
dist/definitions/crazy/index.html vendored Normal file
View File

@ -0,0 +1,7 @@
<p>mentally deranged; demented; insane.</p>
<h4>Issues</h4>
<p>Crazy is very commonly used as an adjective to embody a vast array of ideas, often not specifically. It is used so frequently that it sometimes is a filler. Crazy can also be used in a derogatory manner for someone with mental or psychiatric disabilities.</p>
<h4>Impact</h4>
<p>By using ableist language, we are perpetuating violence against people who experience mental or psychological disabilities. Using this language perpetuates those systems and language of harm, regardless of our intent.</p>
<h4>Usage Tip</h4>
<p>Be more specific. Typically we can find an alternate definition by simply reflecting on what emotion we're really feeling.</p>

View File

View File

175
dist/index.html vendored Normal file
View File

@ -0,0 +1,175 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>selfdefined</title>
<meta
name="description"
content="A modern dictionary about us."
>
<link
rel="stylesheet"
href="assets/css/base.css"
>
</head>
<body>
<main>
<section id="introduction" class="auto-grid">
<div id="title">
<h1 class="title__thicc">Self-Defined</h1>
<p>A modern dictionary about us.<br>We define our words, but they don't define us.</p>
</div>
<div>
<p class="summary">
Self-Defined seeks to provide more inclusive, holistic, and fluid definitions to reflect the diverse perspectives of the modern world.
</p>
<p>
With the foundation of vocabulary, we can begin to understand lived experiences of people different than us. Words can provide us with a sense of identify and allow us to find kinship through common experiences.
</p>
</div>
<div class="box">
<p class="subtitle">Ways to help</p>
<ol class="help">
<li> Submit words and definitions through <a href="https://github.com/tatianamac/selfdefined/pulls" rel="noreferral">pull requests</a>.</li>
<li>Sponsor this work through <a href="https://github.com/sponsors/tatianamac">GitHub Sponsors</a>.</li>
<li>Volunteer writing, design, dev help by <a href="http://www.twitter.com/tatianatmac">DMing me @tatianatmac on Twitter</a>.</li>
</ol>
</div>
</section>
<section>
<h2>Table of Content</h2>
<div class="auto-grid list">
<ul>
<li>
Bierasure
</li>
<li><a
href=#bisexual
class="word__link"
>
Bisexual
</a>
</li>
<li>
Colonialism
</li>
<li><a
href=#crazy
class="word__link"
>
crazy<span class="flag__red">ableist-slur</span>
</a>
</li>
<li>
Intersectionality
</li>
<li>
Psychopath<span class="flag__red">ableist-slur</span>
</li>
</ul>
</div>
</section>
<section>
<h2>Words</h2>
<div class="auto-grid">
<article id=bisexual class="block__word word">
<h3 class="word__title">
Bisexual
<span class="word__speech">adj</span>
</h3>
<p>of, relating to, or characterised by being sexually attracted to more than one gender.</p>
<hr>
<h4>Note</h4>
<p>Bisexuality does not preclude attraction to <a href="#non-binary">non-binary</a> or <a href="#transgender">transgender</a> people.</p>
<h4>Further Reading</h4>
<p><a href="http://www.bisexualindex.org.uk/index.php/AmIBisexual">Am I Bisexual?</a></p>
</article>
<article id=crazy class="block__word word">
<h3 class="word__title">
crazy
<span class="word__speech">noun</span>
</h3>
<p>mentally deranged; demented; insane.</p>
<h4>Issues</h4>
<p>Crazy is very commonly used as an adjective to embody a vast array of ideas, often not specifically. It is used so frequently that it sometimes is a filler. Crazy can also be used in a derogatory manner for someone with mental or psychiatric disabilities.</p>
<h4>Impact</h4>
<p>By using ableist language, we are perpetuating violence against people who experience mental or psychological disabilities. Using this language perpetuates those systems and language of harm, regardless of our intent.</p>
<h4>Usage Tip</h4>
<p>Be more specific. Typically we can find an alternate definition by simply reflecting on what emotion we're really feeling.</p>
<h4>Alt words</h4>
<ul class="list-semicolon">
<li>abundant</li>
<li>bizarre</li>
<li>enormous</li>
<li>ludicrous</li>
<li>outlandish</li>
<li>ridiculous</li>
<li>unbelievable</li>
<li>unexpected</li>
<li>unfamiliar</li>
<li>unreal</li>
<li>scary</li>
<li>shocking</li>
<li>strange</li>
<li>wicked</li>
</ul>
</article>
</div>
</section>
</main>
</body>

1
node_modules/.bin/acorn generated vendored Symbolic link
View File

@ -0,0 +1 @@
../acorn/bin/acorn

1
node_modules/.bin/atob generated vendored Symbolic link
View File

@ -0,0 +1 @@
../atob/bin/atob.js

1
node_modules/.bin/babylon generated vendored Symbolic link
View File

@ -0,0 +1 @@
../babylon/bin/babylon.js

1
node_modules/.bin/browser-sync generated vendored Symbolic link
View File

@ -0,0 +1 @@
../browser-sync/dist/bin.js

1
node_modules/.bin/css-beautify generated vendored Symbolic link
View File

@ -0,0 +1 @@
../js-beautify/js/bin/css-beautify.js

1
node_modules/.bin/dependency-tree generated vendored Symbolic link
View File

@ -0,0 +1 @@
../dependency-tree/bin/cli.js

1
node_modules/.bin/detective-amd generated vendored Symbolic link
View File

@ -0,0 +1 @@
../detective-amd/bin/detective-amd.js

1
node_modules/.bin/dev-ip generated vendored Symbolic link
View File

@ -0,0 +1 @@
../dev-ip/lib/dev-ip.js

1
node_modules/.bin/editorconfig generated vendored Symbolic link
View File

@ -0,0 +1 @@
../editorconfig/bin/editorconfig

1
node_modules/.bin/eleventy generated vendored Symbolic link
View File

@ -0,0 +1 @@
../@11ty/eleventy/cmd.js

1
node_modules/.bin/errno generated vendored Symbolic link
View File

@ -0,0 +1 @@
../errno/cli.js

1
node_modules/.bin/escodegen generated vendored Symbolic link
View File

@ -0,0 +1 @@
../escodegen/bin/escodegen.js

1
node_modules/.bin/esgenerate generated vendored Symbolic link
View File

@ -0,0 +1 @@
../escodegen/bin/esgenerate.js

1
node_modules/.bin/esparse generated vendored Symbolic link
View File

@ -0,0 +1 @@
../esprima/bin/esparse.js

1
node_modules/.bin/esvalidate generated vendored Symbolic link
View File

@ -0,0 +1 @@
../esprima/bin/esvalidate.js

1
node_modules/.bin/filing-cabinet generated vendored Symbolic link
View File

@ -0,0 +1 @@
../filing-cabinet/bin/cli.js

1
node_modules/.bin/gonzales generated vendored Symbolic link
View File

@ -0,0 +1 @@
../gonzales-pe/bin/gonzales.js

1
node_modules/.bin/handlebars generated vendored Symbolic link
View File

@ -0,0 +1 @@
../handlebars/bin/handlebars

1
node_modules/.bin/html-beautify generated vendored Symbolic link
View File

@ -0,0 +1 @@
../js-beautify/js/bin/html-beautify.js

1
node_modules/.bin/js-beautify generated vendored Symbolic link
View File

@ -0,0 +1 @@
../js-beautify/js/bin/js-beautify.js

1
node_modules/.bin/js-yaml generated vendored Symbolic link
View File

@ -0,0 +1 @@
../js-yaml/bin/js-yaml.js

1
node_modules/.bin/lookup-amd generated vendored Symbolic link
View File

@ -0,0 +1 @@
../module-lookup-amd/bin/cli.js

1
node_modules/.bin/lt generated vendored Symbolic link
View File

@ -0,0 +1 @@
../localtunnel/bin/client

1
node_modules/.bin/markdown-it generated vendored Symbolic link
View File

@ -0,0 +1 @@
../markdown-it/bin/markdown-it.js

1
node_modules/.bin/mime generated vendored Symbolic link
View File

@ -0,0 +1 @@
../mime/cli.js

1
node_modules/.bin/mkdirp generated vendored Symbolic link
View File

@ -0,0 +1 @@
../mkdirp/bin/cmd.js

1
node_modules/.bin/module-definition generated vendored Symbolic link
View File

@ -0,0 +1 @@
../module-definition/bin/module-definition.js

1
node_modules/.bin/mustache generated vendored Symbolic link
View File

@ -0,0 +1 @@
../mustache/bin/mustache

1
node_modules/.bin/nopt generated vendored Symbolic link
View File

@ -0,0 +1 @@
../nopt/bin/nopt.js

1
node_modules/.bin/nunjucks-precompile generated vendored Symbolic link
View File

@ -0,0 +1 @@
../nunjucks/bin/precompile

1
node_modules/.bin/parser generated vendored Symbolic link
View File

@ -0,0 +1 @@
../@babel/parser/bin/babel-parser.js

1
node_modules/.bin/precinct generated vendored Symbolic link
View File

@ -0,0 +1 @@
../precinct/bin/cli.js

1
node_modules/.bin/pretty-ms generated vendored Symbolic link
View File

@ -0,0 +1 @@
../pretty-ms/cli.js

1
node_modules/.bin/r.js generated vendored Symbolic link
View File

@ -0,0 +1 @@
../requirejs/bin/r.js

1
node_modules/.bin/r_js generated vendored Symbolic link
View File

@ -0,0 +1 @@
../requirejs/bin/r.js

1
node_modules/.bin/rimraf generated vendored Symbolic link
View File

@ -0,0 +1 @@
../rimraf/bin.js

1
node_modules/.bin/sass-lookup generated vendored Symbolic link
View File

@ -0,0 +1 @@
../sass-lookup/bin/cli.js

1
node_modules/.bin/semver generated vendored Symbolic link
View File

@ -0,0 +1 @@
../semver/bin/semver.js

1
node_modules/.bin/stylus-lookup generated vendored Symbolic link
View File

@ -0,0 +1 @@
../stylus-lookup/bin/cli.js

1
node_modules/.bin/throttleproxy generated vendored Symbolic link
View File

@ -0,0 +1 @@
../stream-throttle/bin/throttleproxy.js

1
node_modules/.bin/tsc generated vendored Symbolic link
View File

@ -0,0 +1 @@
../typescript/bin/tsc

1
node_modules/.bin/tsserver generated vendored Symbolic link
View File

@ -0,0 +1 @@
../typescript/bin/tsserver

1
node_modules/.bin/uglifyjs generated vendored Symbolic link
View File

@ -0,0 +1 @@
../uglify-js/bin/uglifyjs

1
node_modules/.bin/window-size generated vendored Symbolic link
View File

@ -0,0 +1 @@
../window-size/cli.js

12
node_modules/@11ty/eleventy/.editorconfig generated vendored Normal file
View File

@ -0,0 +1,12 @@
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true
charset = utf-8
[*.js]
insert_final_newline = true

17
node_modules/@11ty/eleventy/.eslintrc.js generated vendored Normal file
View File

@ -0,0 +1,17 @@
module.exports = {
env: {
es6: true,
node: true
},
extends: "eslint:recommended",
parserOptions: {
sourceType: "module",
ecmaVersion: 2017
},
rules: {
indent: ["error", 2],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"]
}
};

3
node_modules/@11ty/eleventy/.github/FUNDING.yml generated vendored Normal file
View File

@ -0,0 +1,3 @@
# These are supported funding model platforms
open_collective: 11ty

View File

@ -0,0 +1,10 @@
---
name: I have a question about Eleventy
about: e.g. “How do I do this in Eleventy?” or “Can Eleventy do this?”
title: ''
labels: education
assignees: ''
---

View File

@ -0,0 +1,31 @@
---
name: Im having a problem with Eleventy
about: Create a report to help us improve
title: ''
labels: needs-triage
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Environment:**
- OS and Version: [e.g. Windows/Mac/Linux]
- Eleventy Version [via `eleventy --version` or `npx @11ty/eleventy --version`]
**Additional context**
Add any other context about the problem here.

View File

@ -0,0 +1,20 @@
---
name: I want Eleventy do to this new thing
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

1
node_modules/@11ty/eleventy/.nvmrc generated vendored Normal file
View File

@ -0,0 +1 @@
10

16
node_modules/@11ty/eleventy/.travis.yml generated vendored Normal file
View File

@ -0,0 +1,16 @@
language: node_js
node_js:
- 8
- 10
- 12
before_script:
- npm install
script: npm run test
branches:
except:
- gh-pages
sudo: false
os:
- linux
- osx
- windows

46
node_modules/@11ty/eleventy/CODE_OF_CONDUCT.md generated vendored Normal file
View File

@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at eleventy@zachleat.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/

21
node_modules/@11ty/eleventy/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 Zach Leatherman @zachleat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

40
node_modules/@11ty/eleventy/README.md generated vendored Normal file
View File

@ -0,0 +1,40 @@
<p align="center"><img src="https://www.11ty.io/img/logo-github.png" alt="eleventy Logo"></p>
# eleventy 🕚⚡️
A simpler static site generator. An alternative to Jekyll. Written in JavaScript. Transforms a directory of templates (of varying types) into HTML.
Works with HTML, Markdown, Liquid, Nunjucks, Handlebars, Mustache, EJS, Haml, Pug, and JavaScript Template Literals.
## ➡ [Documentation](https://www.11ty.io/docs/)
- Please star [this repo on GitHub](https://github.com/11ty/eleventy/)!
- Follow us on Twitter [@eleven_ty](https://twitter.com/eleven_ty)
- Support [11ty on Open Collective](https://opencollective.com/11ty)
- [11ty on npm](https://www.npmjs.com/org/11ty)
- [11ty on GitHub](https://github.com/11ty)
- [11ty/eleventy on Travis CI](https://travis-ci.org/11ty/eleventy)
[![npm Version](https://img.shields.io/npm/v/@11ty/eleventy.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy) [![GitHub issues](https://img.shields.io/github/issues/11ty/eleventy.svg?style=for-the-badge)](https://github.com/11ty/eleventy/issues) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier) [![npm Downloads](https://img.shields.io/npm/dt/@11ty/eleventy.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy)
## Tests
```
npm run test
```
- We use the [ava JavaScript test runner](https://github.com/avajs/ava) ([Assertions documentation](https://github.com/avajs/ava/blob/master/docs/03-assertions.md))
- To keep tests fast, thou shalt try to avoid writing files in tests.
- [Code Coverage Statistics](https://github.com/11ty/eleventy/blob/master/docs/coverage.md)
- [Benchmark for Performance Regressions](https://github.com/11ty/eleventy-benchmark)
## Major Roadmapped Features
- [Top Feature Requests](https://github.com/11ty/eleventy/issues?q=label%3Aneeds-votes+sort%3Areactions-%2B1-desc) (Add your own votes using the 👍 reaction)
- [Documentation Requests](https://github.com/11ty/eleventy/issues?utf8=%E2%9C%93&q=is%3Aissue+sort%3Areactions-%2B1-desc+is%3Aclosed+label%3Adocumentation+label%3Aneeds-votes) (Add your own votes using the 👍 reaction)
- [Top Bugs 😱](https://github.com/11ty/eleventy/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your own votes using the 👍 reaction)
- [Newest Bugs 🙀](https://github.com/11ty/eleventy/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
## Plugins
See the [official docs on plugins](https://www.11ty.io/docs/plugins/).

13
node_modules/@11ty/eleventy/TODO.md generated vendored Normal file
View File

@ -0,0 +1,13 @@
# User defined file extensions (Issue #117) TODO List
[x] add option to do straight file output instead of dir/index.extension
[x] outputFileExtension
[x] filter function
[] example of allowing consumers of plugins to override plugin options (e.g. I want a different `outputStyle` in my sass)
[] allow overrides of built-in keys with user extensions (e.g. I want a newer version of liquid)
[] What if multiple plugins operate on the same file extension? SVGO and svgmin, for example
[] Work with non-plaintext file formats like PNG
[] should filter also support String or Array of String and run a configuration method to add globs for ignores?
[] undecided: its garbage that I have to use setTemplateFormats too (and theres not an additive method either), options versus opt-in, you could install the plugin but not want the language

71
node_modules/@11ty/eleventy/cmd.js generated vendored Executable file
View File

@ -0,0 +1,71 @@
#!/usr/bin/env node
const pkg = require("./package.json");
const chalk = require("chalk"); // node 4+
require("please-upgrade-node")(pkg, {
message: function(requiredVersion) {
return chalk.red(
`Eleventy requires Node ${requiredVersion}. Youll need to upgrade to use it!`
);
}
});
if (process.env.DEBUG) {
require("time-require");
}
const EleventyErrorHandler = require("./src/EleventyErrorHandler");
try {
const argv = require("minimist")(process.argv.slice(2));
const Eleventy = require("./src/Eleventy");
const EleventyCommandCheck = require("./src/EleventyCommandCheck");
process.on("unhandledRejection", (error, promise) => {
EleventyErrorHandler.error(promise, "Unhandled rejection in promise");
});
process.on("uncaughtException", e => {
EleventyErrorHandler.fatal(e, "Uncaught exception");
});
process.on("rejectionHandled", promise => {
EleventyErrorHandler.warn(
promise,
"A promise rejection was handled asynchronously"
);
});
let cmdCheck = new EleventyCommandCheck(argv);
cmdCheck.hasUnknownArguments();
let elev = new Eleventy(argv.input, argv.output);
elev.setConfigPathOverride(argv.config);
elev.setPathPrefix(argv.pathprefix);
elev.setDryRun(argv.dryrun);
elev.setPassthroughAll(argv.passthroughall);
elev.setFormats(argv.formats);
let isVerbose = process.env.DEBUG ? false : !argv.quiet;
elev.setIsVerbose(isVerbose);
// careful, we cant use async/await here to error properly
// with old node versions in `please-upgrade-node` above.
elev
.init()
.then(function() {
if (argv.version) {
console.log(elev.getVersion());
} else if (argv.help) {
console.log(elev.getHelp());
} else if (argv.serve) {
elev.watch().then(function() {
elev.serve(argv.port);
});
} else if (argv.watch) {
elev.watch();
} else {
elev.write();
}
})
.catch(EleventyErrorHandler.fatal);
} catch (e) {
EleventyErrorHandler.fatal(e, "Eleventy fatal error");
}

50
node_modules/@11ty/eleventy/config.js generated vendored Normal file
View File

@ -0,0 +1,50 @@
const urlFilter = require("./src/Filters/Url");
const slugFilter = require("./src/Filters/Slug");
module.exports = function(config) {
config.addFilter("slug", slugFilter);
config.addFilter("url", urlFilter);
return {
templateFormats: [
"liquid",
"ejs",
"md",
"hbs",
"mustache",
"haml",
"pug",
"njk",
"html",
"jstl",
"11ty.js"
],
// if your site lives in a subdirectory, change this
pathPrefix: "/",
markdownTemplateEngine: "liquid",
htmlTemplateEngine: "liquid",
dataTemplateEngine: "liquid",
passthroughFileCopy: true,
htmlOutputSuffix: "-o",
jsDataFileSuffix: ".11tydata",
keys: {
package: "pkg",
layout: "layout",
permalink: "permalink",
permalinkRoot: "permalinkBypassOutputDir",
engineOverride: "templateEngineOverride"
},
dir: {
input: ".",
includes: "_includes",
data: "_data",
output: "_site"
},
// deprecated, use config.addTransform
filters: {},
// deprecated, use config.addHandlebarsHelper
handlebarsHelpers: {},
// deprecated, use config.addNunjucksFilter
nunjucksFilters: {}
};
};

18
node_modules/@11ty/eleventy/docs-src/.eleventy.docs.js generated vendored Normal file
View File

@ -0,0 +1,18 @@
const TemplatePath = require("../src/TemplatePath");
module.exports = {
templateFormats: ["njk"],
dir: {
input: "docs-src",
data: "_data",
output: "docs"
},
nunjucksFilters: {
removeDir: function(str) {
return TemplatePath.stripLeadingSubPath(
str,
TemplatePath.join(__dirname, "..")
);
}
}
};

View File

@ -0,0 +1,57 @@
{"total": {"lines":{"total":2763,"covered":2450,"skipped":0,"pct":88.67},"statements":{"total":2778,"covered":2465,"skipped":0,"pct":88.73},"functions":{"total":656,"covered":574,"skipped":0,"pct":87.5},"branches":{"total":1110,"covered":902,"skipped":0,"pct":81.26}}
,"/Users/zachleat/Code/eleventy/config.js": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":6,"covered":6,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Benchmark.js": {"lines":{"total":12,"covered":11,"skipped":0,"pct":91.67},"functions":{"total":6,"covered":5,"skipped":0,"pct":83.33},"statements":{"total":12,"covered":11,"skipped":0,"pct":91.67},"branches":{"total":6,"covered":4,"skipped":0,"pct":66.67}}
,"/Users/zachleat/Code/eleventy/src/BenchmarkGroup.js": {"lines":{"total":34,"covered":23,"skipped":0,"pct":67.65},"functions":{"total":7,"covered":5,"skipped":0,"pct":71.43},"statements":{"total":34,"covered":23,"skipped":0,"pct":67.65},"branches":{"total":10,"covered":3,"skipped":0,"pct":30}}
,"/Users/zachleat/Code/eleventy/src/BenchmarkManager.js": {"lines":{"total":17,"covered":13,"skipped":0,"pct":76.47},"functions":{"total":7,"covered":5,"skipped":0,"pct":71.43},"statements":{"total":17,"covered":13,"skipped":0,"pct":76.47},"branches":{"total":4,"covered":3,"skipped":0,"pct":75}}
,"/Users/zachleat/Code/eleventy/src/Config.js": {"lines":{"total":5,"covered":5,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Eleventy.js": {"lines":{"total":177,"covered":97,"skipped":0,"pct":54.8},"functions":{"total":33,"covered":19,"skipped":0,"pct":57.58},"statements":{"total":177,"covered":97,"skipped":0,"pct":54.8},"branches":{"total":52,"covered":24,"skipped":0,"pct":46.15}}
,"/Users/zachleat/Code/eleventy/src/EleventyBaseError.js": {"lines":{"total":5,"covered":5,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/EleventyCommandCheck.js": {"lines":{"total":28,"covered":28,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":28,"covered":28,"skipped":0,"pct":100},"branches":{"total":8,"covered":7,"skipped":0,"pct":87.5}}
,"/Users/zachleat/Code/eleventy/src/EleventyConfig.js": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/EleventyErrorHandler.js": {"lines":{"total":36,"covered":33,"skipped":0,"pct":91.67},"functions":{"total":8,"covered":8,"skipped":0,"pct":100},"statements":{"total":36,"covered":33,"skipped":0,"pct":91.67},"branches":{"total":37,"covered":25,"skipped":0,"pct":67.57}}
,"/Users/zachleat/Code/eleventy/src/EleventyErrorUtil.js": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":5,"covered":5,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/EleventyExtensionMap.js": {"lines":{"total":60,"covered":58,"skipped":0,"pct":96.67},"functions":{"total":25,"covered":23,"skipped":0,"pct":92},"statements":{"total":60,"covered":58,"skipped":0,"pct":96.67},"branches":{"total":27,"covered":27,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/EleventyFiles.js": {"lines":{"total":126,"covered":119,"skipped":0,"pct":94.44},"functions":{"total":37,"covered":33,"skipped":0,"pct":89.19},"statements":{"total":126,"covered":119,"skipped":0,"pct":94.44},"branches":{"total":46,"covered":42,"skipped":0,"pct":91.3}}
,"/Users/zachleat/Code/eleventy/src/EleventyServe.js": {"lines":{"total":61,"covered":22,"skipped":0,"pct":36.07},"functions":{"total":16,"covered":9,"skipped":0,"pct":56.25},"statements":{"total":61,"covered":22,"skipped":0,"pct":36.07},"branches":{"total":41,"covered":10,"skipped":0,"pct":24.39}}
,"/Users/zachleat/Code/eleventy/src/EleventyWatchTargets.js": {"lines":{"total":46,"covered":43,"skipped":0,"pct":93.48},"functions":{"total":20,"covered":18,"skipped":0,"pct":90},"statements":{"total":46,"covered":43,"skipped":0,"pct":93.48},"branches":{"total":15,"covered":14,"skipped":0,"pct":93.33}}
,"/Users/zachleat/Code/eleventy/src/Template.js": {"lines":{"total":282,"covered":267,"skipped":0,"pct":94.68},"functions":{"total":47,"covered":46,"skipped":0,"pct":97.87},"statements":{"total":284,"covered":269,"skipped":0,"pct":94.72},"branches":{"total":101,"covered":87,"skipped":0,"pct":86.14}}
,"/Users/zachleat/Code/eleventy/src/TemplateCache.js": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/TemplateCollection.js": {"lines":{"total":29,"covered":27,"skipped":0,"pct":93.1},"functions":{"total":13,"covered":12,"skipped":0,"pct":92.31},"statements":{"total":31,"covered":29,"skipped":0,"pct":93.55},"branches":{"total":10,"covered":8,"skipped":0,"pct":80}}
,"/Users/zachleat/Code/eleventy/src/TemplateConfig.js": {"lines":{"total":57,"covered":52,"skipped":0,"pct":91.23},"functions":{"total":9,"covered":6,"skipped":0,"pct":66.67},"statements":{"total":57,"covered":52,"skipped":0,"pct":91.23},"branches":{"total":24,"covered":22,"skipped":0,"pct":91.67}}
,"/Users/zachleat/Code/eleventy/src/TemplateContent.js": {"lines":{"total":81,"covered":76,"skipped":0,"pct":93.83},"functions":{"total":17,"covered":16,"skipped":0,"pct":94.12},"statements":{"total":81,"covered":76,"skipped":0,"pct":93.83},"branches":{"total":34,"covered":31,"skipped":0,"pct":91.18}}
,"/Users/zachleat/Code/eleventy/src/TemplateData.js": {"lines":{"total":161,"covered":152,"skipped":0,"pct":94.41},"functions":{"total":27,"covered":27,"skipped":0,"pct":100},"statements":{"total":163,"covered":154,"skipped":0,"pct":94.48},"branches":{"total":50,"covered":41,"skipped":0,"pct":82}}
,"/Users/zachleat/Code/eleventy/src/TemplateFileSlug.js": {"lines":{"total":23,"covered":23,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":23,"covered":23,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/TemplateGlob.js": {"lines":{"total":15,"covered":14,"skipped":0,"pct":93.33},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":15,"covered":14,"skipped":0,"pct":93.33},"branches":{"total":8,"covered":7,"skipped":0,"pct":87.5}}
,"/Users/zachleat/Code/eleventy/src/TemplateLayout.js": {"lines":{"total":68,"covered":68,"skipped":0,"pct":100},"functions":{"total":9,"covered":9,"skipped":0,"pct":100},"statements":{"total":69,"covered":69,"skipped":0,"pct":100},"branches":{"total":14,"covered":14,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/TemplateLayoutPathResolver.js": {"lines":{"total":47,"covered":45,"skipped":0,"pct":95.74},"functions":{"total":11,"covered":11,"skipped":0,"pct":100},"statements":{"total":47,"covered":45,"skipped":0,"pct":95.74},"branches":{"total":18,"covered":16,"skipped":0,"pct":88.89}}
,"/Users/zachleat/Code/eleventy/src/TemplateMap.js": {"lines":{"total":238,"covered":233,"skipped":0,"pct":97.9},"functions":{"total":32,"covered":31,"skipped":0,"pct":96.88},"statements":{"total":238,"covered":233,"skipped":0,"pct":97.9},"branches":{"total":125,"covered":113,"skipped":0,"pct":90.4}}
,"/Users/zachleat/Code/eleventy/src/TemplatePassthrough.js": {"lines":{"total":38,"covered":36,"skipped":0,"pct":94.74},"functions":{"total":9,"covered":8,"skipped":0,"pct":88.89},"statements":{"total":38,"covered":36,"skipped":0,"pct":94.74},"branches":{"total":14,"covered":12,"skipped":0,"pct":85.71}}
,"/Users/zachleat/Code/eleventy/src/TemplatePassthroughManager.js": {"lines":{"total":58,"covered":53,"skipped":0,"pct":91.38},"functions":{"total":17,"covered":17,"skipped":0,"pct":100},"statements":{"total":58,"covered":53,"skipped":0,"pct":91.38},"branches":{"total":14,"covered":10,"skipped":0,"pct":71.43}}
,"/Users/zachleat/Code/eleventy/src/TemplatePath.js": {"lines":{"total":74,"covered":74,"skipped":0,"pct":100},"functions":{"total":23,"covered":22,"skipped":0,"pct":95.65},"statements":{"total":75,"covered":75,"skipped":0,"pct":100},"branches":{"total":38,"covered":38,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/TemplatePermalink.js": {"lines":{"total":30,"covered":30,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":30,"covered":30,"skipped":0,"pct":100},"branches":{"total":20,"covered":20,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/TemplatePermalinkNoWrite.js": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/TemplateRender.js": {"lines":{"total":77,"covered":76,"skipped":0,"pct":98.7},"functions":{"total":22,"covered":22,"skipped":0,"pct":100},"statements":{"total":77,"covered":76,"skipped":0,"pct":98.7},"branches":{"total":42,"covered":40,"skipped":0,"pct":95.24}}
,"/Users/zachleat/Code/eleventy/src/TemplateWriter.js": {"lines":{"total":96,"covered":78,"skipped":0,"pct":81.25},"functions":{"total":21,"covered":15,"skipped":0,"pct":71.43},"statements":{"total":96,"covered":78,"skipped":0,"pct":81.25},"branches":{"total":10,"covered":3,"skipped":0,"pct":30}}
,"/Users/zachleat/Code/eleventy/src/UserConfig.js": {"lines":{"total":166,"covered":107,"skipped":0,"pct":64.46},"functions":{"total":45,"covered":23,"skipped":0,"pct":51.11},"statements":{"total":167,"covered":108,"skipped":0,"pct":64.67},"branches":{"total":66,"covered":36,"skipped":0,"pct":54.55}}
,"/Users/zachleat/Code/eleventy/src/Engines/Ejs.js": {"lines":{"total":20,"covered":19,"skipped":0,"pct":95},"functions":{"total":7,"covered":6,"skipped":0,"pct":85.71},"statements":{"total":20,"covered":19,"skipped":0,"pct":95},"branches":{"total":9,"covered":8,"skipped":0,"pct":88.89}}
,"/Users/zachleat/Code/eleventy/src/Engines/Haml.js": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Engines/Handlebars.js": {"lines":{"total":30,"covered":30,"skipped":0,"pct":100},"functions":{"total":9,"covered":9,"skipped":0,"pct":100},"statements":{"total":30,"covered":30,"skipped":0,"pct":100},"branches":{"total":6,"covered":5,"skipped":0,"pct":83.33}}
,"/Users/zachleat/Code/eleventy/src/Engines/Html.js": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Engines/JavaScript.js": {"lines":{"total":50,"covered":48,"skipped":0,"pct":96},"functions":{"total":12,"covered":12,"skipped":0,"pct":100},"statements":{"total":51,"covered":49,"skipped":0,"pct":96.08},"branches":{"total":42,"covered":37,"skipped":0,"pct":88.1}}
,"/Users/zachleat/Code/eleventy/src/Engines/JavaScriptTemplateLiteral.js": {"lines":{"total":18,"covered":17,"skipped":0,"pct":94.44},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":18,"covered":17,"skipped":0,"pct":94.44},"branches":{"total":6,"covered":6,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Engines/Liquid.js": {"lines":{"total":73,"covered":70,"skipped":0,"pct":95.89},"functions":{"total":26,"covered":25,"skipped":0,"pct":96.15},"statements":{"total":73,"covered":70,"skipped":0,"pct":95.89},"branches":{"total":15,"covered":13,"skipped":0,"pct":86.67}}
,"/Users/zachleat/Code/eleventy/src/Engines/Markdown.js": {"lines":{"total":33,"covered":30,"skipped":0,"pct":90.91},"functions":{"total":9,"covered":8,"skipped":0,"pct":88.89},"statements":{"total":33,"covered":30,"skipped":0,"pct":90.91},"branches":{"total":16,"covered":13,"skipped":0,"pct":81.25}}
,"/Users/zachleat/Code/eleventy/src/Engines/Mustache.js": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Engines/Nunjucks.js": {"lines":{"total":61,"covered":54,"skipped":0,"pct":88.52},"functions":{"total":19,"covered":18,"skipped":0,"pct":94.74},"statements":{"total":61,"covered":54,"skipped":0,"pct":88.52},"branches":{"total":13,"covered":11,"skipped":0,"pct":84.62}}
,"/Users/zachleat/Code/eleventy/src/Engines/Pug.js": {"lines":{"total":17,"covered":17,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":17,"covered":17,"skipped":0,"pct":100},"branches":{"total":9,"covered":8,"skipped":0,"pct":88.89}}
,"/Users/zachleat/Code/eleventy/src/Engines/TemplateEngine.js": {"lines":{"total":51,"covered":51,"skipped":0,"pct":100},"functions":{"total":18,"covered":18,"skipped":0,"pct":100},"statements":{"total":53,"covered":53,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Errors/TemplateContentPrematureUseError.js": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Errors/UsingCircularTemplateContentReferenceError.js": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Filters/Slug.js": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Filters/Url.js": {"lines":{"total":18,"covered":18,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":18,"covered":18,"skipped":0,"pct":100},"branches":{"total":21,"covered":21,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Plugins/Pagination.js": {"lines":{"total":107,"covered":99,"skipped":0,"pct":92.52},"functions":{"total":16,"covered":15,"skipped":0,"pct":93.75},"statements":{"total":109,"covered":101,"skipped":0,"pct":92.66},"branches":{"total":66,"covered":54,"skipped":0,"pct":81.82}}
,"/Users/zachleat/Code/eleventy/src/Util/Capitalize.js": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Util/Merge.js": {"lines":{"total":28,"covered":26,"skipped":0,"pct":92.86},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":28,"covered":26,"skipped":0,"pct":92.86},"branches":{"total":22,"covered":19,"skipped":0,"pct":86.36}}
,"/Users/zachleat/Code/eleventy/src/Util/Pluralize.js": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
,"/Users/zachleat/Code/eleventy/src/Util/Sortable.js": {"lines":{"total":46,"covered":39,"skipped":0,"pct":84.78},"functions":{"total":23,"covered":17,"skipped":0,"pct":73.91},"statements":{"total":47,"covered":40,"skipped":0,"pct":85.11},"branches":{"total":18,"covered":17,"skipped":0,"pct":94.44}}
}

10
node_modules/@11ty/eleventy/docs-src/coverage.njk generated vendored Normal file
View File

@ -0,0 +1,10 @@
---
permalink: coverage.md
---
# Code Coverage for Eleventy v{{ pkg.version }}
| Filename | % Lines | % Statements | % Functions | % Branches |
| --- | --- | --- | --- | --- |
{% for file, line in coverage -%}
| `{{ file | removeDir }}` | {{ line.lines.pct }}% | {{ line.statements.pct }}% | {{ line.functions.pct }}% | {{ line.branches.pct }}% |
{% endfor -%}

3
node_modules/@11ty/eleventy/docs/collections.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Collections (and Tags)
Moved to [https://www.11ty.io/docs/collections/](https://www.11ty.io/docs/collections/).

3
node_modules/@11ty/eleventy/docs/copy.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Pass-through File Copy
Moved to [https://www.11ty.io/docs/copy/](https://www.11ty.io/docs/copy/).

60
node_modules/@11ty/eleventy/docs/coverage.md generated vendored Normal file
View File

@ -0,0 +1,60 @@
# Code Coverage for Eleventy v0.9.0
| Filename | % Lines | % Statements | % Functions | % Branches |
| ---------------------------------------------------------- | ------- | ------------ | ----------- | ---------- |
| `total` | 88.67% | 88.73% | 87.5% | 81.26% |
| `config.js` | 100% | 100% | 100% | 100% |
| `src/Benchmark.js` | 91.67% | 91.67% | 83.33% | 66.67% |
| `src/BenchmarkGroup.js` | 67.65% | 67.65% | 71.43% | 30% |
| `src/BenchmarkManager.js` | 76.47% | 76.47% | 71.43% | 75% |
| `src/Config.js` | 100% | 100% | 100% | 100% |
| `src/Eleventy.js` | 54.8% | 54.8% | 57.58% | 46.15% |
| `src/EleventyBaseError.js` | 100% | 100% | 100% | 100% |
| `src/EleventyCommandCheck.js` | 100% | 100% | 100% | 87.5% |
| `src/EleventyConfig.js` | 100% | 100% | 100% | 100% |
| `src/EleventyErrorHandler.js` | 91.67% | 91.67% | 100% | 67.57% |
| `src/EleventyErrorUtil.js` | 100% | 100% | 100% | 100% |
| `src/EleventyExtensionMap.js` | 96.67% | 96.67% | 92% | 100% |
| `src/EleventyFiles.js` | 94.44% | 94.44% | 89.19% | 91.3% |
| `src/EleventyServe.js` | 36.07% | 36.07% | 56.25% | 24.39% |
| `src/EleventyWatchTargets.js` | 93.48% | 93.48% | 90% | 93.33% |
| `src/Template.js` | 94.68% | 94.72% | 97.87% | 86.14% |
| `src/TemplateCache.js` | 100% | 100% | 100% | 100% |
| `src/TemplateCollection.js` | 93.1% | 93.55% | 92.31% | 80% |
| `src/TemplateConfig.js` | 91.23% | 91.23% | 66.67% | 91.67% |
| `src/TemplateContent.js` | 93.83% | 93.83% | 94.12% | 91.18% |
| `src/TemplateData.js` | 94.41% | 94.48% | 100% | 82% |
| `src/TemplateFileSlug.js` | 100% | 100% | 100% | 100% |
| `src/TemplateGlob.js` | 93.33% | 93.33% | 100% | 87.5% |
| `src/TemplateLayout.js` | 100% | 100% | 100% | 100% |
| `src/TemplateLayoutPathResolver.js` | 95.74% | 95.74% | 100% | 88.89% |
| `src/TemplateMap.js` | 97.9% | 97.9% | 96.88% | 90.4% |
| `src/TemplatePassthrough.js` | 94.74% | 94.74% | 88.89% | 85.71% |
| `src/TemplatePassthroughManager.js` | 91.38% | 91.38% | 100% | 71.43% |
| `src/TemplatePath.js` | 100% | 100% | 95.65% | 100% |
| `src/TemplatePermalink.js` | 100% | 100% | 100% | 100% |
| `src/TemplatePermalinkNoWrite.js` | 100% | 100% | 100% | 100% |
| `src/TemplateRender.js` | 98.7% | 98.7% | 100% | 95.24% |
| `src/TemplateWriter.js` | 81.25% | 81.25% | 71.43% | 30% |
| `src/UserConfig.js` | 64.46% | 64.67% | 51.11% | 54.55% |
| `src/Engines/Ejs.js` | 95% | 95% | 85.71% | 88.89% |
| `src/Engines/Haml.js` | 100% | 100% | 100% | 100% |
| `src/Engines/Handlebars.js` | 100% | 100% | 100% | 83.33% |
| `src/Engines/Html.js` | 100% | 100% | 100% | 100% |
| `src/Engines/JavaScript.js` | 96% | 96.08% | 100% | 88.1% |
| `src/Engines/JavaScriptTemplateLiteral.js` | 94.44% | 94.44% | 100% | 100% |
| `src/Engines/Liquid.js` | 95.89% | 95.89% | 96.15% | 86.67% |
| `src/Engines/Markdown.js` | 90.91% | 90.91% | 88.89% | 81.25% |
| `src/Engines/Mustache.js` | 100% | 100% | 100% | 100% |
| `src/Engines/Nunjucks.js` | 88.52% | 88.52% | 94.74% | 84.62% |
| `src/Engines/Pug.js` | 100% | 100% | 100% | 88.89% |
| `src/Engines/TemplateEngine.js` | 100% | 100% | 100% | 100% |
| `src/Errors/TemplateContentPrematureUseError.js` | 100% | 100% | 100% | 100% |
| `src/Errors/UsingCircularTemplateContentReferenceError.js` | 100% | 100% | 100% | 100% |
| `src/Filters/Slug.js` | 100% | 100% | 100% | 100% |
| `src/Filters/Url.js` | 100% | 100% | 100% | 100% |
| `src/Plugins/Pagination.js` | 92.52% | 92.66% | 93.75% | 81.82% |
| `src/Util/Capitalize.js` | 100% | 100% | 100% | 100% |
| `src/Util/Merge.js` | 92.86% | 92.86% | 100% | 86.36% |
| `src/Util/Pluralize.js` | 100% | 100% | 100% | 100% |
| `src/Util/Sortable.js` | 84.78% | 85.11% | 73.91% | 94.44% |

3
node_modules/@11ty/eleventy/docs/data.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Using Data
Moved to [https://www.11ty.io/docs/data/](https://www.11ty.io/docs/data/).

3
node_modules/@11ty/eleventy/docs/engines.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Changing a Templates Rendering Engine
Moved to [https://www.11ty.io/docs/languages/](https://www.11ty.io/docs/languages/).

3
node_modules/@11ty/eleventy/docs/engines/ejs.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# EJS
Moved to [https://www.11ty.io/docs/languages/ejs/](https://www.11ty.io/docs/languages/ejs/).

3
node_modules/@11ty/eleventy/docs/engines/haml.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# HAML
Moved to [https://www.11ty.io/docs/languages/haml/](https://www.11ty.io/docs/languages/haml/).

View File

@ -0,0 +1,3 @@
# Handlebars
Moved to [https://www.11ty.io/docs/languages/handlebars/](https://www.11ty.io/docs/languages/handlebars/).

3
node_modules/@11ty/eleventy/docs/engines/html.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# HTML
Moved to [https://www.11ty.io/docs/languages/html/](https://www.11ty.io/docs/languages/html/).

3
node_modules/@11ty/eleventy/docs/engines/jstl.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# JavaScript Template Literals
Moved to [https://www.11ty.io/docs/languages/jstl/](https://www.11ty.io/docs/languages/jstl/).

3
node_modules/@11ty/eleventy/docs/engines/liquid.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Liquid
Moved to [https://www.11ty.io/docs/languages/liquid/](https://www.11ty.io/docs/languages/liquid/).

3
node_modules/@11ty/eleventy/docs/engines/markdown.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Markdown
Moved to [https://www.11ty.io/docs/languages/markdown/](https://www.11ty.io/docs/languages/markdown/).

3
node_modules/@11ty/eleventy/docs/engines/mustache.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Mustache
Moved to [https://www.11ty.io/docs/languages/mustache/](https://www.11ty.io/docs/languages/mustache/).

3
node_modules/@11ty/eleventy/docs/engines/nunjucks.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Nunjucks
Moved to [https://www.11ty.io/docs/languages/nunjucks/](https://www.11ty.io/docs/languages/nunjucks/).

3
node_modules/@11ty/eleventy/docs/engines/pug.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Pug (formerly Jade)
Moved to [https://www.11ty.io/docs/languages/pug/](https://www.11ty.io/docs/languages/pug/).

3
node_modules/@11ty/eleventy/docs/filters.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Filters, Tags, etc.
Moved to [https://www.11ty.io/docs/filters/](https://www.11ty.io/docs/filters/).

3
node_modules/@11ty/eleventy/docs/install-local.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Install locally
Moved to [https://www.11ty.io/docs/local-installation/](https://www.11ty.io/docs/local-installation/).

3
node_modules/@11ty/eleventy/docs/layouts.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Layouts
Moved to [https://www.11ty.io/docs/layouts/](https://www.11ty.io/docs/layouts/).

BIN
node_modules/@11ty/eleventy/docs/logo-github.png generated vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

39
node_modules/@11ty/eleventy/docs/meta-release.md generated vendored Normal file
View File

@ -0,0 +1,39 @@
# Beta Release Procedure
1. update minor dependencies in package.json?
1. npmclean
1. npm audit
1. Update version in `package.json`, include `-beta.1` suffix
1. Run `npm run coverage`
1. Check it all in and commit
1. Tag new version
1. `npm publish --access=public --tag=beta`
# Release Procedure
1. update minor dependencies in package.json? `npm outdated` `npm update --save`
1. npmclean first
1. npm audit
1. Update version in `package.json`
1. Run `npm run coverage`
1. Check it all in and commit
1. Tag new version
1. `npm publish --access=public`
## If branch docs do not exist
1. Check in a new `11ty.io` site with updated `package.json` version.
2. Add version to 11ty.io `versions.json`
3. Create a new branch for branched version
4. Go to https://app.netlify.com/sites/11ty/settings/domain and set up a subdomain for it.
### Always:
1. Check out the previous version git branch and add `outdated: true` to `_data/config.json` and commit/push.
2. Update `eleventy-base-blog`?
## If Branch docs already exist, 11ty.io (unlikely, I dont do this any more)
1. Check to make sure `"prerelease": false` in `_data/config.json`
2. Check to make sure `"prerelease": true` does not exist in current version in `_data/versions.json`
3. Merge branch to master.

3
node_modules/@11ty/eleventy/docs/pagination.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Pagination
Moved to [https://www.11ty.io/docs/pagination/](https://www.11ty.io/docs/pagination/).

3
node_modules/@11ty/eleventy/docs/permalinks.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Permalinks
Moved to [https://www.11ty.io/docs/permalinks/](https://www.11ty.io/docs/permalinks/).

3
node_modules/@11ty/eleventy/docs/pitfalls.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Common Eleventy Pitfalls
Moved to [https://www.11ty.io/docs/pitfalls/](https://www.11ty.io/docs/pitfalls/).

3
node_modules/@11ty/eleventy/docs/plugins.md generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Plugins
Moved to [https://www.11ty.io/docs/plugins/](https://www.11ty.io/docs/plugins/).

152
node_modules/@11ty/eleventy/package.json generated vendored Executable file
View File

@ -0,0 +1,152 @@
{
"_args": [
[
"@11ty/eleventy@0.9.0",
"/Users/tatiana/selfdefined"
]
],
"_from": "@11ty/eleventy@0.9.0",
"_id": "@11ty/eleventy@0.9.0",
"_inBundle": false,
"_integrity": "sha512-6BW59Fzf2sXrtnS5bUey5JbbiOSZCujG7/6/quj4ooLYIFV3djBZpyJg6mQmlyefFIacvC0GDP+9QT+QQ0O74g==",
"_location": "/@11ty/eleventy",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@11ty/eleventy@0.9.0",
"name": "@11ty/eleventy",
"escapedName": "@11ty%2feleventy",
"scope": "@11ty",
"rawSpec": "0.9.0",
"saveSpec": null,
"fetchSpec": "0.9.0"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/@11ty/eleventy/-/eleventy-0.9.0.tgz",
"_spec": "0.9.0",
"_where": "/Users/tatiana/selfdefined",
"author": {
"name": "Zach Leatherman",
"email": "zachleatherman@gmail.com",
"url": "https://zachleat.com/"
},
"ava": {
"files": [
"./test/*.js"
],
"sources": [
"./**/.eleventyignore",
"./src/**/*.js",
"./test/stubs/**",
"!./test/stubs/**/_site/**"
]
},
"bin": {
"eleventy": "./cmd.js"
},
"bugs": {
"url": "https://github.com/11ty/eleventy/issues"
},
"dependencies": {
"browser-sync": "^2.26.7",
"chalk": "^2.4.2",
"chokidar": "^3.0.2",
"debug": "^4.1.1",
"dependency-graph": "^0.8.0",
"dependency-tree": "^7.0.2",
"ejs": "^2.6.2",
"fast-glob": "^3.0.4",
"fs-extra": "^8.1.0",
"gray-matter": "^4.0.2",
"hamljs": "^0.6.2",
"handlebars": "^4.1.2",
"javascript-stringify": "^2.0.0",
"liquidjs": "^6.4.3",
"lodash": "^4.17.15",
"luxon": "^1.17.2",
"markdown-it": "^8.4.2",
"minimist": "^1.2.0",
"moo": "^0.5.0",
"multimatch": "^4.0.0",
"mustache": "^2.3.0",
"normalize-path": "^3.0.0",
"nunjucks": "^3.2.0",
"parse-filepath": "^1.0.2",
"please-upgrade-node": "^3.2.0",
"pretty": "^2.0.0",
"pug": "^2.0.4",
"recursive-copy": "^2.0.10",
"semver": "^6.3.0",
"slugify": "^1.3.4",
"time-require": "^0.1.2",
"valid-url": "^1.0.9"
},
"description": "Transform a directory of templates into HTML.",
"devDependencies": {
"@11ty/eleventy-plugin-syntaxhighlight": "^2.0.3",
"ava": "^2.2.0",
"lint-staged": "^9.2.5",
"markdown-it-emoji": "^1.4.0",
"nyc": "^14.1.1",
"pre-commit": "^1.2.2",
"pre-push": "^0.1.1",
"prettier": "^1.18.2",
"rimraf": "^3.0.0",
"toml": "^3.0.0",
"viperhtml": "^2.17.0",
"vue": "^2.6.10",
"vue-server-renderer": "^2.6.10"
},
"engines": {
"node": ">=8"
},
"homepage": "https://github.com/11ty/eleventy#readme",
"keywords": [
"static-site-generator",
"static-site",
"ssg",
"documentation",
"website",
"jekyll",
"blog",
"templates",
"generator",
"framework",
"eleventy",
"11ty",
"html",
"markdown",
"liquid",
"nunjucks",
"pug",
"handlebars",
"mustache",
"ejs",
"haml"
],
"license": "MIT",
"lint-staged": {
"*.{js,css,md}": [
"prettier --write",
"git add"
]
},
"main": "src/Eleventy.js",
"name": "@11ty/eleventy",
"pre-commit": "lint-staged",
"pre-push": "test",
"repository": {
"type": "git",
"url": "git://github.com/11ty/eleventy.git"
},
"scripts": {
"coverage": "npx nyc ava && npx nyc report --reporter=json-summary && cp coverage/coverage-summary.json docs-src/_data/coverage.json && node cmd.js --config=docs-src/.eleventy.docs.js",
"default": "npm run test",
"lint-staged": "lint-staged",
"test": "npx ava --verbose"
},
"version": "0.9.0"
}

35
node_modules/@11ty/eleventy/src/Benchmark.js generated vendored Normal file
View File

@ -0,0 +1,35 @@
class Benchmark {
constructor() {
this.reset();
}
reset() {
this.timeSpent = 0;
this.beforeDates = [];
}
before() {
this.beforeDates.push(new Date());
}
after() {
if (!this.beforeDates.length) {
throw new Error("You called Benchmark after() without a before().");
}
let before = this.beforeDates.pop();
if (!this.beforeDates.length) {
this.timeSpent += new Date().getTime() - before.getTime();
}
}
getTotal() {
return this.timeSpent;
}
getTotalString() {
return this.timeSpent > 0 ? ` (${this.timeSpent}ms)` : "";
}
}
module.exports = Benchmark;

73
node_modules/@11ty/eleventy/src/BenchmarkGroup.js generated vendored Normal file
View File

@ -0,0 +1,73 @@
const chalk = require("chalk");
const Benchmark = require("./Benchmark");
const debugWarn = require("debug")("Eleventy:Warnings");
class BenchmarkGroup {
constructor() {
this.benchmarks = {};
this.start = new Date();
this.isVerbose = true;
this.minimumThresholdMs = 0;
}
reset() {
this.start = new Date();
for (var type in this.benchmarks) {
this.benchmarks[type].reset();
}
}
// TODO make this async
add(type, callback) {
let benchmark = (this.benchmarks[type] = new Benchmark());
return function(...args) {
benchmark.before();
let ret = callback.call(this, ...args);
benchmark.after();
return ret;
};
}
setMinimumThresholdMs(minimumThresholdMs) {
let val = parseInt(minimumThresholdMs, 10);
if (isNaN(val)) {
throw new Error("`setMinimumThresholdMs` expects a number argument.");
}
this.minimumThresholdMs = val;
}
get(type) {
this.benchmarks[type] = new Benchmark();
return this.benchmarks[type];
}
finish(label, thresholdPercent, isVerbose) {
let totalTimeSpent = new Date().getTime() - this.start.getTime();
thresholdPercent = thresholdPercent !== undefined ? thresholdPercent : 10;
for (var type in this.benchmarks) {
let bench = this.benchmarks[type];
let totalForBenchmark = bench.getTotal();
let percent = (totalForBenchmark * 100) / totalTimeSpent;
if (
percent > thresholdPercent &&
totalForBenchmark >= this.minimumThresholdMs
) {
let str = chalk.yellow(
`Benchmark (${label}): ${type} took ${bench.getTotal()}ms (${percent.toFixed(
1
)}%)`
);
if (isVerbose) {
console.log(str);
}
debugWarn(str);
}
}
}
}
module.exports = BenchmarkGroup;

47
node_modules/@11ty/eleventy/src/BenchmarkManager.js generated vendored Normal file
View File

@ -0,0 +1,47 @@
const BenchmarkGroup = require("./BenchmarkGroup");
class BenchmarkManager {
constructor() {
this.benches = {};
this.isVerbose = true;
}
reset() {
for (var j in this.benches) {
this.benches[j].reset();
}
}
setVerboseOutput(isVerbose) {
this.isVerbose = !!isVerbose;
}
getBenchmarkGroup(name) {
if (!this.benches[name]) {
this.benches[name] = new BenchmarkGroup();
}
return this.benches[name];
}
getAll() {
return this.benches;
}
get(name) {
if (name) {
return this.getBenchmarkGroup(name);
}
return this.getAll();
}
finish(thresholdPercent) {
for (var j in this.benches) {
this.benches[j].finish(j, thresholdPercent, this.isVerbose);
}
}
}
let manager = new BenchmarkManager();
module.exports = manager;

7
node_modules/@11ty/eleventy/src/Config.js generated vendored Normal file
View File

@ -0,0 +1,7 @@
const TemplateConfig = require("./TemplateConfig");
const debug = require("debug")("Eleventy:Config");
debug("Setting up global TemplateConfig.");
let config = new TemplateConfig();
module.exports = config;

451
node_modules/@11ty/eleventy/src/Eleventy.js generated vendored Normal file
View File

@ -0,0 +1,451 @@
const pkg = require("../package.json");
const TemplatePath = require("./TemplatePath");
const TemplateData = require("./TemplateData");
const TemplateWriter = require("./TemplateWriter");
const EleventyErrorHandler = require("./EleventyErrorHandler");
const EleventyServe = require("./EleventyServe");
const EleventyWatchTargets = require("./EleventyWatchTargets");
const EleventyFiles = require("./EleventyFiles");
const templateCache = require("./TemplateCache");
const simplePlural = require("./Util/Pluralize");
const config = require("./Config");
const bench = require("./BenchmarkManager");
const debug = require("debug")("Eleventy");
class Eleventy {
constructor(input, output) {
this.config = config.getConfig();
this.configPath = null;
this.isVerbose = true;
this.isDebug = false;
this.isDryRun = false;
this.start = new Date();
this.formatsOverride = null;
this.eleventyServe = new EleventyServe();
this.rawInput = input;
this.rawOutput = output;
this.watchTargets = new EleventyWatchTargets();
this.watchTargets.watchJavaScriptDependencies = this.config.watchJavaScriptDependencies;
}
get input() {
return this.rawInput || this.config.dir.input;
}
get inputDir() {
return TemplatePath.getDir(this.input);
}
get outputDir() {
let dir = this.rawOutput || this.config.dir.output;
if (dir !== this._savedOutputDir) {
this.eleventyServe.setOutputDir(dir);
}
this._savedOutputDir = dir;
return dir;
}
setDryRun(isDryRun) {
this.isDryRun = !!isDryRun;
}
setPassthroughAll(isPassthroughAll) {
this.isPassthroughAll = !!isPassthroughAll;
}
setPathPrefix(pathPrefix) {
if (pathPrefix || pathPrefix === "") {
config.setPathPrefix(pathPrefix);
this.config = config.getConfig();
}
}
setWatchTargets(watchTargets) {
this.watchTargets = watchTargets;
}
setConfigPathOverride(configPath) {
if (configPath) {
this.configPath = configPath;
config.setProjectConfigPath(configPath);
this.config = config.getConfig();
}
}
async restart() {
debug("Restarting");
this.start = new Date();
templateCache.clear();
bench.reset();
this.eleventyFiles.restart();
// reload package.json values (if applicable)
// TODO only reset this if it changed
delete require.cache[TemplatePath.absolutePath("package.json")];
await this.init();
}
finish() {
bench.finish();
(this.logger || console).log(this.logFinished());
debug("Finished writing templates.");
}
logFinished() {
if (!this.writer) {
throw new Error(
"Did you call Eleventy.init to create the TemplateWriter instance? Hint: you probably didnt."
);
}
let ret = [];
let writeCount = this.writer.getWriteCount();
let copyCount = this.writer.getCopyCount();
if (this.isDryRun) {
ret.push("Pretended to");
}
if (copyCount) {
ret.push(
`${this.isDryRun ? "Copy" : "Copied"} ${copyCount} ${simplePlural(
copyCount,
"item",
"items"
)} and`
);
}
ret.push(
`${this.isDryRun ? "Process" : "Processed"} ${writeCount} ${simplePlural(
writeCount,
"file",
"files"
)}`
);
let time = ((new Date() - this.start) / 1000).toFixed(2);
ret.push(`in ${time} ${simplePlural(time, "second", "seconds")}`);
if (writeCount >= 10) {
ret.push(
`(${((time * 1000) / writeCount).toFixed(1)}ms each, v${pkg.version})`
);
} else {
ret.push(`(v${pkg.version})`);
}
return ret.join(" ");
}
async init() {
let formats = this.formatsOverride || this.config.templateFormats;
this.eleventyFiles = new EleventyFiles(
this.input,
this.outputDir,
formats,
this.isPassthroughAll
);
this.eleventyFiles.init();
this.templateData = new TemplateData(this.inputDir);
this.eleventyFiles.setTemplateData(this.templateData);
this.writer = new TemplateWriter(
this.input,
this.outputDir,
formats,
this.templateData,
this.isPassthroughAll
);
this.writer.setEleventyFiles(this.eleventyFiles);
// TODO maybe isVerbose -> console.log?
debug(`Directories:
Input: ${this.inputDir}
Data: ${this.templateData.getDataDir()}
Includes: ${this.eleventyFiles.getIncludesDir()}
Layouts: ${this.eleventyFiles.getLayoutsDir()}
Output: ${this.outputDir}
Template Formats: ${formats.join(",")}`);
this.writer.setVerboseOutput(this.isVerbose);
this.writer.setDryRun(this.isDryRun);
return this.templateData.cacheData();
}
setIsDebug(isDebug) {
this.isDebug = !!isDebug;
}
setIsVerbose(isVerbose) {
this.isVerbose = !!isVerbose;
if (this.writer) {
this.writer.setVerboseOutput(this.isVerbose);
}
if (bench) {
bench.setVerboseOutput(this.isVerbose);
}
}
setFormats(formats) {
if (formats && formats !== "*") {
this.formatsOverride = formats.split(",");
}
}
getVersion() {
return require("../package.json").version;
}
getHelp() {
return `usage: eleventy
eleventy --input=. --output=./_site
eleventy --serve
Arguments:
--version
--input=.
Input template files (default: \`.\`)
--output=_site
Write HTML output to this folder (default: \`_site\`)
--serve
Run web server on --port (default 8080) and watch them too
--watch
Wait for files to change and automatically rewrite (no web server)
--formats=liquid,md
Whitelist only certain template types (default: \`*\`)
--quiet
Dont print all written files (off by default)
--config=filename.js
Override the eleventy config file path (default: \`.eleventy.js\`)
--pathprefix='/'
Change all url template filters to use this subdirectory.
--dryrun
Dont write any files. Useful with \`DEBUG=Eleventy* npx eleventy\`
--help`;
}
resetConfig() {
config.reset();
this.config = config.getConfig();
this.eleventyServe.config = this.config;
}
async _watch(path) {
if (path) {
path = TemplatePath.addLeadingDotSlash(path);
}
if (this.active) {
this.queuedToRun = path;
return;
}
this.active = true;
let localProjectConfigPath = config.getLocalProjectConfigFile();
// reset and reload global configuration :O
if (path === localProjectConfigPath) {
this.resetConfig();
}
config.resetOnWatch();
await this.restart();
this.watchTargets.clearDependencyRequireCache();
await this.write();
this.watchTargets.reset();
await this._initWatchDependencies();
// Add new deps to chokidar
this.watcher.add(this.watchTargets.getNewTargetsSinceLastReset());
let isInclude =
path &&
TemplatePath.startsWithSubPath(path, this.eleventyFiles.getIncludesDir());
this.eleventyServe.reload(path, isInclude);
this.active = false;
if (this.queuedToRun) {
console.log("You saved while Eleventy was running, lets run again.");
this.queuedToRun = false;
await this._watch(this.queuedToRun);
} else {
console.log("Watching…");
}
}
get watcherBench() {
return bench.get("Watcher");
}
async initWatch() {
this.watchTargets.add(this.eleventyFiles.getGlobWatcherFiles());
// Watch the local project config file
this.watchTargets.add(config.getLocalProjectConfigFile());
// Template and Directory Data Files
this.watchTargets.add(
await this.eleventyFiles.getGlobWatcherTemplateDataFiles()
);
let benchmark = this.watcherBench.get(
"Watching JavaScript Dependencies (disable with `eleventyConfig.setWatchJavaScriptDependencies(false)`)"
);
benchmark.before();
await this._initWatchDependencies();
benchmark.after();
}
async _initWatchDependencies() {
if (!this.watchTargets.watchJavaScriptDependencies) {
return;
}
let dataDir = this.templateData.getDataDir();
function filterOutGlobalDataFiles(path) {
return !dataDir || path.indexOf(dataDir) === -1;
}
// Template files .11ty.js
this.watchTargets.addDependencies(this.eleventyFiles.getWatchPathCache());
// Config file dependencies
this.watchTargets.addDependencies(
config.getLocalProjectConfigFile(),
filterOutGlobalDataFiles.bind(this)
);
// Deps from Global Data (that arent in the global data directory, everything is watched there)
this.watchTargets.addDependencies(
this.templateData.getWatchPathCache(),
filterOutGlobalDataFiles.bind(this)
);
this.watchTargets.addDependencies(
await this.eleventyFiles.getWatcherTemplateJavaScriptDataFiles()
);
}
async getWatchedFiles() {
return this.watchTargets.getTargets();
}
async watch() {
this.watcherBench.setMinimumThresholdMs(500);
this.watcherBench.reset();
const chokidar = require("chokidar");
this.active = false;
this.queuedToRun = false;
// Note that watching indirectly depends on this for fetching dependencies from JS files
// See: TemplateWriter:pathCache and EleventyWatchTargets
await this.write();
await this.initWatch();
// TODO improve unwatching if JS dependencies are removed (or files are deleted)
let rawFiles = await this.getWatchedFiles();
debug("Watching for changes to: %o", rawFiles);
let ignores = this.eleventyFiles.getGlobWatcherIgnores();
debug("Watching but ignoring changes to: %o", ignores);
let watcher = chokidar.watch(rawFiles, {
ignored: ignores,
ignoreInitial: true
});
this.watcherBench.finish("Initialize --watch", 10, this.isVerbose);
console.log("Watching…");
this.watcher = watcher;
async function watchRun(path) {
try {
await this._watch(path);
} catch (e) {
EleventyErrorHandler.fatal(e, "Eleventy fatal watch error");
watcher.close();
}
}
watcher.on("change", async path => {
console.log("File changed:", path);
await watchRun.call(this, path);
});
watcher.on("add", async path => {
console.log("File added:", path);
await watchRun.call(this, path);
});
process.on(
"SIGINT",
function() {
debug("Cleaning up chokidar and browsersync (if exists) instances.");
this.eleventyServe.close();
this.watcher.close();
process.exit();
}.bind(this)
);
}
serve(port) {
this.eleventyServe.serve(port);
}
/* For testing */
setLogger(logger) {
this.logger = logger;
}
async write() {
let ret;
if (this.logger) {
EleventyErrorHandler.logger = this.logger;
}
try {
let promise = this.writer.write();
ret = await promise;
} catch (e) {
EleventyErrorHandler.initialMessage(
"Problem writing Eleventy templates",
"error",
"red"
);
EleventyErrorHandler.fatal(e);
}
this.finish();
debug(`
Getting frustrated? Have a suggestion/feature request/feedback?
I want to hear it! Open an issue: https://github.com/11ty/eleventy/issues/new`);
// unset the logger
EleventyErrorHandler.logger = undefined;
return ret;
}
}
module.exports = Eleventy;

Some files were not shown because too many files have changed in this diff Show More