This file contains hidden or 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 = function (grunt) { | |
grunt.loadNpmTasks('intern-geezer'); | |
var req = (function () { | |
this.dojoConfig = { | |
async: true, | |
baseUrl: __dirname, | |
packages: [ | |
{ name: 'intern', location: 'node_modules/intern-geezer' }, | |
{ name: 'when', location: 'node_modules/when', main: 'when' }, |
This file contains hidden or 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
define([ | |
'./_base', | |
'./AdapterRegistry', | |
'./colors', | |
'./io-query', | |
'./promise', | |
'./request', | |
'./store', | |
'./string', | |
'./regexp', |
This file contains hidden or 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
{ | |
"requireCurlyBraces": [ | |
"if", "else", "for", "while", "do", "try", | |
"catch" | |
], | |
"requireSpaceAfterKeywords": [ | |
"if", "else", "for", "while", "do", "switch", | |
"return", "try", "catch" | |
], | |
"requireSpaceBeforeBlockStatements": true, |
This file contains hidden or 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
define([ | |
'intern!object', | |
'intern/chai!expect', | |
'sinon', | |
'when', | |
'intern/chai!', | |
'sinon-chai' | |
], function (registerSuite, expect, sinon, promise, chai, sinonChai) { | |
// add sinon assertions to chai | |
chai.use(sinonChai); |
This file contains hidden or 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
"use strict" | |
module.exports = (grunt) -> | |
require("matchdep").filterAll("grunt-*").forEach grunt.loadNpmTasks | |
grunt.initConfig | |
bower: | |
install: |
This file contains hidden or 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
// my/Application.js | |
define([ | |
'dojo/store/JsonRest', | |
'./Widget', | |
'dojo/domReady!' | |
], function (JsonRest, Widget) { | |
return { | |
initialize: function () { | |
var store = new JsonRest({ target: '/target/' }), | |
ui = new Widget({ |
This file contains hidden or 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
define([ | |
'dojo/declare', | |
'dojo/promise/when' | |
], function (declare, when) { | |
var slice = [].slice, | |
nop = function () {}; | |
function createNotifier(object) { | |
var listenerMap = {}, | |
objectListeners = []; |
This file contains hidden or 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 dojoConfig = { | |
asyc: true, | |
baseUrl: 'path/to/src', | |
tlmSiblingOfDojo: false, | |
packages: [ | |
'dojo', | |
'dijit', | |
'dojox', | |
{ name: 'doh', location: 'util/doh' } | |
] |
This file contains hidden or 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
# Set the default behavior, in case users don't have core.autocrlf set | |
* text=auto | |
# Files that should always be normalized and converted to native line | |
# endings on checkout. | |
*.js text | |
*.json text | |
*.htm text | |
*.html text | |
*.svg text |