Skip to content

Instantly share code, notes, and snippets.

@RossJHagan
RossJHagan / AURELIA-CLI-FETCH-CLIENT.md
Last active July 2, 2016 10:59
Aurelia CLI project (0.13.6 ish) - Getting fetch client working

Steps

  1. npm i -S whatwg-fetch
  2. At top of your main file (e.g. main.ts) add import 'whatwg-fetch';
  3. If you're using typescript: typings install dt~whatwg-fetch --global (you may need a different command depending on your versions)
  4. Modify your aurelia_project/aurelia.json and put the following into the path build.bundles[1].dependencies (you'll see where all the other deps are)
          "aurelia-fetch-client",
 {
@RossJHagan
RossJHagan / GUIDE.md
Last active June 15, 2017 16:51
Aurelia CLI based project (0.13.6) - Add e2e tests [Typescript based]

Setting up Aurelia CLI based project with e2e tests

Disclaimer: This is a basic implementation, and much of the configuration files have been lifted from the aurelia skeleton.

##Install dependencies

npm i -D del gulp-protractor

Establish configurations

@RossJHagan
RossJHagan / README.md
Created September 13, 2015 17:34
Webpack Baseline - ES6, React, Lodash

Put index.html into public/ Put app.es6 into src/ Put greeting.es6 into src/greeting

Run:

npm install npm start - runs the webpack server.

package main
import (
"database/sql"
"errors"
"fmt"
_ "github.com/bmizerany/pq"
"os"
"regexp"
"strings"