Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial Commit

  • Loading branch information...
commit b37fed010ad3f89489b507cb9da427efef9afc03 0 parents
Matthew Smith authored
BIN  .build-npm-linux.swp
Binary file not shown
3  .gitmodules
@@ -0,0 +1,3 @@
+[submodule "src"]
+ path = src
+ url = git://github.com/SteveSanderson/knockout.git
21 build-npm-linux
@@ -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
4 node-npm-header.js
@@ -0,0 +1,4 @@
+var jsdom = require('jsdom').jsdom,
+ document = jsdom('<html><head></head><body></body></html>'),
+ window = document.createWindow(),
+ navigator = window.navigator;
3,239 npm/lib/knockout.js
3,239 additions, 0 deletions not shown
15 npm/package.json
@@ -0,0 +1,15 @@
+{
+ "name" : "knockout"
+, "version" : "2.0.0"
+, "description" : "NodeJs Testable version of client script which Simplifies Dynamic JavaScript UIs by applying the Model-View-ViewModel (MVVM) Pattern"
+, "repository" : { "type" : "git"
+ , "url" : "https://github.com/mtscout6/knockout"
+ }
+, "keywords" : ["testing", "mvvm"]
+, "author" : "Steven Sanderson"
+, "contributors" : [ "Matthew Smith <mtscout6@gmail.com" ]
+, "maintainers" : "Matthew Smith <mtscout6@gmail.com>"
+, "licenses" : ["MIT"]
+, "dependencies" : { "jsdom" : ">=0.2.8" }
+, "main" : "bin/knockout"
+}
1  src
@@ -0,0 +1 @@
+Subproject commit f5c070dccc0b4d0ecc92a5854a5ff43c0c6624be
Please sign in to comment.
Something went wrong with that request. Please try again.