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 class WatchObjectOptions { | |
/** How deep do we put a proxy */ | |
depth? = 10; | |
nameKey? = Symbol('$keyName'); | |
nameParent? = Symbol('$parent'); | |
// nameAppliedProxy? = Symbol('$appliedProxy'); |
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 webpack from 'webpack' | |
import config from './webpack' | |
import swig from 'swig' | |
import fs from 'fs' | |
function writeTemplate (name) { | |
let sourceTemplate = config.templatePath + '/prod.tmpl' | |
let targetTemplate = config.buildTemplatePath + '/index.tmpl' | |
let content = swig.renderFile(sourceTemplate, {name}) | |
fs.writeFile(targetTemplate, content, err => { |
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 Index = React.createClass({ | |
getInitialState: function () { | |
return { | |
lastPress: 0 | |
} | |
}, | |
onPress: function () { | |
var delta = new Date().getTime() - this.state.lastPress; |