- TypeScript 1.5 http://www.typescriptlang.org/
- WebPack http://webpack.github.io/
- awesome-typescript-loader https://github.com/s-panferov/awesome-typescript-loader
- DefinitelyTyped http://definitelytyped.org/
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
export interface ModelState<Model> { | |
model: opty.Option<Model>; | |
isProcessing: boolean; | |
isPending: boolean; | |
} | |
export interface ListModel<Ref, Model, Meta> { | |
models: immutable.Map<Ref, rx.BehaviorSubject<ModelState>>; | |
meta: opty.Option<Meta>; | |
} |
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
state = rx.BehaviorSubject< | |
model_state.ModelState< | |
immutable.Map< | |
Ref, | |
rx.BehaviorSubject<model_state.ModelState<Model, void>> | |
>, | |
Meta | |
> | |
>; |
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 x = 5; | |
var y = 10; | |
with({x: 20}) { | |
var x = 30; | |
var y = 30; | |
console.log(x); | |
console.log(y); | |
}; |
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 webpack = require('webpack'); | |
var path = require("path"); | |
module.exports = { | |
entry: { | |
app: './src/app/app.ts', | |
vendor: [ | |
"jquery", | |
"jquery-mockjax", |
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
modules.define('madison', | |
['log', 'config', 'utils', 'router', 'bank__auth', 'bank__customers', 'page'], | |
function(provide, log, config, utils, router, bankAuth, bankCustomers, page) { | |
var vow = require('vow'), | |
express = require('express'), | |
path = require('path'), | |
cookies = require('cookie-parser'), | |
session = require('express-session'), | |
body = require('body-parser'); |
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
{ | |
block : 'form-field', | |
name : 'documentUrgency', | |
mods : { theme : 'alfa', bkg : 'color' }, | |
content : [ | |
{ tag : 'br' }, | |
{ tag : 'br' }, | |
{ tag : 'br' }, | |
{ | |
block : 'checkbox', |
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 invariant from '../lib/invariant'; | |
import * as models from './index'; | |
import { Record, Map, Set, List } from 'immutable'; | |
import { Option, Some, None } from 'opty'; | |
export enum ChatType { | |
Dialog = <any>'dialog', | |
Room = <any>'room' | |
} |
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
{ | |
"version": "1.5.0-beta", | |
"compilerOptions": { | |
"target": "es5", | |
"module": "commonjs", | |
"jsx": "react", | |
"declaration": false, | |
"noImplicitAny": false, | |
"removeComments": true, | |
"noLib": false, |
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 webpack = require('webpack'); | |
var path = require("path"); | |
var fs = require("fs"); | |
var nodeModules = {}; | |
fs.readdirSync('node_modules') | |
.filter(function (x) { | |
return ['.bin'].indexOf(x) === -1; | |
}) | |
.forEach(function (mod) { |