Skip to content

Instantly share code, notes, and snippets.

View kgroat's full-sized avatar
💾
Out of memory error

Kevin Groat kgroat

💾
Out of memory error
View GitHub Profile
@kgroat
kgroat / getting-started.md
Last active June 16, 2017 11:25
Getting set up for the TechTalk DC React talk

Getting set up

Installation

The first steps to getting started are the following:

  1. Download and install NodeJS
  2. If you are using Windows, restart your computer
  3. Open a command line and issue the following command: npm install -g create-react-app (NOTE: if you're using MacOS or *NIX, you may need to prepend sudo to this command)

Initializing your environment

@kgroat
kgroat / package.json
Created January 5, 2017 14:17
An example of how to use npm as a build tool along with TypeScript
{
"name": "playground",
"version": "1.0.0",
"main": "server/app.js",
"private": true,
"scripts": {
"clean": "npm run clean:client && npm run clean:server",
"clean:client": "rm -rf public/*.* && rm -rf public/**/*.* && rm -rf src/ts/*.js && rm -rf src/ts/**/*.js",
"clean:server": "rm -rf server/*.{js,d.ts} && rm -rf server/**/*.{js,d.ts}",
"compile": "npm run compile:client && npm run compile:sass && npm run compile:server && npm run compile:static",
// How to use:
// Go to http://trimps.github.io/
// Open up developer console on your browser.
// In Google Chrome, this is done by pressing F12 if you're on PC or Cmd+Alt+I if you're on a Mac
// Paste this code into the Console tab of the dev tools and hit enter
// In the console, write window.getNextHeirloom(true) if your next heirloom will be from Bones,
// or window.getNextHeirloom(false) if the heirloom will not be from Bones
// Hit enter
(function(){