File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 } , { async : true } ) ;
7272
7373 desc ( "Test client code" ) ;
74- task ( "testClient" , function ( ) {
74+ task ( "testClient" , [ "build" ] , function ( ) {
7575 karma . runTests ( SUPPORTED_BROWSERS , complete , fail ) ;
7676 } , { async : true } ) ;
7777
204204 function clientGlobals ( ) {
205205 return {
206206 wwp : true ,
207+
208+ // Browserify
207209 module : false ,
210+ require : false ,
208211
212+ // Mocha / expect.js
209213 describe : false ,
210214 it : false ,
211215 expect : false ,
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ window.wwp = window.wwp || {};
66( function ( ) {
77 "use strict" ;
88
9+ var SvgCanvas = require ( "./svg_canvas.js" ) ;
10+
911 var svgCanvas = null ;
1012 var start = null ;
1113 var drawingArea ;
Original file line number Diff line number Diff line change 11// Copyright (c) 2013 Titanium I.T. LLC. All rights reserved. See LICENSE.TXT for details.
22/*global Raphael */
33
4- window . wwp = window . wwp || { } ;
5-
64( function ( ) {
75 "use strict" ;
86
@@ -86,6 +84,6 @@ window.wwp = window.wwp || {};
8684 ] ;
8785 }
8886
89- // module.exports = SvgCanvas;
87+ module . exports = SvgCanvas ;
9088
9189} ( ) ) ;
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ To Do on current task:
2727- What about deployment? (Punt?)
2828- Duplication between weewikipaint.js CONTENT_DIR and our Jakefile
2929- Do we want to copy src/server/ files to build directory?
30+ - Fix Karma error messages using source maps
3031
3132
3233Future ideas:
You can’t perform that action at this time.
0 commit comments