28 changed files with 1227 additions and 29 deletions
@ -0,0 +1,45 @@ |
|||
const get = query => new Promise((resolve, reject) => { |
|||
const xhr = new XMLHttpRequest(); |
|||
|
|||
xhr.open('GET', `https://api.npms.io/v2/search?q=${query}`); |
|||
xhr.addEventListener('load', () => { |
|||
try { |
|||
resolve(JSON.parse(xhr.responseText)); |
|||
} catch (ex) { |
|||
reject(ex); |
|||
} |
|||
}); |
|||
|
|||
xhr.send(); |
|||
}); |
|||
|
|||
require(['gitbook'], (gitbook) => { |
|||
gitbook.events.bind('page.change', () => { |
|||
[...document.querySelectorAll('.npmsearchlist')].map(el => { |
|||
const query = el.getAttribute('data-query'); |
|||
|
|||
get(query) |
|||
.then(({ results }) => ( |
|||
`<div>
|
|||
<h2>${results.length} packages found</h2> |
|||
<hr /> |
|||
<ul> |
|||
${results.map(({ package }) => (` |
|||
<li> |
|||
<h3> |
|||
<a class="package-name" href="${package.links.npm}">${package.name}</a> |
|||
<a class="author-name" href="https://www.npmjs.com/~${package.author.username}">${package.author.username}</a> |
|||
</h3> |
|||
<p class="description">${package.description}</p> |
|||
<p class="stats"> |
|||
<span class="version">v${package.version}</span> |
|||
</p> |
|||
</li> |
|||
`)).join('')}
|
|||
</ul> |
|||
</div>` |
|||
)) |
|||
.then(markup => el.innerHTML = markup); |
|||
}); |
|||
}); |
|||
}); |
@ -0,0 +1,50 @@ |
|||
.npmsearchlist li { |
|||
list-style: none; |
|||
position: relative; |
|||
font-size: 125%; |
|||
color: rgb(51, 51, 51); |
|||
padding-bottom: 1.125em; |
|||
padding-top: 0.25em; |
|||
border-bottom: 1px solid rgb(234, 234, 234); |
|||
} |
|||
|
|||
.npmsearchlist h3 { |
|||
display: block; |
|||
margin: 0; |
|||
padding: 20px 0 10px 0; |
|||
font-size: 20px; |
|||
font-weight: 400; |
|||
line-height: 1; |
|||
color: rgba(0, 0, 0, 0.8); |
|||
} |
|||
|
|||
.npmsearchlist h3 .package-name { |
|||
font-weight: 500; |
|||
margin-right: 0.4em; |
|||
color: #000; |
|||
} |
|||
|
|||
.npmsearchlist h3 .author-name { |
|||
font-size: 75%; |
|||
color: rgb(119, 119, 119); |
|||
font-family: Consolas, "Liberation Mono", Menlo, Monaco, Courier, monospace; |
|||
} |
|||
|
|||
.npmsearchlist p { |
|||
color: rgb(85, 85, 85); |
|||
line-height: 20px; |
|||
margin: 0.5em 0 0; |
|||
font-size: 0.75em; |
|||
} |
|||
|
|||
.npmsearchlist .stats { |
|||
color: rgba(0, 0, 0, 0.4); |
|||
font-size: 0.8em; |
|||
font-weight: 600; |
|||
display: block; |
|||
} |
|||
|
|||
.npmsearchlist .stats .version { |
|||
color: rgb(119, 119, 119); |
|||
font-size: 17px; |
|||
} |
@ -0,0 +1,599 @@ |
|||
|
|||
<!DOCTYPE HTML> |
|||
<html lang="" > |
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
|||
<title>Community presets · Neutrino</title> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
|||
<meta name="description" content=""> |
|||
<meta name="generator" content="GitBook 3.2.2"> |
|||
|
|||
|
|||
|
|||
|
|||
<link rel="stylesheet" href="../gitbook/style.css"> |
|||
|
|||
|
|||
|
|||
|
|||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css"> |
|||
|
|||
|
|||
|
|||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-npmsearchlist/styles.css"> |
|||
|
|||
|
|||
|
|||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css"> |
|||
|
|||
|
|||
|
|||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css"> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
<meta name="HandheldFriendly" content="true"/> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> |
|||
<meta name="apple-mobile-web-app-capable" content="yes"> |
|||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> |
|||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png"> |
|||
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon"> |
|||
|
|||
|
|||
<link rel="next" href="../customization/" /> |
|||
|
|||
|
|||
<link rel="prev" href="neutrino-preset-jest/" /> |
|||
|
|||
|
|||
</head> |
|||
<body> |
|||
|
|||
<div class="book"> |
|||
<div class="book-summary"> |
|||
|
|||
|
|||
<div id="book-search-input" role="search"> |
|||
<input type="text" placeholder="Type to search" /> |
|||
</div> |
|||
|
|||
|
|||
<nav role="navigation"> |
|||
|
|||
|
|||
|
|||
<ul class="summary"> |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
<li class="chapter " data-level="1.1" data-path="../"> |
|||
|
|||
<a href="../"> |
|||
|
|||
|
|||
Introduction |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.2" data-path="../installation.html"> |
|||
|
|||
<a href="../installation.html"> |
|||
|
|||
|
|||
Installation |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.3" data-path="../usage.html"> |
|||
|
|||
<a href="../usage.html"> |
|||
|
|||
|
|||
Usage |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.4" data-path="../project-layout.html"> |
|||
|
|||
<a href="../project-layout.html"> |
|||
|
|||
|
|||
Project Layout |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.5" data-path="../FAQ.html"> |
|||
|
|||
<a href="../FAQ.html"> |
|||
|
|||
|
|||
FAQ |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.6" data-path="./"> |
|||
|
|||
<a href="./"> |
|||
|
|||
|
|||
Presets |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
<ul class="articles"> |
|||
|
|||
|
|||
<li class="chapter " data-level="1.6.1" data-path="neutrino-preset-web/"> |
|||
|
|||
<a href="neutrino-preset-web/"> |
|||
|
|||
|
|||
Web |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.6.2" data-path="neutrino-preset-react/"> |
|||
|
|||
<a href="neutrino-preset-react/"> |
|||
|
|||
|
|||
React |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.6.3" data-path="neutrino-preset-node/"> |
|||
|
|||
<a href="neutrino-preset-node/"> |
|||
|
|||
|
|||
Node.js |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.6.4" data-path="neutrino-preset-airbnb-base/"> |
|||
|
|||
<a href="neutrino-preset-airbnb-base/"> |
|||
|
|||
|
|||
Airbnb |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.6.5" data-path="neutrino-preset-karma/"> |
|||
|
|||
<a href="neutrino-preset-karma/"> |
|||
|
|||
|
|||
Karma |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.6.6" data-path="neutrino-preset-mocha/"> |
|||
|
|||
<a href="neutrino-preset-mocha/"> |
|||
|
|||
|
|||
Mocha |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.6.7" data-path="neutrino-preset-jest/"> |
|||
|
|||
<a href="neutrino-preset-jest/"> |
|||
|
|||
|
|||
Jest |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter active" data-level="1.6.8" data-path="community-presets.html"> |
|||
|
|||
<a href="community-presets.html"> |
|||
|
|||
|
|||
Community presets |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
|
|||
</ul> |
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.7" data-path="../customization/"> |
|||
|
|||
<a href="../customization/"> |
|||
|
|||
|
|||
Customization |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
<ul class="articles"> |
|||
|
|||
|
|||
<li class="chapter " data-level="1.7.1" data-path="../customization/simple.html"> |
|||
|
|||
<a href="../customization/simple.html"> |
|||
|
|||
|
|||
Simple |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.7.2" data-path="../customization/advanced.html"> |
|||
|
|||
<a href="../customization/advanced.html"> |
|||
|
|||
|
|||
Advanced |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
|
|||
</ul> |
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.8" data-path="../creating-presets.html"> |
|||
|
|||
<a href="../creating-presets.html"> |
|||
|
|||
|
|||
Creating presets |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
<ul class="articles"> |
|||
|
|||
|
|||
<li class="chapter " data-level="1.8.1" data-path="neutrino-lint-base/"> |
|||
|
|||
<a href="neutrino-lint-base/"> |
|||
|
|||
|
|||
Creating linting presets |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
|
|||
</ul> |
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.9" data-path="../learning-resources.html"> |
|||
|
|||
<a href="../learning-resources.html"> |
|||
|
|||
|
|||
Learning Resources |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.10" data-path="../api/"> |
|||
|
|||
<a href="../api/"> |
|||
|
|||
|
|||
API |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.11" data-path="../cli/"> |
|||
|
|||
<a href="../cli/"> |
|||
|
|||
|
|||
CLI |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.12" data-path="../contributing/"> |
|||
|
|||
<a href="../contributing/"> |
|||
|
|||
|
|||
Contributing |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
<ul class="articles"> |
|||
|
|||
|
|||
<li class="chapter " data-level="1.12.1" data-path="../contributing/development.html"> |
|||
|
|||
<a href="../contributing/development.html"> |
|||
|
|||
|
|||
Development Process |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
<li class="chapter " data-level="1.12.2" data-path="../contributing/code-of-conduct.html"> |
|||
|
|||
<a href="../contributing/code-of-conduct.html"> |
|||
|
|||
|
|||
Code of Conduct |
|||
|
|||
</a> |
|||
|
|||
|
|||
|
|||
</li> |
|||
|
|||
|
|||
</ul> |
|||
|
|||
</li> |
|||
|
|||
|
|||
|
|||
|
|||
<li class="divider"></li> |
|||
|
|||
<li> |
|||
<a href="https://www.gitbook.com" target="blank" class="gitbook-link"> |
|||
Published with GitBook |
|||
</a> |
|||
</li> |
|||
</ul> |
|||
|
|||
|
|||
</nav> |
|||
|
|||
|
|||
</div> |
|||
|
|||
<div class="book-body"> |
|||
|
|||
<div class="body-inner"> |
|||
|
|||
|
|||
|
|||
<div class="book-header" role="navigation"> |
|||
|
|||
|
|||
<!-- Title --> |
|||
<h1> |
|||
<i class="fa fa-circle-o-notch fa-spin"></i> |
|||
<a href=".." >Community presets</a> |
|||
</h1> |
|||
</div> |
|||
|
|||
|
|||
|
|||
|
|||
<div class="page-wrapper" tabindex="-1" role="main"> |
|||
<div class="page-inner"> |
|||
|
|||
<div id="book-search-results"> |
|||
<div class="search-noresults"> |
|||
|
|||
<section class="normal markdown-section"> |
|||
|
|||
<h1 id="community-presets">Community Presets</h1> |
|||
<p>A collection of Neutrino presets published on npm. In order to have your preset show up in this list, it must:</p> |
|||
<ul> |
|||
<li>Be published to npm</li> |
|||
<li>Contain the <code>neutrino-preset</code> keyword in package.json</li> |
|||
<li>Not be deprecated</li> |
|||
</ul> |
|||
<p>It should also have a relevant description. If you prefer, you can also add your preset to the |
|||
<a href="https://github.com/mozilla-neutrino/neutrino-dev/wiki/Community-Presets" target="_blank">neutrino-dev wiki</a>.</p> |
|||
<p><div class="npmsearchlist" data-query="keywords:neutrino-preset+not:deprecated"></div></p> |
|||
|
|||
|
|||
</section> |
|||
|
|||
</div> |
|||
<div class="search-results"> |
|||
<div class="has-results"> |
|||
|
|||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1> |
|||
<ul class="search-results-list"></ul> |
|||
|
|||
</div> |
|||
<div class="no-results"> |
|||
|
|||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
|
|||
|
|||
<a href="neutrino-preset-jest/" class="navigation navigation-prev " aria-label="Previous page: Jest"> |
|||
<i class="fa fa-angle-left"></i> |
|||
</a> |
|||
|
|||
|
|||
<a href="../customization/" class="navigation navigation-next " aria-label="Next page: Customization"> |
|||
<i class="fa fa-angle-right"></i> |
|||
</a> |
|||
|
|||
|
|||
|
|||
</div> |
|||
|
|||
<script> |
|||
var gitbook = gitbook || []; |
|||
gitbook.push(function() { |
|||
gitbook.page.hasChanged({"page":{"title":"Community presets","level":"1.6.8","depth":2,"next":{"title":"Customization","level":"1.7","depth":1,"path":"customization/README.md","ref":"customization/README.md","articles":[{"title":"Simple","level":"1.7.1","depth":2,"path":"customization/simple.md","ref":"customization/simple.md","articles":[]},{"title":"Advanced","level":"1.7.2","depth":2,"path":"customization/advanced.md","ref":"customization/advanced.md","articles":[]}]},"previous":{"title":"Jest","level":"1.6.7","depth":2,"path":"presets/neutrino-preset-jest/README.md","ref":"presets/neutrino-preset-jest/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","prism","-highlight","github","anchorjs","npmsearchlist"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"github":{"url":"https://github.com/mozilla-neutrino/neutrino-dev/"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"npmsearchlist":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit page","base":"https://github.com/mozilla-neutrino/neutrino-dev/tree/master/docs"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Neutrino","gitbook":"*"},"file":{"path":"presets/community-presets.md","mtime":"2017-02-28T16:42:58.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-02-28T16:43:04.603Z"},"basePath":"..","book":{"language":""}}); |
|||
}); |
|||
</script> |
|||
</div> |
|||
|
|||
|
|||
<script src="../gitbook/gitbook.js"></script> |
|||
<script src="../gitbook/theme.js"></script> |
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-github/plugin.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.1.1/anchor.min.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-anchorjs/anchor-style.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-npmsearchlist/script.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-search/search.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script> |
|||
|
|||
|
|||
|
|||
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script> |
|||
|
|||
|
|||
|
|||
</body> |
|||
</html> |
|||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue