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
define(function (require) { | |
var expect = require('unexpected'); | |
var React = require('react'); | |
var ReactTestUtils = React.addons.TestUtils; | |
var RadioGroup = require('jsx!../RadioGroupComponent.jsx'); | |
describe('RadioGroupComponent', function() { |
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
declare module "magicpen" { | |
function magicpen(): magicpen.MagicPen; | |
namespace magicpen { | |
interface MagicPen { | |
/** | |
* @see https://github.com/sunesimonsen/magicpen#textcontent-stylestring | |
*/ | |
text(content: string, ...style: Array<string>): this; |
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
// @ts-check | |
const { resolve } = require('path'); | |
/** @typedef {import('webpack/declarations/WebpackOptions').WebpackOptions} WebpackOptions */ | |
/** @typedef {import('webpack/declarations/WebpackOptions').Entry} Entry */ | |
/** | |
* @param {string} webpackConfigPath | |
*/ | |
module.exports = async function getEntrypointsFromWebpackConfig( |
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
#!/bin/sh | |
set -o errexit | |
PNGS=`find . -iname "*.png"` | |
JPGS=`find . -iname "*.jpg"` | |
TMP1="_TMP1.PNG" | |
TMP2="_TMP2.PNG" | |
echo "Optimizing PNG" | |
for PNG in ${PNGS} |
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 AssetGraph = require('assetgraph'); | |
async function everythingIsRelative(graphInstance) { | |
const relations = graphInstance.findRelations({hrefType: {$not: 'inline'}}); | |
for (const relation of relations) { | |
relation.hrefType = 'relative'; | |
} | |
} |
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
/** | |
* A graph model of a website, consisting of [Assets]{@link Asset} (edges) and [Relations]{@link Relation}. | |
* | |
* | |
* @extends EventEmitter | |
*/ | |
declare class AssetGraph extends EventEmitter { | |
constructor(options: { | |
root?: string; | |
canonicalRoot?: string; |
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
$ hyperlink https://glasvaeg.dk/ -r | tap-spot | |
Guessing --root from input files: https://glasvaeg.dk/ | |
×.×............................×.............××........................................×...........×......×.....................×....................................×.....×.×.×..×.×.×..×.......××××××××.. | |
✖ FAIL Failed loading inline Css in https://glasvaeg.dk/ | |
| operator: error | |
| actual: inline Css in https://glasvaeg.dk/: Parse error in inline Css in https://glasvaeg.dk/(line 1, column 57): | |
https://glasvaeg.dk/:1:57: Unclosed bracket | |
✖ FAIL Failed loading https://glasvaeg.dk/wp-content/themes/glasvaeg/css/responsive.css |
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
munter at Peters-MacBook-Air-4 in ~/git/mntr.dk on master | |
$ npm run build && tree dist | |
> mntr.dk@1.0.0 prebuild /Users/munter/git/mntr.dk | |
> rm -rf build dist | |
> mntr.dk@1.0.0 build /Users/munter/git/mntr.dk | |
> bundle exec jekyll build && subfont build/index.html --inline-css -i |
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
var request = require('request'); | |
console.log('Checking availability of https://jspm.io'); | |
request({ | |
method: 'head', | |
url: 'https://jspm.io', | |
strictSSL: true, | |
gzip: true, | |
headers: { |
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
TAP version 13 | |
# Crawling internal assets | |
ok 1 loading build/index.html | |
ok 2 loading build/assets/favicon.ico | |
ok 3 loading build/1f737bdd5ea6caa2c40e.css | |
ok 4 loading build/6bc5d8cf78d442a984e70195db059b69.svg | |
ok 5 loading build/153b55d74abe6a90d881645d7691ef7a.js | |
ok 6 loading build/guides/get-started/index.html | |
ok 7 loading build/contribute/index.html | |
ok 8 loading build/organization/index.html |
NewerOlder