forked from SpredfastLegacy/JMVC-Inject
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="../funcunit/qunit/qunit.css" /> | ||
<title>inject FuncUnit Test</title> | ||
<script type='text/javascript' src='../steal/steal.js?inject/test/funcunit'></script> | ||
</head> | ||
<body> | ||
|
||
<h1 id="qunit-header">inject Test Suite</h1> | ||
<h2 id="qunit-banner"></h2> | ||
<div id="qunit-testrunner-toolbar"></div> | ||
<h2 id="qunit-userAgent"></h2> | ||
<ol id="qunit-tests"></ol> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||
"http://www.w3.org/TR/html4/strict.dtd"> | ||
<html lang="en"> | ||
<head> | ||
<title>inject</title> | ||
<style type='text/css'> | ||
body {font-family: verdana} | ||
.error {border: solid 1px red;} | ||
.error_text { color: red; font-size: 10px;} | ||
td {padding: 3px;} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>Welcome to JavaScriptMVC 3.0!</h1> | ||
<ul> | ||
<li>Include plugins and files in <i>inject/inject.js</i>.</li> | ||
<li>Change to production mode by changing <i>development</i> to <i>production</i> in this file.</li> | ||
</ul> | ||
<script type='text/javascript' | ||
src='../steal/steal.js?inject,development'> | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
steal.plugins().then(function($){ | ||
|
||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="../funcunit/qunit/qunit.css" /> | ||
<title>inject QUnit Test</title> | ||
<script type='text/javascript'> | ||
steal = {ignoreControllers: true} | ||
</script> | ||
<script type='text/javascript' src='../steal/steal.js?inject/test/qunit'></script> | ||
</head> | ||
<body> | ||
|
||
<h1 id="qunit-header">inject Test Suite</h1> | ||
<h2 id="qunit-banner"></h2> | ||
<div id="qunit-testrunner-toolbar"></div> | ||
<h2 id="qunit-userAgent"></h2> | ||
<div id="test-content"></div> | ||
<ol id="qunit-tests"></ol> | ||
<div id="qunit-test-area"></div> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||
"http://www.w3.org/TR/html4/strict.dtd"> | ||
<html lang="en"> | ||
<head> | ||
<title>inject Build Page</title> | ||
</head> | ||
<body> | ||
<h1>inject Build Page</h1> | ||
<p>This is a dummy page that loads your app so steal can | ||
get all the files. | ||
</p> | ||
<p>If you built your app | ||
to depend on HTML in the page before DOMContent loaded or | ||
onload, you can add the HTML here, or you can change the | ||
build.js script to point to a better html file. | ||
</p> | ||
<script type='text/javascript' | ||
src='../../steal/steal.js?inject'> | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//steal/js inject/scripts/compress.js | ||
|
||
load("steal/rhino/steal.js"); | ||
steal.plugins('steal/build','steal/build/scripts','steal/build/styles',function(){ | ||
steal.build('inject/scripts/build.html',{to: 'inject'}); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//steal/js inject/scripts/compress.js | ||
|
||
load("steal/rhino/steal.js"); | ||
steal.plugins('steal/clean',function(){ | ||
steal.clean('inject/inject.html',{ | ||
indent_size: 1, | ||
indent_char: '\t', | ||
jslint : false, | ||
ignore: /jquery\/jquery.js/, | ||
predefined: { | ||
steal: true, | ||
jQuery: true, | ||
$ : true, | ||
window : true | ||
} | ||
}); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//js inject/scripts/doc.js | ||
|
||
load('steal/rhino/steal.js'); | ||
steal.plugins("documentjs").then(function(){ | ||
DocumentJS('inject/inject.html'); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
steal | ||
.plugins("funcunit") | ||
.then("inject_test"); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module("inject test", { | ||
setup: function(){ | ||
S.open("//inject/inject.html"); | ||
} | ||
}); | ||
|
||
test("Copy Test", function(){ | ||
equals(S("h1").text(), "Welcome to JavaScriptMVC 3.0!","welcome text"); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module("inject"); | ||
|
||
test("inject testing works", function(){ | ||
ok(true,"an assert is run"); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
steal | ||
.plugins("funcunit/qunit", "inject") | ||
.then("inject_test"); |