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
Show hidden characters
{ | |
"presets": ["env"] | |
} |
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 { assert } from 'chai'; | |
import { MyModel } from 'model'; | |
describe('MyModel', function() { | |
let model = null | |
afterEach(function() { | |
model = null; | |
}); |
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 { assert } from 'chai'; | |
import { MyModel } from 'model'; | |
describe('MyModel', function() { | |
let model = null | |
afterEach(function() { | |
model = null; | |
}); |
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 { Model } from 'backbone'; | |
export const MyModel = Model.extend({ | |
defaults: { | |
counter: 0 | |
}, | |
/** | |
* Increment our counter and return the new value. | |
* @returns {number} The incremented counter |
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
const webpack = require("webpack"); | |
const path = require("path"); | |
module.exports = { | |
entry: { | |
app: ["./app/index.js"] | |
}, | |
module: { | |
loaders: [ | |
{ |
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
"devDependencies: { | |
"babel-core": "^6.26.0", | |
"babel-loader": "^7.1.2", | |
"babel-polyfill": "^6.26.0", | |
"babel-preset-env": "^1.6.0", | |
"babel-preset-es2015": "^6.24.1", | |
"babel-register": "^6.26.0", | |
"chai": "^4.1.1", | |
"karma": "^1.7.0", | |
"karma-babel-preprocessor": "^6.0.1", |
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
-r babel-polyfill | |
--full-trace | |
--compilers js:babel-register |
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
// Karma configuration | |
// Generated on Sat Aug 26 2017 16:02:46 GMT+0100 (BST) | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: "", | |
// frameworks to use | |
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
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 { Application } from "backbone.marionette"; | |
import { IndexView } from "./view"; | |
import { UpdateModel } from "./model"; | |
const App = Application.extend({ | |
channelName: "global", | |
region: "#app-root", |
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
{% load app_loader_tags %}<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link href="https://cdn.myproductiondomain.com/public/css/style.css" rel="stylesheet"> | |
</head> | |
<body> |
NewerOlder