jetfuel-blackbox
Version:
Currently, BlackBox is a boilerplate client-side application framework, built on top of the JetFuel build system and Grunt, Backbone, RequireJS, JetRunner unit test server (Mocha BDD/TDD test framework + PhantomJS + SauceLabs cloud integration), Dust (and Plate Django port) for templating (both client and server-side), Sass, Express dynamic web server, etc. BlackBox is the template used for JetFuel's basic `init` command.
38 lines (36 loc) • 976 B
text/jade
!!! 5
html(lang="en")
head
title= title
each style in styles
link(href="#{style}", rel="stylesheet")
script
requireConfig = {
baseUrl: '/build/2.1.0/js/prod/blackbox/web/',
css: {
baseUrl: '/build/2.1.0/css/blackbox/web/'
},
resource: {
baseUrl: '/src/resources/blackbox/web/'
},
vendor: {
baseUrl: '/vendor/'
}
};
body
div#mocha
each script in scripts
script(src="#{script}")
script
assert = chai.assert;
expect = chai.expect;
should = !this.mochaPhantomJS && chai.should();
mocha.setup({
ignoreLeaks: true,
ui: '#{ui}'
});
require.config({ baseUrl: requireConfig.baseUrl }).call(require, [requireConfig.baseUrl + 'main.bundled.js'], function() {
require(['#{test}', '#{lib}'], function() {
reporter = (this.mochaPhantomJS || mocha).run();
});
});