Skip to content

Commit

Permalink
ensure polyfills are loaded first
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Rubin <jrubin@zvelo.com>
  • Loading branch information
Joshua Rubin committed Jun 17, 2013
1 parent 0184561 commit beb58c4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
8 changes: 1 addition & 7 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,10 @@ module.exports = (grunt) ->
"karma:amd:run"
]

grunt.registerTask "runExample", "Start the example web server", ->
grunt.registerTask "example", "Start the example web server", ->
done = @async() ## by never calling done, the server is kept alive
require("./example/server").listen()

grunt.registerTask "example", [
"build:main"
"build:example"
"runExample"
]

grunt.registerMultiTask "testFiles", "Concat and build all test files", ->
baseDir = "test/src/base"
config = grunt.config "coffee"
Expand Down
15 changes: 12 additions & 3 deletions example/public/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions example/src/main.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
requirejs.config
require.config
baseUrl: "js"
paths:
jquery: "//ajax.googleapis.com/ajax/libs/jquery/2.0.1/jquery.min"

require [ "poly/function", "jquery", "example" ]
packages: [
name: "poly"
location: "poly"
main: "poly"
]
deps: [ "poly/function", "jquery" ]
callback: -> require [ "example" ]

0 comments on commit beb58c4

Please sign in to comment.