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
module.exports = (string) => { | |
return string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase(); | |
}; |
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 gulp = require("gulp"); | |
var gutil = require("gulp-util"); | |
var rename = require('gulp-rename'); | |
var webpack = require("webpack"); | |
var nodemon = require('nodemon'); | |
var typescript = require('gulp-typescript'); | |
// These tasks setup nodemon. | |
gulp.task("start", function(cb) { | |
var options = { |
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
/* | |
Handlebars Template Engine for Knockout JavaScript library | |
*//*! | |
Copyright (c) 2011 Mark J. Titorenko | |
License: MIT (http://www.opensource.org/licenses/mit-license.php) | |
*/ | |
ko.handlebarsTemplateEngine = function () { | |
// adapted from MooTools.Element | |
// | |
// This is necessary to allow us to easily deal with table |