Permalink
Browse files

Adding license/readme. Initial Release 1.0

  • Loading branch information...
1 parent 1bc722b commit 9129d5408f020da595a7859f7db076cd3df7b98f @aikar committed Jun 22, 2011
Showing with 92 additions and 0 deletions.
  1. +32 −0 LICENSE
  2. +58 −0 README.markdown
  3. +2 −0 traceur.js
View
32 LICENSE
@@ -0,0 +1,32 @@
+==== Traceur License ====
+The MIT License
+
+ Copyright (c) 2011 Daniel Ennis <aikar@aikar.co>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+====
+
+This license applies to all parts of Wormhole that are not externally
+maintained libraries.
+
+External libraries used by Wormhole:
+
+ - node-msgpack - written by Peter Griess under the BSD License, which
+ makes use of the MessagePack library released under the Apache 2 License.
View
@@ -0,0 +1,58 @@
+# Traceur
+
+## About
+Traceur provides support for Googles Traceur project which adds many enhanced
+features to the JavaScript language. For full details on what all Traceur does,
+visit <http://code.google.com/p/traceur-compiler/wiki/LanguageFeatures>
+
+
+## Install
+Traceur is ready to be installed from NPM, but may also be manually added
+to your project with git submodules or a clone. First CD to your project root.
+Ensure a directory named `node_modules` exists.
+
+ - Install with NPM:
+ - `npm install traceur`
+
+ - Install with GIT:
+ - As a submodule:
+ - `git submodule add git://github.com/aikar/traceur node_modules/traceur`
+ - `git submodule update --init --recursive`
+ - As a plain clone:
+ - `git clone git://github.com/aikar/traceur node_modules/traceur`
+
+## Usage
+To use Traceur, simply require it at the start of your node.js process.
+You do not need to assign it to a variable or call any special function.
+Simply require('traceur') and then all require() statements after it may use
+Traceur syntax.
+
+ require('traceur');
+
+ // ./classes/MyClass.js has class MyClass { }
+ MyClass = require('./classes/MyClass.js');
+
+ var instance = new MyClass;
+
+## License
+> The MIT License
+>
+> Copyright (c) 2011 Daniel Ennis <aikar@aikar.co>
+>
+> Permission is hereby granted, free of charge, to any person obtaining a copy
+> of this software and associated documentation files (the "Software"), to deal
+> in the Software without restriction, including without limitation the rights
+> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+> copies of the Software, and to permit persons to whom the Software is
+> furnished to do so, subject to the following conditions:
+>
+> The above copyright notice and this permission notice shall be included in
+> all copies or substantial portions of the Software.
+>
+> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+> THE SOFTWARE.
View
@@ -21,10 +21,12 @@
//global.traceur = traceurContext.traceur;
var traceur = global.traceur;
+ // this function is silly and makes traceur unusable. so disable it.
traceur.semantics.FreeVariableChecker.checkProgram = function() {}
delete global.importScript;
+
var orig = require.extensions['.js'];
require.extensions['.js'] = function(module, filename) {
var reporter = new traceur.util.ErrorReporter();

0 comments on commit 9129d54

Please sign in to comment.