-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit b37fed0
Showing
7 changed files
with
3,283 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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 @@ | ||
[submodule "src"] | ||
path = src | ||
url = git://github.com/SteveSanderson/knockout.git |
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 @@ | ||
#!/bin/sh | ||
|
||
OutFile='npm/lib/knockout.js' | ||
rm -rf $OutFile.temp | ||
|
||
# Combine the source files | ||
SourceFiles=`grep js < src/build/source-references.js | # Find JS references | ||
sed "s/[ \',]//g" | # Strip off JSON fluff (whitespace, commas, quotes) | ||
sed -e 's/.*/src\/&/' | # Fix the paths by prefixing with ../ | ||
tr '\n' ' '` # Combine into single line | ||
cat src/build/amd-pre.js > $OutFile.temp | ||
cat $SourceFiles >> $OutFile.temp | ||
cat src/build/amd-post.js >> $OutFile.temp | ||
|
||
# Finalise each file by prefixing with version header and surrounding in function closure | ||
cp src/build/version-header.js $OutFile | ||
cat node-npm-header.js >> $OutFile | ||
echo "(function(window,document,navigator,undefined){" >> $OutFile | ||
cat $OutFile.temp >> $OutFile | ||
echo "})(window,document,navigator);" >> $OutFile | ||
rm -rf $OutFile.temp |
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,4 @@ | ||
var jsdom = require('jsdom').jsdom, | ||
document = jsdom('<html><head></head><body></body></html>'), | ||
window = document.createWindow(), | ||
navigator = window.navigator; |
Oops, something went wrong.