/**
* renderIntoDocument for html element.
* Replaces testUtils.renderIntoDocument.
*
* testUtils.renderIntoDocument no longer supports React html components as it wraps
* everything in a div:
* https://github.com/facebook/react/issues/5128
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
/*** | |
* Copyright (c) 2016 Alex Grant (@localnerve), LocalNerve LLC | |
* Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms. | |
*/ | |
import gulp from 'gulp'; | |
import gulpSvgmin from 'gulp-svgmin'; | |
import gulpSass from 'gulp-sass'; | |
import gulpPostcss from 'gulp-postcss'; | |
import gulpIf from 'gulp-if'; | |
import gulpCssmin from 'gulp-cssmin'; |
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
<!-- | |
Copyright 2016 Google Inc. All rights reserved. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
<html> | |
<body> | |
<h1>Hello World</h1> | |
<p>This is a test of an html file as a gist</p> | |
</body> | |
</html> |
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
(function () { | |
var request = window.indexedDB.open("service-worker", 1); | |
request.onerror = function (event) { | |
console.error('failed to open service-worker database', request.errorCode); | |
}; | |
request.onsuccess = function (event) { | |
var db = event.target.result; | |
var transaction = db.transaction(['state'], 'readwrite'); | |
- react: 624.7 kB (58.7%)
- lodash: 74.46 kB (7.00%)
- fluxible: 52.71 kB (4.95%)
- dispatchr: 24.11 kB (45.7%)
- eventemitter3: 7 kB (29.0%)
- setimmediate: 6.29 kB (11.9%)
- is-promise: 165 B (0.306%)
- dispatchr: 24.11 kB (45.7%)
- fluxible-router: 52.11 kB (4.90%)
- routr: 18.22 kB (35.0%)
- path-to-regexp: 9.25 kB (50.7%)
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
git remote add <upstream>/<repo> ssh://[email protected]/<upstream>/<repo>.git | |
git fetch <upstream>/<repo> | |
git checkout master | |
git merge remotes/<upstream>/<repo>/master |
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
/* | |
While debugging using jsdom with react tests, I reminded myself of "when" module code executes. | |
In doing so, I also reminded myself how to monkey patch loaded modules. | |
Happy remembering! | |
*/ | |
beforeEach(function() { | |
// setup jsdom | |
testDom(); | |
// tell react DOM is usable |
-
Get Homebrew package manager. These instructions are reasonable to get homebrew setup.
-
Github for mac (if you plan on using GH, BB, or other Git service without having to cmdline everything).
-
Shell and Command Line Stuff
- Update bash and zsh, if you plan on using zsh. Zsh info: oh-my-zsh, zsh points
- iTerm2 (optional)
- Understand about login shells and what .bash_profile and .bashrc are for.
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
agrant@bitbuckler:~/var/www/content/react-test$ npm run build | |
> [email protected] build /home/agrant/var/www/content/react-test | |
> webpack --config webpack-production.config.js --progress --profile --colors --display-error-details | |
61878ms build modules | |
2ms optimize | |
2ms hashingg | |
13ms create chunk assets | |
1ms additional chunk assets |
NewerOlder