-
-
Save yappo/670764 to your computer and use it in GitHub Desktop.
This file contains 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 JSTAPd::Suite; | |
sub tests { 11 } | |
sub include { | |
( | |
# /Users/monjudoh/Sites/callendar-demo/js/config-require.js | |
'/js/config-require.js', | |
'/js/allplugins-require.js', | |
); | |
} | |
sub include_ex { | |
( | |
'http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.js', | |
); | |
} |
This file contains 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
# JSTAPd config | |
my $config = { | |
jstapd_prefix => '____jstapd', | |
apiurl => qr{^/(?!____jstapd(?:__api)/|js/)}, | |
}; | |
$config->{urlmap} = [ | |
+{ | |
qr!^/js/! => '/Users/monjudoh/Sites/callendar-demo/js/', | |
}, | |
]; | |
# browser auto open | |
# for run_once mode (prove -vl foo.t or prove -vlr jstap/) | |
# this example for Mac OS X | |
# $config->{auto_open_command} = 'open -g -a Safari %s'; | |
# or $ENV{JSTAP_AUTO_OPEN_COMMAND} = 'open -g -a Safari %s'; | |
$config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment