david0178418 / backbonejs-amd-boilerplate Goto Github PK
View Code? Open in Web Editor NEWJust a simple boiler plate that I use for getting started on my own projects.
Just a simple boiler plate that I use for getting started on my own projects.
This is happening on Chrome 18 (current stable) and 20 (canary).
This does not happen on FireFox 12.
XMLHttpRequest cannot load file:///C:/projects/BackboneJS-AMD-Boilerplate/src/js/templates/main.html. Cross origin requests are only supported for HTTP.
Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101 src/js/text.js:7
Looks like the solution is to setup a web server or run chrome with a flag.
This project is good not only as a starting point but in maintaining current versions of required libraries. So instead of looking for branches at amdjs I simply copy requirejs-ready backbone, underscore and jquery libs from here.
Still, I haet developing using minified versions =) suppose not only me thou... so as your boilerplate is for developers it would be great add unminified versions of the libs here too.
Thanks.
The original fork of backbone being used and core underscore pre 1.3 did not occupy global space by default if using a module loader. Due to user feedback, this was changed to require those loading as a module to call "noConflict" by default.
This was done, but these libraries require 'jquery' (which is what jQuery calls itself by default) and keep it in the global space. Need to structure things in more efficient way to load these and make as easy as possible to use.
hi guyz
i've started working on backbonejs and requirejs, i'm looking forward for a good boilerplate that uses both requirejs and backbonejs for a good app layout.
I'm new to this so i don't know which boiler plate is good, i've seen a couple of them on github. please recommend me a good one.
thnx
Hello David,
I tried to add more specs to the spec-runner.js file in the Array at this position:
//list of specs to run
My spec runner looks like this:
(function() {
"use strict";
var specsPath = '../../tests/js/specs/';
define([
specsPath + 'main-view-spec',
specsPath + 'binary.switch.device.view.spec'
],
function(specStub) {
return {
...
I can see in the console that the new file "binary.switch.device.view.spec" is actually loaded, but none of the tests is being executed. If I put the new spec file to the first position of the array, the contained specs are successfully executed. So how is it possible to test more than one single spec file?
Thanks Marc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.