FILE | METHOD | CODE |
---|---|---|
src/components/AlertBar | storiesOf |
import { storiesOf } from '@storybook/react' |
src/components/AppLayout | storiesOf |
import { storiesOf } from '@storybook/react' |
src/components/CouponForm | storiesOf |
import { storiesOf } from '@storybook/react' |
src/components/DialogMessage | storiesOf |
import { storiesOf } from '@storybook/react' |
src/components/Header | storiesOf |
import { storiesOf } from '@storybook/react' |
Meta |
import { Meta } from '@storybook/react' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://addons.mozilla.org/api/v5/addons/search/?author=mozilla&page_size=100&type=extension | |
name: Firefox Relay (2.6.1) | |
size: 777.5 KB | |
last_updated: Feb 22, 2023 (2 days ago) | |
ratings: 4.0957 (1,275) | |
average_daily_users: 138,528 | |
weekly_downloads: 2,394 | |
homepage: https://relay.firefox.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("node:fs/promises"); | |
const { inspect } = require("node:util"); | |
/** | |
* @typedef {import('@11ty/eleventy/src/UserConfig')} EleventyConfig | |
* @typedef {ReturnType<import('@11ty/eleventy/src/defaultConfig')>} EleventyReturnValue | |
* @type {(eleventyConfig: EleventyConfig) => EleventyReturnValue} | |
*/ | |
module.exports = function (eleventyConfig) { | |
const eventData = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { execSync } from "node:child_process"; | |
import path from "node:path"; | |
import minimatch from "minimatch"; | |
import prettier from "prettier"; | |
const ignores = [ | |
".circleci/**", | |
".github/**", | |
".vscode/**", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { inspect } = require("node:util"); | |
// `npm i sort-object-keys -D` | |
const sortObj = require("sort-object-keys"); | |
// `npm i eslint-plugin-jsx-a11y -D` | |
// console.log(dump("eslint-plugin-jsx-a11y")); | |
// `npm i eslint-plugin-react -D` | |
console.log(dump("eslint-plugin-react")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios"); | |
const glob = require("fast-glob"); | |
const parse = require("parse-github-repo-url"); | |
glob("./packages/*/package.json").then(files => { | |
for (const file of files) { | |
const pkg = require(file); | |
const allDeps = Object.assign({}, pkg.dependencies, pkg.devDependencies); | |
const httpDeps = Object.entries(allDeps) | |
.filter(([name, version]) => version.startsWith("https://")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<style> | |
h2 { | |
color: salmon; | |
font-family: "Comic Sans MS"; | |
} | |
dt { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from "node:fs/promises"; | |
import glob from "fast-glob"; | |
import {HTMLHint} from "htmlhint"; | |
const res = await verifyGlob("**/*.ftl", false); | |
console.log(res); | |
async function verifyGlob(fileglob, ignoreComments=true) { | |
let errors = []; | |
for (const file of await glob([fileglob, "!node_modules/**"])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
const npmsClient = axios.create({ | |
baseURL: new URL("/v2/search", "https://api.npms.io").href, | |
timeout: 2000, | |
}); | |
const res = await searchNpms(["keywords:eleventy-plugin"], 15); | |
console.log(JSON.stringify(res, null, 2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"built-with-eleventy/0FgV3CGtHR.json": { | |
"errors": [ | |
"must have required property 'opened_by'" | |
], | |
"data": { | |
"leaderboard_excluded": true, | |
"url": "https://github.com/lit/lit-element-starter-ts", | |
"source_url": "https://github.com/lit/lit-element-starter-ts" | |
} |