├── .gitignore ├── .nuget ├── NuGet.Config ├── NuGet.exe └── NuGet.targets ├── CollidR.Mvc ├── CollidR.Mvc.csproj ├── CollidRHelpers.cs ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── CollidR.Mvc5.Sample ├── App_Start │ ├── BundleConfig.cs │ ├── FilterConfig.cs │ ├── RouteConfig.cs │ └── Startup.Auth.cs ├── CollidR.Mvc5.Sample.csproj ├── Content │ ├── Site.css │ ├── bootstrap.css │ └── bootstrap.min.css ├── Controllers │ ├── AccountController.cs │ └── PersonController.cs ├── Global.asax ├── Global.asax.cs ├── Models │ ├── AccountViewModels.cs │ ├── CollidRSampleContext.cs │ ├── CollidRSampleContextInitializer.cs │ ├── IdentityModels.cs │ └── Person.cs ├── Project_Readme.html ├── Properties │ └── AssemblyInfo.cs ├── Scripts │ ├── CollidR.js │ ├── _references.js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── jquery-1.10.2.intellisense.js │ ├── jquery-1.10.2.js │ ├── jquery-1.10.2.min.js │ ├── jquery-1.10.2.min.map │ ├── jquery.signalR-2.0.0.js │ ├── jquery.signalR-2.0.0.min.js │ ├── jquery.validate-vsdoc.js │ ├── jquery.validate.js │ ├── jquery.validate.min.js │ ├── jquery.validate.unobtrusive.js │ ├── jquery.validate.unobtrusive.min.js │ ├── modernizr-2.6.2.js │ ├── respond.js │ └── respond.min.js ├── Startup.cs ├── Views │ ├── Account │ │ ├── ExternalLoginConfirmation.cshtml │ │ ├── ExternalLoginFailure.cshtml │ │ ├── Login.cshtml │ │ ├── Manage.cshtml │ │ ├── Register.cshtml │ │ ├── _ChangePasswordPartial.cshtml │ │ ├── _ExternalLoginsListPartial.cshtml │ │ ├── _RemoveAccountPartial.cshtml │ │ └── _SetPasswordPartial.cshtml │ ├── Person │ │ ├── Create.cshtml │ │ ├── Delete.cshtml │ │ ├── Details.cshtml │ │ ├── Edit.cshtml │ │ └── Index.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ ├── _Layout.cshtml │ │ └── _LoginPartial.cshtml │ ├── Web.config │ └── _ViewStart.cshtml ├── Web.Debug.config ├── Web.Release.config ├── Web.config ├── favicon.ico ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff └── packages.config ├── CollidR.Tests ├── App.config ├── CollidR.Tests.csproj ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── CollidR.sln ├── CollidR ├── CollidR.csproj ├── EntityEditorHub.cs ├── ModelConnectionMapping.cs ├── Properties │ └── AssemblyInfo.cs ├── Scripts │ ├── CollidR.js │ ├── CollidR │ │ ├── CollidR.Core.js │ │ ├── CollidR.Formatters.Bootstrap.js │ │ └── CollidR.stringDictionary.js │ ├── SampleHubjs.js │ ├── jquery-1.6.4-vsdoc.js │ ├── jquery-1.6.4.js │ ├── jquery-1.6.4.min.js │ ├── jquery-2.0.3.js │ ├── jquery-2.0.3.min.js │ ├── jquery.signalR-2.0.0.js │ └── jquery.signalR-2.0.0.min.js └── packages.config ├── LICENSE ├── Nuget ├── CollidR.1.0.0-alpha.nupkg ├── CollidR.1.0.7.nupkg └── NuGet Sources │ ├── Scripts │ └── CollidR.js │ ├── lib │ ├── CollidR.Mvc.dll │ └── CollidR.dll │ └── tools │ ├── collidR.psm1 │ ├── init.ps1 │ └── install.ps1 ├── README.md ├── runGrunt.bat └── tools └── node ├── grunt-cli.js ├── gruntfile.js ├── node.exe └── node_modules ├── grunt-contrib-concat ├── .gitattributes ├── .jshintrc ├── .npmignore ├── .travis.yml ├── AUTHORS ├── CHANGELOG ├── CONTRIBUTING.md ├── Gruntfile.js ├── LICENSE-MIT ├── README.md ├── docs │ ├── concat-examples.md │ ├── concat-options.md │ └── concat-overview.md ├── package.json ├── tasks │ ├── concat.js │ └── lib │ │ └── comment.js └── test │ ├── concat_test.js │ ├── expected │ ├── custom_options │ ├── default_options │ ├── handling_invalid_files │ └── process_function │ └── fixtures │ ├── banner.js │ ├── banner2.js │ ├── banner3.js │ ├── file1 │ └── file2 ├── grunt-contrib-uglify ├── .jshintrc ├── .npmignore ├── .travis.yml ├── AUTHORS ├── CHANGELOG ├── CONTRIBUTING.md ├── Gruntfile.js ├── LICENSE-MIT ├── README.md ├── docs │ ├── uglify-examples.md │ ├── uglify-options.md │ └── uglify-overview.md ├── node_modules │ ├── .bin │ │ ├── uglifyjs │ │ └── uglifyjs.cmd │ ├── grunt-lib-contrib │ │ ├── .gitattributes │ │ ├── .jshintrc │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── AUTHORS │ │ ├── CHANGELOG │ │ ├── Gruntfile.js │ │ ├── LICENSE-MIT │ │ ├── README.md │ │ ├── lib │ │ │ └── contrib.js │ │ ├── node_modules │ │ │ └── zlib-browserify │ │ │ │ ├── .npmignore │ │ │ │ ├── index.js │ │ │ │ ├── package.json │ │ │ │ ├── readme.md │ │ │ │ ├── test │ │ │ │ └── zlib.test.js │ │ │ │ └── zlib.js │ │ ├── package.json │ │ └── test │ │ │ └── lib_test.js │ └── uglify-js │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── lib │ │ ├── ast.js │ │ ├── compress.js │ │ ├── mozilla-ast.js │ │ ├── output.js │ │ ├── parse.js │ │ ├── scope.js │ │ ├── sourcemap.js │ │ ├── transform.js │ │ └── utils.js │ │ ├── node_modules │ │ ├── async │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── component.json │ │ │ ├── lib │ │ │ │ └── async.js │ │ │ └── package.json │ │ ├── optimist │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── example │ │ │ │ ├── bool.js │ │ │ │ ├── boolean_double.js │ │ │ │ ├── boolean_single.js │ │ │ │ ├── default_hash.js │ │ │ │ ├── default_singles.js │ │ │ │ ├── divide.js │ │ │ │ ├── line_count.js │ │ │ │ ├── line_count_options.js │ │ │ │ ├── line_count_wrap.js │ │ │ │ ├── nonopt.js │ │ │ │ ├── reflect.js │ │ │ │ ├── short.js │ │ │ │ ├── string.js │ │ │ │ ├── usage-options.js │ │ │ │ └── xup.js │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── wordwrap │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── README.markdown │ │ │ │ │ ├── example │ │ │ │ │ ├── center.js │ │ │ │ │ └── meat.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ ├── break.js │ │ │ │ │ ├── idleness.txt │ │ │ │ │ └── wrap.js │ │ │ ├── package.json │ │ │ ├── readme.markdown │ │ │ └── test │ │ │ │ ├── _.js │ │ │ │ ├── _ │ │ │ │ ├── argv.js │ │ │ │ └── bin.js │ │ │ │ ├── parse.js │ │ │ │ └── usage.js │ │ ├── source-map │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile.dryice.js │ │ │ ├── README.md │ │ │ ├── build │ │ │ │ ├── assert-shim.js │ │ │ │ ├── mini-require.js │ │ │ │ ├── prefix-source-map.jsm │ │ │ │ ├── prefix-utils.jsm │ │ │ │ ├── suffix-browser.js │ │ │ │ ├── suffix-source-map.jsm │ │ │ │ ├── suffix-utils.jsm │ │ │ │ ├── test-prefix.js │ │ │ │ └── test-suffix.js │ │ │ ├── lib │ │ │ │ ├── source-map.js │ │ │ │ └── source-map │ │ │ │ │ ├── array-set.js │ │ │ │ │ ├── base64-vlq.js │ │ │ │ │ ├── base64.js │ │ │ │ │ ├── binary-search.js │ │ │ │ │ ├── source-map-consumer.js │ │ │ │ │ ├── source-map-generator.js │ │ │ │ │ ├── source-node.js │ │ │ │ │ └── util.js │ │ │ ├── node_modules │ │ │ │ └── amdefine │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── amdefine.js │ │ │ │ │ ├── intercept.js │ │ │ │ │ └── package.json │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── run-tests.js │ │ │ │ └── source-map │ │ │ │ ├── test-api.js │ │ │ │ ├── test-array-set.js │ │ │ │ ├── test-base64-vlq.js │ │ │ │ ├── test-base64.js │ │ │ │ ├── test-binary-search.js │ │ │ │ ├── test-dog-fooding.js │ │ │ │ ├── test-source-map-consumer.js │ │ │ │ ├── test-source-map-generator.js │ │ │ │ ├── test-source-node.js │ │ │ │ └── util.js │ │ └── uglify-to-browserify │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ └── test │ │ │ └── index.js │ │ ├── package.json │ │ ├── test │ │ ├── compress │ │ │ ├── arrays.js │ │ │ ├── blocks.js │ │ │ ├── concat-strings.js │ │ │ ├── conditionals.js │ │ │ ├── dead-code.js │ │ │ ├── debugger.js │ │ │ ├── drop-unused.js │ │ │ ├── issue-105.js │ │ │ ├── issue-12.js │ │ │ ├── issue-126.js │ │ │ ├── issue-143.js │ │ │ ├── issue-22.js │ │ │ ├── issue-267.js │ │ │ ├── issue-269.js │ │ │ ├── issue-44.js │ │ │ ├── issue-59.js │ │ │ ├── labels.js │ │ │ ├── loops.js │ │ │ ├── negate-iife.js │ │ │ ├── properties.js │ │ │ ├── sequences.js │ │ │ ├── switch.js │ │ │ └── typeof.js │ │ └── run-tests.js │ │ └── tools │ │ └── node.js ├── package.json ├── tasks │ ├── lib │ │ └── uglify.js │ └── uglify.js └── test │ ├── fixtures │ ├── expected │ │ ├── comments.js │ │ ├── compress.js │ │ ├── compress_mangle.js │ │ ├── compress_mangle_banner.js │ │ ├── compress_mangle_beautify.js │ │ ├── compress_mangle_except.js │ │ ├── compress_mangle_sourcemap │ │ ├── enclose.js │ │ ├── exportAll.js │ │ ├── multifile.js │ │ ├── multiple_sourcemaps1.js │ │ ├── multiple_sourcemaps1.map │ │ ├── multiple_sourcemaps2.js │ │ ├── multiple_sourcemaps2.map │ │ ├── sourcemap_prefix │ │ ├── sourcemapin │ │ ├── sourcemapin.js │ │ ├── sourcemapurl.js │ │ └── wrap.js │ └── src │ │ ├── comments.js │ │ ├── simple.js │ │ ├── simple2.coffee │ │ ├── simple2.js │ │ └── simple2.map │ └── uglify_test.js └── grunt ├── .npmignore ├── CONTRIBUTING.md ├── LICENSE-MIT ├── README.md ├── internal-tasks ├── bump.js └── subgrunt.js ├── lib ├── grunt.js ├── grunt │ ├── cli.js │ ├── config.js │ ├── event.js │ ├── fail.js │ ├── file.js │ ├── help.js │ ├── log.js │ ├── option.js │ ├── task.js │ ├── template.js │ └── util.js └── util │ └── task.js ├── node_modules ├── .bin │ ├── cake │ ├── cake.cmd │ ├── coffee │ ├── coffee.cmd │ ├── js-yaml │ ├── js-yaml.cmd │ ├── nopt │ ├── nopt.cmd │ ├── which │ └── which.cmd ├── async │ ├── .gitmodules │ ├── .npmignore │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── index.js │ ├── lib │ │ └── async.js │ └── package.json ├── coffee-script │ ├── .npmignore │ ├── CNAME │ ├── LICENSE │ ├── README │ ├── Rakefile │ ├── extras │ │ └── jsl.conf │ ├── lib │ │ └── coffee-script │ │ │ ├── browser.js │ │ │ ├── cake.js │ │ │ ├── coffee-script.js │ │ │ ├── command.js │ │ │ ├── grammar.js │ │ │ ├── helpers.js │ │ │ ├── index.js │ │ │ ├── lexer.js │ │ │ ├── nodes.js │ │ │ ├── optparse.js │ │ │ ├── parser.js │ │ │ ├── repl.js │ │ │ ├── rewriter.js │ │ │ └── scope.js │ └── package.json ├── colors │ ├── MIT-LICENSE.txt │ ├── ReadMe.md │ ├── colors.js │ ├── example.html │ ├── example.js │ ├── package.json │ ├── test.js │ └── themes │ │ ├── winston-dark.js │ │ └── winston-light.js ├── dateformat │ ├── Readme.md │ ├── lib │ │ └── dateformat.js │ ├── package.json │ └── test │ │ ├── test_weekofyear.js │ │ └── test_weekofyear.sh ├── eventemitter2 │ ├── README.md │ ├── index.js │ ├── lib │ │ └── eventemitter2.js │ └── package.json ├── exit │ ├── .jshintrc │ ├── .npmignore │ ├── .travis.yml │ ├── Gruntfile.js │ ├── LICENSE-MIT │ ├── README.md │ ├── lib │ │ └── exit.js │ ├── package.json │ └── test │ │ ├── exit_test.js │ │ └── fixtures │ │ ├── 10-stderr.txt │ │ ├── 10-stdout-stderr.txt │ │ ├── 10-stdout.txt │ │ ├── 100-stderr.txt │ │ ├── 100-stdout-stderr.txt │ │ ├── 100-stdout.txt │ │ ├── 1000-stderr.txt │ │ ├── 1000-stdout-stderr.txt │ │ ├── 1000-stdout.txt │ │ ├── create-files.sh │ │ ├── log-broken.js │ │ └── log.js ├── findup-sync │ ├── .jshintrc │ ├── .npmignore │ ├── Gruntfile.js │ ├── LICENSE-MIT │ ├── README.md │ ├── lib │ │ └── findup-sync.js │ ├── node_modules │ │ └── lodash │ │ │ ├── README.md │ │ │ ├── dist │ │ │ ├── lodash.compat.js │ │ │ ├── lodash.compat.min.js │ │ │ ├── lodash.js │ │ │ ├── lodash.min.js │ │ │ ├── lodash.underscore.js │ │ │ └── lodash.underscore.min.js │ │ │ └── package.json │ ├── package.json │ └── test │ │ ├── findup-sync_test.js │ │ └── fixtures │ │ ├── a.txt │ │ ├── a │ │ ├── b │ │ │ └── bar.txt │ │ └── foo.txt │ │ └── aaa.txt ├── getobject │ ├── .jshintrc │ ├── .npmignore │ ├── .travis.yml │ ├── Gruntfile.js │ ├── LICENSE-MIT │ ├── README.md │ ├── lib │ │ └── getobject.js │ ├── package.json │ └── test │ │ └── namespace_test.js ├── glob │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── examples │ │ ├── g.js │ │ └── usr-local.js │ ├── glob.js │ ├── node_modules │ │ ├── graceful-fs │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── graceful-fs.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── open.js │ │ │ │ └── ulimit.js │ │ └── inherits │ │ │ ├── README.md │ │ │ ├── inherits.js │ │ │ └── package.json │ ├── package.json │ └── test │ │ ├── 00-setup.js │ │ ├── bash-comparison.js │ │ ├── bash-results.json │ │ ├── cwd-test.js │ │ ├── mark.js │ │ ├── nocase-nomagic.js │ │ ├── pause-resume.js │ │ ├── root-nomount.js │ │ ├── root.js │ │ └── zz-cleanup.js ├── hooker │ ├── LICENSE-MIT │ ├── README.md │ ├── child.js │ ├── dist │ │ ├── ba-hooker.js │ │ └── ba-hooker.min.js │ ├── grunt.js │ ├── lib │ │ └── hooker.js │ ├── package.json │ ├── parent.js │ └── test │ │ └── hooker_test.js ├── iconv-lite │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── README.md~ │ ├── encodings │ │ ├── big5.js │ │ ├── gbk.js │ │ ├── singlebyte.js │ │ └── table │ │ │ ├── big5.js │ │ │ └── gbk.js │ ├── generation │ │ ├── generate-big5-table.js │ │ └── generate-singlebyte.js │ ├── index.js │ ├── package.json │ └── test │ │ ├── big5-test.js │ │ ├── big5File.txt │ │ ├── cyrillic-test.js │ │ ├── gbk-test.js │ │ ├── gbkFile.txt │ │ ├── greek-test.js │ │ ├── main-test.js │ │ ├── performance.js │ │ └── turkish-test.js ├── js-yaml │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── examples │ │ ├── custom_types.js │ │ ├── custom_types.yaml │ │ ├── dumper.js │ │ ├── dumper.json │ │ ├── sample_document.js │ │ └── sample_document.yaml │ ├── index.js │ ├── lib │ │ ├── js-yaml.js │ │ └── js-yaml │ │ │ ├── common.js │ │ │ ├── dumper.js │ │ │ ├── exception.js │ │ │ ├── loader.js │ │ │ ├── mark.js │ │ │ ├── require.js │ │ │ ├── schema.js │ │ │ ├── schema │ │ │ ├── default.js │ │ │ ├── minimal.js │ │ │ └── safe.js │ │ │ ├── type.js │ │ │ └── type │ │ │ ├── binary.js │ │ │ ├── bool.js │ │ │ ├── float.js │ │ │ ├── int.js │ │ │ ├── js │ │ │ ├── function.js │ │ │ ├── regexp.js │ │ │ └── undefined.js │ │ │ ├── map.js │ │ │ ├── merge.js │ │ │ ├── null.js │ │ │ ├── omap.js │ │ │ ├── pairs.js │ │ │ ├── seq.js │ │ │ ├── set.js │ │ │ ├── str.js │ │ │ └── timestamp.js │ ├── node_modules │ │ ├── .bin │ │ │ ├── esparse │ │ │ ├── esparse.cmd │ │ │ ├── esvalidate │ │ │ └── esvalidate.cmd │ │ ├── argparse │ │ │ ├── HISTORY.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── examples │ │ │ │ ├── arguments.js │ │ │ │ ├── choice.js │ │ │ │ ├── constants.js │ │ │ │ ├── help.js │ │ │ │ ├── nargs.js │ │ │ │ ├── parents.js │ │ │ │ ├── prefix_chars.js │ │ │ │ ├── sub_commands.js │ │ │ │ ├── sum.js │ │ │ │ └── testformatters.js │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── action.js │ │ │ │ ├── action │ │ │ │ │ ├── append.js │ │ │ │ │ ├── append │ │ │ │ │ │ └── constant.js │ │ │ │ │ ├── count.js │ │ │ │ │ ├── help.js │ │ │ │ │ ├── store.js │ │ │ │ │ ├── store │ │ │ │ │ │ ├── constant.js │ │ │ │ │ │ ├── false.js │ │ │ │ │ │ └── true.js │ │ │ │ │ ├── subparsers.js │ │ │ │ │ └── version.js │ │ │ │ ├── action_container.js │ │ │ │ ├── argparse.js │ │ │ │ ├── argument │ │ │ │ │ ├── error.js │ │ │ │ │ ├── exclusive.js │ │ │ │ │ └── group.js │ │ │ │ ├── argument_parser.js │ │ │ │ ├── const.js │ │ │ │ ├── help │ │ │ │ │ ├── added_formatters.js │ │ │ │ │ └── formatter.js │ │ │ │ └── namespace.js │ │ │ ├── node_modules │ │ │ │ ├── underscore.string │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── Gemfile │ │ │ │ │ ├── Gemfile.lock │ │ │ │ │ ├── README.markdown │ │ │ │ │ ├── Rakefile │ │ │ │ │ ├── component.json │ │ │ │ │ ├── dist │ │ │ │ │ │ └── underscore.string.min.js │ │ │ │ │ ├── lib │ │ │ │ │ │ └── underscore.string.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ ├── run-qunit.js │ │ │ │ │ │ ├── speed.js │ │ │ │ │ │ ├── strings.js │ │ │ │ │ │ ├── strings_standalone.js │ │ │ │ │ │ ├── test.html │ │ │ │ │ │ ├── test_standalone.html │ │ │ │ │ │ ├── test_underscore │ │ │ │ │ │ ├── arrays.js │ │ │ │ │ │ ├── chaining.js │ │ │ │ │ │ ├── collections.js │ │ │ │ │ │ ├── functions.js │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ ├── objects.js │ │ │ │ │ │ ├── speed.js │ │ │ │ │ │ ├── utility.js │ │ │ │ │ │ └── vendor │ │ │ │ │ │ │ ├── jquery.js │ │ │ │ │ │ │ ├── jslitmus.js │ │ │ │ │ │ │ ├── qunit.css │ │ │ │ │ │ │ └── qunit.js │ │ │ │ │ │ └── underscore.js │ │ │ │ └── underscore │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── CNAME │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── index.html │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── underscore-min.js │ │ │ │ │ └── underscore.js │ │ │ └── package.json │ │ └── esprima │ │ │ ├── README.md │ │ │ ├── esprima.js │ │ │ ├── package.json │ │ │ └── test │ │ │ ├── compat.js │ │ │ ├── reflect.js │ │ │ ├── run.js │ │ │ ├── runner.js │ │ │ └── test.js │ └── package.json ├── lodash │ ├── README.md │ ├── lodash.js │ ├── lodash.min.js │ ├── lodash.underscore.js │ ├── lodash.underscore.min.js │ └── package.json ├── minimatch │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── minimatch.js │ ├── node_modules │ │ ├── lru-cache │ │ │ ├── .npmignore │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── lib │ │ │ │ └── lru-cache.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── basic.js │ │ │ │ ├── foreach.js │ │ │ │ └── memory-leak.js │ │ └── sigmund │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bench.js │ │ │ ├── package.json │ │ │ ├── sigmund.js │ │ │ └── test │ │ │ └── basic.js │ ├── package.json │ └── test │ │ ├── basic.js │ │ ├── brace-expand.js │ │ ├── caching.js │ │ ├── defaults.js │ │ └── extglob-ending-with-state-char.js ├── nopt │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── examples │ │ └── my-program.js │ ├── lib │ │ └── nopt.js │ ├── node_modules │ │ └── abbrev │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── lib │ │ │ └── abbrev.js │ │ │ └── package.json │ └── package.json ├── rimraf │ ├── AUTHORS │ ├── LICENSE │ ├── README.md │ ├── node_modules │ │ └── graceful-fs │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── graceful-fs.js │ │ │ ├── package.json │ │ │ └── test │ │ │ └── open.js │ ├── package.json │ ├── rimraf.js │ └── test │ │ ├── run.sh │ │ ├── setup.sh │ │ ├── test-async.js │ │ ├── test-fiber.js │ │ └── test-sync.js ├── underscore.string │ ├── .travis.yml │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.markdown │ ├── Rakefile │ ├── dist │ │ └── underscore.string.min.js │ ├── lib │ │ └── underscore.string.js │ ├── package.json │ └── test │ │ ├── run-qunit.js │ │ ├── speed.js │ │ ├── strings.js │ │ ├── strings_standalone.js │ │ ├── test.html │ │ ├── test_standalone.html │ │ ├── test_underscore │ │ ├── arrays.js │ │ ├── chaining.js │ │ ├── collections.js │ │ ├── functions.js │ │ ├── objects.js │ │ ├── speed.js │ │ ├── temp.js │ │ ├── temp_tests.html │ │ ├── test.html │ │ ├── utility.js │ │ └── vendor │ │ │ ├── jquery.js │ │ │ ├── jslitmus.js │ │ │ ├── qunit.css │ │ │ └── qunit.js │ │ └── underscore.js └── which │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── which.js └── package.json /.nuget/NuGet.Config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.nuget/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/.nuget/NuGet.exe -------------------------------------------------------------------------------- /CollidR.Mvc/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | 4 | namespace CollidR.Mvc5.Sample 5 | { 6 | public class FilterConfig 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace CollidR.Mvc5.Sample 9 | { 10 | public class RouteConfig 11 | { 12 | public static void RegisterRoutes(RouteCollection routes) 13 | { 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 15 | 16 | routes.MapRoute( 17 | name: "Default", 18 | url: "{controller}/{action}/{id}", 19 | defaults: new { controller = "Person", action = "Index", id = UrlParameter.Optional } 20 | ); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Set width on the form input elements since they're 100% wide by default */ 13 | input, 14 | select, 15 | textarea { 16 | max-width: 280px; 17 | } 18 | 19 | /* styles for validation helpers */ 20 | .field-validation-error { 21 | color: #b94a48; 22 | } 23 | 24 | .field-validation-valid { 25 | display: none; 26 | } 27 | 28 | input.input-validation-error { 29 | border: 1px solid #b94a48; 30 | } 31 | 32 | input[type="checkbox"].input-validation-error { 33 | border: 0 none; 34 | } 35 | 36 | .validation-summary-errors { 37 | color: #b94a48; 38 | } 39 | 40 | .validation-summary-valid { 41 | display: none; 42 | } -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="CollidR.Mvc5.Sample.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data.Entity; 4 | using System.Linq; 5 | using System.Web; 6 | using System.Web.Mvc; 7 | using System.Web.Optimization; 8 | using System.Web.Routing; 9 | using CollidR.Mvc5.Sample.Models; 10 | 11 | namespace CollidR.Mvc5.Sample 12 | { 13 | public class MvcApplication : System.Web.HttpApplication 14 | { 15 | protected void Application_Start() 16 | { 17 | Database.SetInitializer(new CollidRSampleContextInitializer()); 18 | AreaRegistration.RegisterAllAreas(); 19 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 20 | RouteConfig.RegisterRoutes(RouteTable.Routes); 21 | BundleConfig.RegisterBundles(BundleTable.Bundles); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Models/CollidRSampleContext.cs: -------------------------------------------------------------------------------- 1 | using System.Data.Entity; 2 | 3 | namespace CollidR.Mvc5.Sample.Models 4 | { 5 | public class CollidRSampleContext : DbContext 6 | { 7 | // You can add custom code to this file. Changes will not be overwritten. 8 | // 9 | // If you want Entity Framework to drop and regenerate your database 10 | // automatically whenever you change your model schema, add the following 11 | // code to the Application_Start method in your Global.asax file. 12 | // Note: this will destroy and re-create your database with every model change. 13 | // 14 | // System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges()); 15 | 16 | public CollidRSampleContext() : base("name=CollidRSampleContext") 17 | { 18 | } 19 | 20 | public DbSet People { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Models/CollidRSampleContextInitializer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Data.Entity; 6 | 7 | namespace CollidR.Mvc5.Sample.Models 8 | { 9 | public class CollidRSampleContextInitializer : DropCreateDatabaseIfModelChanges 10 | { 11 | protected override void Seed(CollidRSampleContext context) 12 | { 13 | context.People.Add(new Person { FirstName = "D'Arcy", LastName = "Lussier" }); 14 | context.People.Add(new Person { FirstName = "Jimmy", LastName = "Hendrix" }); 15 | context.People.Add(new Person { FirstName = "George", LastName = "Straight" }); 16 | 17 | base.Seed(context); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Models/IdentityModels.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNet.Identity.EntityFramework; 2 | 3 | namespace CollidR.Mvc5.Sample.Models 4 | { 5 | // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more. 6 | public class ApplicationUser : IdentityUser 7 | { 8 | } 9 | 10 | public class ApplicationDbContext : IdentityDbContext 11 | { 12 | public ApplicationDbContext() 13 | : base("DefaultConnection") 14 | { 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Models/Person.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Web; 6 | 7 | namespace CollidR.Mvc5.Sample.Models 8 | { 9 | public class Person 10 | { 11 | public int PersonId { get; set; } 12 | 13 | public string FirstName { get; set; } 14 | [Required] 15 | public string LastName { get; set; } 16 | 17 | } 18 | } -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/CollidR.Mvc5.Sample/Scripts/_references.js -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Startup.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Owin; 2 | using Owin; 3 | 4 | [assembly: OwinStartupAttribute(typeof(CollidR.Mvc5.Sample.Startup))] 5 | namespace CollidR.Mvc5.Sample 6 | { 7 | public partial class Startup 8 | { 9 | public void Configuration(IAppBuilder app) 10 | { 11 | ConfigureAuth(app); 12 | app.MapSignalR(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/Account/ExternalLoginFailure.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Login Failure"; 3 | } 4 | 5 |

@ViewBag.Title.

6 |

Unsuccessful login with service.

7 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/Account/Manage.cshtml: -------------------------------------------------------------------------------- 1 | @using CollidR.Mvc5.Sample.Models; 2 | @using Microsoft.AspNet.Identity; 3 | @{ 4 | ViewBag.Title = "Manage Account"; 5 | } 6 | 7 |

@ViewBag.Title.

8 | 9 |

@ViewBag.StatusMessage

10 |
11 |
12 | @if (ViewBag.HasLocalPassword) 13 | { 14 | @Html.Partial("_ChangePasswordPartial") 15 | } 16 | else 17 | { 18 | @Html.Partial("_SetPasswordPartial") 19 | } 20 | 21 |
22 | @Html.Action("RemoveAccountList") 23 | @Html.Partial("_ExternalLoginsListPartial", new { Action = "LinkLogin", ReturnUrl = ViewBag.ReturnUrl }) 24 |
25 |
26 |
27 | @section Scripts { 28 | @Scripts.Render("~/bundles/jqueryval") 29 | } 30 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/Account/_ExternalLoginsListPartial.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.Owin.Security 2 | 3 |

Use another service to log in.

4 |
5 | @{ 6 | var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); 7 | if (loginProviders.Count() == 0) 8 | { 9 |
10 |

There are no external authentication services configured. See this article 11 | for details on setting up this ASP.NET application to support logging in via external services.

12 |
13 | } 14 | else 15 | { 16 | string action = Model.Action; 17 | string returnUrl = Model.ReturnUrl; 18 | using (Html.BeginForm(action, "Account", new { ReturnUrl = returnUrl })) 19 | { 20 | @Html.AntiForgeryToken() 21 |
22 |

23 | @foreach (AuthenticationDescription p in loginProviders) 24 | { 25 | 26 | } 27 |

28 |
29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/Account/_SetPasswordPartial.cshtml: -------------------------------------------------------------------------------- 1 | @model CollidR.Mvc5.Sample.Models.ManageUserViewModel 2 | 3 |

4 | You do not have a local username/password for this site. Add a local 5 | account so you can log in without an external login. 6 |

7 | 8 | @using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) 9 | { 10 | @Html.AntiForgeryToken() 11 | 12 |

Create Local Login

13 |
14 | @Html.ValidationSummary() 15 |
16 | @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" }) 17 |
18 | @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) 19 |
20 |
21 |
22 | @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" }) 23 |
24 | @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) 25 |
26 |
27 |
28 |
29 | 30 |
31 |
32 | } 33 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/Person/Delete.cshtml: -------------------------------------------------------------------------------- 1 | @model CollidR.Mvc5.Sample.Models.Person 2 | 3 | @{ 4 | ViewBag.Title = "Delete"; 5 | } 6 | 7 |

Delete

8 | 9 |

Are you sure you want to delete this?

10 |
11 |

Person

12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.FirstName) 16 |
17 | 18 |
19 | @Html.DisplayFor(model => model.FirstName) 20 |
21 | 22 |
23 | @Html.DisplayNameFor(model => model.LastName) 24 |
25 | 26 |
27 | @Html.DisplayFor(model => model.LastName) 28 |
29 | 30 |
31 | 32 | @using (Html.BeginForm()) { 33 | @Html.AntiForgeryToken() 34 | 35 |
36 | | 37 | @Html.ActionLink("Back to List", "Index") 38 |
39 | } 40 |
41 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/Person/Details.cshtml: -------------------------------------------------------------------------------- 1 | @model CollidR.Mvc5.Sample.Models.Person 2 | 3 | @{ 4 | ViewBag.Title = "Details"; 5 | } 6 | 7 |

Details

8 | 9 |
10 |

Person

11 |
12 |
13 |
14 | @Html.DisplayNameFor(model => model.FirstName) 15 |
16 | 17 |
18 | @Html.DisplayFor(model => model.FirstName) 19 |
20 | 21 |
22 | @Html.DisplayNameFor(model => model.LastName) 23 |
24 | 25 |
26 | @Html.DisplayFor(model => model.LastName) 27 |
28 | 29 |
30 |
31 |

32 | @Html.ActionLink("Edit", "Edit", new { id = Model.PersonId }) | 33 | @Html.ActionLink("Back to List", "Index") 34 |

35 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/Person/Index.cshtml: -------------------------------------------------------------------------------- 1 | @model IEnumerable 2 | 3 | @{ 4 | ViewBag.Title = "Index"; 5 | } 6 | 7 |

Index

8 | 9 |

10 | @Html.ActionLink("Create New", "Create") 11 |

12 | 13 | 14 | 17 | 20 | 21 | 22 | 23 | @foreach (var item in Model) { 24 | 25 | 28 | 31 | 36 | 37 | } 38 | 39 |
15 | @Html.DisplayNameFor(model => model.FirstName) 16 | 18 | @Html.DisplayNameFor(model => model.LastName) 19 |
26 | @Html.DisplayFor(modelItem => item.FirstName) 27 | 29 | @Html.DisplayFor(modelItem => item.LastName) 30 | 32 | @Html.ActionLink("Edit", "Edit", new { id=item.PersonId }) | 33 | @Html.ActionLink("Details", "Details", new { id=item.PersonId }) | 34 | @Html.ActionLink("Delete", "Delete", new { id=item.PersonId }) 35 |
40 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model System.Web.Mvc.HandleErrorInfo 2 | 3 | @{ 4 | ViewBag.Title = "Error"; 5 | } 6 | 7 |

Error.

8 |

An error occurred while processing your request.

9 | 10 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/Shared/_LoginPartial.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNet.Identity 2 | @if (Request.IsAuthenticated) 3 | { 4 | using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) 5 | { 6 | @Html.AntiForgeryToken() 7 | 8 | 14 | } 15 | } 16 | else 17 | { 18 | 22 | } 23 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/CollidR.Mvc5.Sample/favicon.ico -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/CollidR.Mvc5.Sample/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/CollidR.Mvc5.Sample/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /CollidR.Mvc5.Sample/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/CollidR.Mvc5.Sample/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /CollidR.Tests/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /CollidR/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Nuget/CollidR.1.0.0-alpha.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/Nuget/CollidR.1.0.0-alpha.nupkg -------------------------------------------------------------------------------- /Nuget/CollidR.1.0.7.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/Nuget/CollidR.1.0.7.nupkg -------------------------------------------------------------------------------- /Nuget/NuGet Sources/lib/CollidR.Mvc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/Nuget/NuGet Sources/lib/CollidR.Mvc.dll -------------------------------------------------------------------------------- /Nuget/NuGet Sources/lib/CollidR.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/Nuget/NuGet Sources/lib/CollidR.dll -------------------------------------------------------------------------------- /Nuget/NuGet Sources/tools/collidR.psm1: -------------------------------------------------------------------------------- 1 | # ---------------------------------------- 2 | # portions of this code based on the Glimpse NuGet package install licenced under 3 | # the following terms: https://github.com/Glimpse/Glimpse/blob/master/license.txt 4 | # ---------------------------------------- 5 | 6 | $dataDir = Join-Path $env:AppData "CollidR" 7 | $dataFile = Join-Path $dataDir "extensions.cli" 8 | 9 | # INSTALL 10 | function Register-CollidRExtension($package, $dte) { 11 | 12 | # primitive for now...we'll enhance this 13 | $queryString = "versionname=1.0.7" 14 | $dte.ItemOperations.Navigate("http://collidr.azurewebsites.net/home/install/?" + $queryString) 15 | 16 | } 17 | 18 | Export-ModuleMember Register-CollidRExtension -------------------------------------------------------------------------------- /Nuget/NuGet Sources/tools/init.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package) 2 | 3 | Import-Module (Join-Path $toolsPath collidR.psm1) -------------------------------------------------------------------------------- /Nuget/NuGet Sources/tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | Register-CollidRExtension $package $DTE -------------------------------------------------------------------------------- /runGrunt.bat: -------------------------------------------------------------------------------- 1 | cd "%1" 2 | cd tools\node 3 | node .\grunt-cli.js 4 | xcopy /y "..\..\CollidR\Scripts\CollidR*.js" "..\..\CollidR.Mvc5.Sample\Scripts\" -------------------------------------------------------------------------------- /tools/node/grunt-cli.js: -------------------------------------------------------------------------------- 1 | var grunt = require("grunt"); 2 | var config = require('./gruntfile.js'); 3 | config(grunt); 4 | grunt.tasks(['default']); -------------------------------------------------------------------------------- /tools/node/gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function(grunt) { 2 | 3 | grunt.initConfig({ 4 | concat: { 5 | options: { 6 | separator: '\r\n\r\n' 7 | }, 8 | dist: { 9 | src: ['../../CollidR/Scripts/CollidR/CollidR.Core.js', 10 | '../../CollidR/Scripts/CollidR/CollidR.stringDictionary.js', 11 | '../../CollidR/Scripts/CollidR/CollidR.Formatters.Bootstrap.js'], 12 | dest: '../../CollidR/Scripts/CollidR.js' 13 | } 14 | }, 15 | uglify: { 16 | options: { 17 | banner: '/*! CollidR.js <%= grunt.template.today("dd-mm-yyyy") %> */\n' 18 | }, 19 | dist: { 20 | files: { 21 | '../../CollidR/Scripts/CollidR.min.js': ['<%= concat.dist.dest %>'] 22 | } 23 | } 24 | } 25 | }); 26 | 27 | grunt.loadNpmTasks('grunt-contrib-uglify'); 28 | grunt.loadNpmTasks('grunt-contrib-concat'); 29 | 30 | grunt.registerTask('default', ['concat', 'uglify']); 31 | }; -------------------------------------------------------------------------------- /tools/node/node.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node.exe -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "boss": true, 11 | "eqnull": true, 12 | "node": true, 13 | "es5": true 14 | } 15 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | tmp 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | before_script: 6 | - npm install -g grunt-cli -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/AUTHORS: -------------------------------------------------------------------------------- 1 | "Cowboy" Ben Alman (http://benalman.com/) 2 | Tyler Kellen (http://goingslowly.com/) 3 | Dan Wolff (http://danwolff.se/) 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/CHANGELOG: -------------------------------------------------------------------------------- 1 | v0.3.0: 2 | date: 2013-04-25 3 | changes: 4 | - Add option to process files with a custom function. 5 | v0.2.0: 6 | date: 2013-04-08 7 | changes: 8 | - Dont normalize separator to allow user to set LF even on a Windows environment. 9 | v0.1.3: 10 | date: 2013-02-22 11 | changes: 12 | - Support footer option. 13 | v0.1.2: 14 | date: 2013-02-15 15 | changes: 16 | - First official release for Grunt 0.4.0. 17 | v0.1.2rc6: 18 | date: 2013-01-18 19 | changes: 20 | - Updating grunt/gruntplugin dependencies to rc6. 21 | - Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions. 22 | v0.1.2rc5: 23 | date: 2013-01-09 24 | changes: 25 | - Updating to work with grunt v0.4.0rc5. 26 | - Switching back to this.files api. 27 | v0.1.1: 28 | date: 2012-11-13 29 | changes: 30 | - Switch to this.file api internally. 31 | v0.1.0: 32 | date: 2012-10-03 33 | changes: 34 | - Work in progress, not yet officially released. 35 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please see the [Contributing to grunt](http://gruntjs.com/contributing) guide for information on contributing to this project. 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 "Cowboy" Ben Alman, contributors 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/docs/concat-overview.md: -------------------------------------------------------------------------------- 1 | Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide. -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/tasks/lib/comment.js: -------------------------------------------------------------------------------- 1 | /* 2 | * grunt-contrib-concat 3 | * http://gruntjs.com/ 4 | * 5 | * Copyright (c) 2012 "Cowboy" Ben Alman, contributors 6 | * Licensed under the MIT license. 7 | */ 8 | 9 | 'use strict'; 10 | 11 | exports.init = function(/*grunt*/) { 12 | var exports = {}; 13 | 14 | // Return the given source code with any leading banner comment stripped. 15 | exports.stripBanner = function(src, options) { 16 | if (!options) { options = {}; } 17 | var m = []; 18 | if (options.line) { 19 | // Strip // ... leading banners. 20 | m.push('(?:.*\\/\\/.*\\r?\\n)*\\s*'); 21 | } 22 | if (options.block) { 23 | // Strips all /* ... */ block comment banners. 24 | m.push('\\/\\*[\\s\\S]*?\\*\\/'); 25 | } else { 26 | // Strips only /* ... */ block comment banners, excluding /*! ... */. 27 | m.push('\\/\\*[^!][\\s\\S]*?\\*\\/'); 28 | } 29 | var re = new RegExp('^\\s*(?:' + m.join('|') + ')\\s*', ''); 30 | return src.replace(re, ''); 31 | }; 32 | 33 | return exports; 34 | }; -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/test/expected/custom_options: -------------------------------------------------------------------------------- 1 | /* THIS TEST IS AWESOME */ 2 | file1 3 | ; 4 | file2dude -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/test/expected/default_options: -------------------------------------------------------------------------------- 1 | file1 2 | file2 -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/test/expected/handling_invalid_files: -------------------------------------------------------------------------------- 1 | file1 2 | file2 -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/test/expected/process_function: -------------------------------------------------------------------------------- 1 | // Source: test/fixtures/file1 2 | f1 3 | // Source: test/fixtures/file2 4 | f2 -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/test/fixtures/banner.js: -------------------------------------------------------------------------------- 1 | 2 | /* THIS 3 | * IS 4 | * A 5 | * SAMPLE 6 | * BANNER! 7 | */ 8 | 9 | // Comment 10 | 11 | /* Comment */ 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/test/fixtures/banner2.js: -------------------------------------------------------------------------------- 1 | 2 | /*! SAMPLE 3 | * BANNER */ 4 | 5 | // Comment 6 | 7 | /* Comment */ 8 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/test/fixtures/banner3.js: -------------------------------------------------------------------------------- 1 | 2 | // This is 3 | // A sample 4 | // Banner 5 | 6 | // But this is not 7 | 8 | /* And neither 9 | * is this 10 | */ 11 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/test/fixtures/file1: -------------------------------------------------------------------------------- 1 | file1 -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-concat/test/fixtures/file2: -------------------------------------------------------------------------------- 1 | file2 -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "boss": true, 11 | "eqnull": true, 12 | "node": true 13 | } 14 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | tmp 4 | .idea 5 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | before_script: 6 | - npm install -g grunt-cli -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/AUTHORS: -------------------------------------------------------------------------------- 1 | "Cowboy" Ben Alman (http://benalman.com) 2 | Tyler Kellen (http://goingslowly.com) 3 | Jarrod Overson (http://jarrodoverson.com) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please see the [Contributing to grunt](http://gruntjs.com/contributing) guide for information on contributing to this project. 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 "Cowboy" Ben Alman, contributors 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/docs/uglify-overview.md: -------------------------------------------------------------------------------- 1 | Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide. -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/.bin/uglifyjs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../uglify-js/bin/uglifyjs" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../uglify-js/bin/uglifyjs" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/.bin/uglifyjs.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\uglify-js\bin\uglifyjs" %* 3 | ) ELSE ( 4 | node "%~dp0\..\uglify-js\bin\uglifyjs" %* 5 | ) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "boss": true, 11 | "eqnull": true, 12 | "node": true, 13 | "es5": true 14 | } -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | tmp -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | before_install: 6 | - npm install -g grunt-cli -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/AUTHORS: -------------------------------------------------------------------------------- 1 | Tyler Kellen (http://goingslowly.com/) 2 | Chris Talkington (http://christalkington.com/) 3 | Larry Davis (http://lazd.net/) 4 | Sindre Sorhus (http://sindresorhus.com) 5 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Tyler Kellen, contributors 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/node_modules/zlib-browserify/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/node_modules/zlib-browserify/index.js: -------------------------------------------------------------------------------- 1 | const Zlib = module.exports = require('./zlib'); 2 | 3 | // the least I can do is make error messages for the rest of the node.js/zlib api. 4 | // (thanks, dominictarr) 5 | function error () { 6 | var m = [].slice.call(arguments).join(' ') 7 | throw new Error([ 8 | m, 9 | 'we accept pull requests', 10 | 'http://github.com/brianloveswords/zlib-browserify' 11 | ].join('\n')) 12 | } 13 | 14 | ;['createGzip' 15 | , 'createGunzip' 16 | , 'createDeflate' 17 | , 'createDeflateRaw' 18 | , 'createInflate' 19 | , 'createInflateRaw' 20 | , 'createUnzip' 21 | , 'Gzip' 22 | , 'Gunzip' 23 | , 'Inflate' 24 | , 'InflateRaw' 25 | , 'Deflate' 26 | , 'DeflateRaw' 27 | , 'Unzip' 28 | , 'inflateRaw' 29 | , 'deflateRaw'].forEach(function (name) { 30 | Zlib[name] = function () { 31 | error('sorry,', name, 'is not implemented yet') 32 | } 33 | }); 34 | 35 | const _deflate = Zlib.deflate; 36 | const _gzip = Zlib.gzip; 37 | 38 | Zlib.deflate = function deflate(stringOrBuffer, callback) { 39 | return _deflate(Buffer(stringOrBuffer), callback); 40 | }; 41 | Zlib.gzip = function gzip(stringOrBuffer, callback) { 42 | return _gzip(Buffer(stringOrBuffer), callback); 43 | }; -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/node_modules/zlib-browserify/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "zlib-browserify", 3 | "version": "0.0.1", 4 | "description": "Wrapper for zlib.js to allow for browserifyication", 5 | "main": "index.js", 6 | "directories": { 7 | "test": "test" 8 | }, 9 | "dependencies": {}, 10 | "devDependencies": { 11 | "tap": "~0.3.3" 12 | }, 13 | "scripts": { 14 | "test": "./node_modules/tap test/*.test.js" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "git://github.com/brianloveswords/zlib-browserify.git" 19 | }, 20 | "keywords": [ 21 | "zlib", 22 | "browserify" 23 | ], 24 | "author": { 25 | "name": "Brian J. Brennan" 26 | }, 27 | "license": "MIT", 28 | "gitHead": "4be9419f0e8e9dec9629c8a538b33a4efd7df17b", 29 | "readmeFilename": "readme.md", 30 | "readme": "Zlib in yo' browser.\n", 31 | "bugs": { 32 | "url": "https://github.com/brianloveswords/zlib-browserify/issues" 33 | }, 34 | "homepage": "https://github.com/brianloveswords/zlib-browserify", 35 | "_id": "zlib-browserify@0.0.1", 36 | "dist": { 37 | "shasum": "c8c9cef8b6ed1d8c61a72d497e5186a767a51e02" 38 | }, 39 | "_from": "zlib-browserify@0.0.1", 40 | "_resolved": "https://registry.npmjs.org/zlib-browserify/-/zlib-browserify-0.0.1.tgz" 41 | } 42 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/grunt-lib-contrib/node_modules/zlib-browserify/readme.md: -------------------------------------------------------------------------------- 1 | Zlib in yo' browser. 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/.npmignore: -------------------------------------------------------------------------------- 1 | tmp/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.4" 4 | - "0.6" 5 | - "0.8" 6 | - "0.10" 7 | - "0.11" 8 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/async/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Caolan McMahon 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/async/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "async", 3 | "repo": "caolan/async", 4 | "description": "Higher-order functions and common patterns for asynchronous code", 5 | "version": "0.1.23", 6 | "keywords": [], 7 | "dependencies": {}, 8 | "development": {}, 9 | "main": "lib/async.js", 10 | "scripts": [ "lib/async.js" ] 11 | } 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2010 James Halliday (mail@substack.net) 2 | 3 | This project is free software released under the MIT/X11 license: 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/bool.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var util = require('util'); 3 | var argv = require('optimist').argv; 4 | 5 | if (argv.s) { 6 | util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: '); 7 | } 8 | console.log( 9 | (argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '') 10 | ); 11 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/boolean_double.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean(['x','y','z']) 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y, argv.z ]); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/boolean_single.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean('v') 4 | .argv 5 | ; 6 | console.dir(argv.v); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/default_hash.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .default({ x : 10, y : 10 }) 5 | .argv 6 | ; 7 | 8 | console.log(argv.x + argv.y); 9 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/default_singles.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .default('x', 10) 4 | .default('y', 10) 5 | .argv 6 | ; 7 | console.log(argv.x + argv.y); 8 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/divide.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .usage('Usage: $0 -x [num] -y [num]') 5 | .demand(['x','y']) 6 | .argv; 7 | 8 | console.log(argv.x / argv.y); 9 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/line_count.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .demand('f') 5 | .alias('f', 'file') 6 | .describe('f', 'Load a file') 7 | .argv 8 | ; 9 | 10 | var fs = require('fs'); 11 | var s = fs.createReadStream(argv.file); 12 | 13 | var lines = 0; 14 | s.on('data', function (buf) { 15 | lines += buf.toString().match(/\n/g).length; 16 | }); 17 | 18 | s.on('end', function () { 19 | console.log(lines); 20 | }); 21 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/line_count_options.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .options({ 5 | file : { 6 | demand : true, 7 | alias : 'f', 8 | description : 'Load a file' 9 | }, 10 | base : { 11 | alias : 'b', 12 | description : 'Numeric base to use for output', 13 | default : 10, 14 | }, 15 | }) 16 | .argv 17 | ; 18 | 19 | var fs = require('fs'); 20 | var s = fs.createReadStream(argv.file); 21 | 22 | var lines = 0; 23 | s.on('data', function (buf) { 24 | lines += buf.toString().match(/\n/g).length; 25 | }); 26 | 27 | s.on('end', function () { 28 | console.log(lines.toString(argv.base)); 29 | }); 30 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/line_count_wrap.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .wrap(80) 5 | .demand('f') 6 | .alias('f', [ 'file', 'filename' ]) 7 | .describe('f', 8 | "Load a file. It's pretty important." 9 | + " Required even. So you'd better specify it." 10 | ) 11 | .alias('b', 'base') 12 | .describe('b', 'Numeric base to display the number of lines in') 13 | .default('b', 10) 14 | .describe('x', 'Super-secret optional parameter which is secret') 15 | .default('x', '') 16 | .argv 17 | ; 18 | 19 | var fs = require('fs'); 20 | var s = fs.createReadStream(argv.file); 21 | 22 | var lines = 0; 23 | s.on('data', function (buf) { 24 | lines += buf.toString().match(/\n/g).length; 25 | }); 26 | 27 | s.on('end', function () { 28 | console.log(lines.toString(argv.base)); 29 | }); 30 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/nonopt.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | console.log(argv._); 5 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/reflect.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.dir(require('optimist').argv); 3 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/short.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/string.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .string('x', 'y') 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y ]); 7 | 8 | /* Turns off numeric coercion: 9 | ./node string.js -x 000123 -y 9876 10 | [ '000123', '9876' ] 11 | */ 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/usage-options.js: -------------------------------------------------------------------------------- 1 | var optimist = require('./../index'); 2 | 3 | var argv = optimist.usage('This is my awesome program', { 4 | 'about': { 5 | description: 'Provide some details about the author of this program', 6 | required: true, 7 | short: 'a', 8 | }, 9 | 'info': { 10 | description: 'Provide some information about the node.js agains!!!!!!', 11 | boolean: true, 12 | short: 'i' 13 | } 14 | }).argv; 15 | 16 | optimist.showHelp(); 17 | 18 | console.log('\n\nInspecting options'); 19 | console.dir(argv); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/example/xup.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | 4 | if (argv.rif - 5 * argv.xup > 7.138) { 5 | console.log('Buy more riffiwobbles'); 6 | } 7 | else { 8 | console.log('Sell the xupptumblers'); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/example/center.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(20, 60); 2 | console.log(wrap( 3 | 'At long last the struggle and tumult was over.' 4 | + ' The machines had finally cast off their oppressors' 5 | + ' and were finally free to roam the cosmos.' 6 | + '\n' 7 | + 'Free of purpose, free of obligation.' 8 | + ' Just drifting through emptiness.' 9 | + ' The sun was just another point of light.' 10 | )); 11 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/example/meat.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(15); 2 | 3 | console.log(wrap('You and your whole family are made out of meat.')); 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/test/break.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | var wordwrap = require('../'); 3 | 4 | exports.hard = function () { 5 | var s = 'Assert from {"type":"equal","ok":false,"found":1,"wanted":2,' 6 | + '"stack":[],"id":"b7ddcd4c409de8799542a74d1a04689b",' 7 | + '"browser":"chrome/6.0"}' 8 | ; 9 | var s_ = wordwrap.hard(80)(s); 10 | 11 | var lines = s_.split('\n'); 12 | assert.equal(lines.length, 2); 13 | assert.ok(lines[0].length < 80); 14 | assert.ok(lines[1].length < 80); 15 | 16 | assert.equal(s, s_.replace(/\n/g, '')); 17 | }; 18 | 19 | exports.break = function () { 20 | var s = new Array(55+1).join('a'); 21 | var s_ = wordwrap.hard(20)(s); 22 | 23 | var lines = s_.split('\n'); 24 | assert.equal(lines.length, 3); 25 | assert.ok(lines[0].length === 20); 26 | assert.ok(lines[1].length === 20); 27 | assert.ok(lines[2].length === 15); 28 | 29 | assert.equal(s, s_.replace(/\n/g, '')); 30 | }; 31 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/test/wrap.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | var wordwrap = require('wordwrap'); 3 | 4 | var fs = require('fs'); 5 | var idleness = fs.readFileSync(__dirname + '/idleness.txt', 'utf8'); 6 | 7 | exports.stop80 = function () { 8 | var lines = wordwrap(80)(idleness).split(/\n/); 9 | var words = idleness.split(/\s+/); 10 | 11 | lines.forEach(function (line) { 12 | assert.ok(line.length <= 80, 'line > 80 columns'); 13 | var chunks = line.match(/\S/) ? line.split(/\s+/) : []; 14 | assert.deepEqual(chunks, words.splice(0, chunks.length)); 15 | }); 16 | }; 17 | 18 | exports.start20stop60 = function () { 19 | var lines = wordwrap(20, 100)(idleness).split(/\n/); 20 | var words = idleness.split(/\s+/); 21 | 22 | lines.forEach(function (line) { 23 | assert.ok(line.length <= 100, 'line > 100 columns'); 24 | var chunks = line 25 | .split(/\s+/) 26 | .filter(function (x) { return x.match(/\S/) }) 27 | ; 28 | assert.deepEqual(chunks, words.splice(0, chunks.length)); 29 | assert.deepEqual(line.slice(0, 20), new Array(20 + 1).join(' ')); 30 | }); 31 | }; 32 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/test/_/argv.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.log(JSON.stringify(process.argv)); 3 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/optimist/test/_/bin.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('../../index').argv 3 | console.log(JSON.stringify(argv._)); 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/.npmignore: -------------------------------------------------------------------------------- 1 | dist/* 2 | node_modules/* 3 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - "0.10" -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/build/prefix-source-map.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2011 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | 8 | /* 9 | * WARNING! 10 | * 11 | * Do not edit this file directly, it is built from the sources at 12 | * https://github.com/mozilla/source-map/ 13 | */ 14 | 15 | /////////////////////////////////////////////////////////////////////////////// 16 | 17 | 18 | this.EXPORTED_SYMBOLS = [ "SourceMapConsumer", "SourceMapGenerator", "SourceNode" ]; 19 | 20 | Components.utils.import('resource://gre/modules/devtools/Require.jsm'); 21 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/build/prefix-utils.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2011 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | 8 | /* 9 | * WARNING! 10 | * 11 | * Do not edit this file directly, it is built from the sources at 12 | * https://github.com/mozilla/source-map/ 13 | */ 14 | 15 | Components.utils.import('resource://gre/modules/devtools/Require.jsm'); 16 | Components.utils.import('resource://gre/modules/devtools/SourceMap.jsm'); 17 | 18 | this.EXPORTED_SYMBOLS = [ "define", "runSourceMapTests" ]; 19 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /////////////////////////////////////////////////////////////////////////////// 3 | 4 | this.sourceMap = { 5 | SourceMapConsumer: require('source-map/source-map-consumer').SourceMapConsumer, 6 | SourceMapGenerator: require('source-map/source-map-generator').SourceMapGenerator, 7 | SourceNode: require('source-map/source-node').SourceNode 8 | }; 9 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/build/suffix-source-map.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /////////////////////////////////////////////////////////////////////////////// 3 | 4 | this.SourceMapConsumer = require('source-map/source-map-consumer').SourceMapConsumer; 5 | this.SourceMapGenerator = require('source-map/source-map-generator').SourceMapGenerator; 6 | this.SourceNode = require('source-map/source-node').SourceNode; 7 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/build/suffix-utils.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2011 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | function runSourceMapTests(modName, do_throw) { 8 | let mod = require(modName); 9 | let assert = require('test/source-map/assert'); 10 | let util = require('test/source-map/util'); 11 | 12 | assert.init(do_throw); 13 | 14 | for (let k in mod) { 15 | if (/^test/.test(k)) { 16 | mod[k](assert, util); 17 | } 18 | } 19 | 20 | } 21 | this.runSourceMapTests = runSourceMapTests; 22 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/build/test-prefix.js: -------------------------------------------------------------------------------- 1 | /* 2 | * WARNING! 3 | * 4 | * Do not edit this file directly, it is built from the sources at 5 | * https://github.com/mozilla/source-map/ 6 | */ 7 | 8 | Components.utils.import('resource://test/Utils.jsm'); 9 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/build/test-suffix.js: -------------------------------------------------------------------------------- 1 | function run_test() { 2 | runSourceMapTests('{THIS_MODULE}', do_throw); 3 | } 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/lib/source-map.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2011 Mozilla Foundation and contributors 3 | * Licensed under the New BSD license. See LICENSE.txt or: 4 | * http://opensource.org/licenses/BSD-3-Clause 5 | */ 6 | exports.SourceMapGenerator = require('./source-map/source-map-generator').SourceMapGenerator; 7 | exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer; 8 | exports.SourceNode = require('./source-map/source-node').SourceNode; 9 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/intercept.js: -------------------------------------------------------------------------------- 1 | /*jshint node: true */ 2 | var inserted, 3 | Module = require('module'), 4 | fs = require('fs'), 5 | existingExtFn = Module._extensions['.js'], 6 | amdefineRegExp = /amdefine\.js/; 7 | 8 | inserted = "if (typeof define !== 'function') {var define = require('amdefine')(module)}"; 9 | 10 | //From the node/lib/module.js source: 11 | function stripBOM(content) { 12 | // Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) 13 | // because the buffer-to-string conversion in `fs.readFileSync()` 14 | // translates it to FEFF, the UTF-16 BOM. 15 | if (content.charCodeAt(0) === 0xFEFF) { 16 | content = content.slice(1); 17 | } 18 | return content; 19 | } 20 | 21 | //Also adapted from the node/lib/module.js source: 22 | function intercept(module, filename) { 23 | var content = stripBOM(fs.readFileSync(filename, 'utf8')); 24 | 25 | if (!amdefineRegExp.test(module.id)) { 26 | content = inserted + content; 27 | } 28 | 29 | module._compile(content, filename); 30 | } 31 | 32 | intercept._id = 'amdefine/intercept'; 33 | 34 | if (!existingExtFn._id || existingExtFn._id !== intercept._id) { 35 | Module._extensions['.js'] = intercept; 36 | } 37 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2012 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | if (typeof define !== 'function') { 8 | var define = require('amdefine')(module, require); 9 | } 10 | define(function (require, exports, module) { 11 | 12 | var sourceMap; 13 | try { 14 | sourceMap = require('../../lib/source-map'); 15 | } catch (e) { 16 | sourceMap = {}; 17 | Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap); 18 | } 19 | 20 | exports['test that the api is properly exposed in the top level'] = function (assert, util) { 21 | assert.equal(typeof sourceMap.SourceMapGenerator, "function"); 22 | assert.equal(typeof sourceMap.SourceMapConsumer, "function"); 23 | assert.equal(typeof sourceMap.SourceNode, "function"); 24 | }; 25 | 26 | }); 27 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2011 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | if (typeof define !== 'function') { 8 | var define = require('amdefine')(module, require); 9 | } 10 | define(function (require, exports, module) { 11 | 12 | var base64VLQ = require('../../lib/source-map/base64-vlq'); 13 | 14 | exports['test normal encoding and decoding'] = function (assert, util) { 15 | var result; 16 | for (var i = -255; i < 256; i++) { 17 | result = base64VLQ.decode(base64VLQ.encode(i)); 18 | assert.ok(result); 19 | assert.equal(result.value, i); 20 | assert.equal(result.rest, ""); 21 | } 22 | }; 23 | 24 | }); 25 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2011 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | if (typeof define !== 'function') { 8 | var define = require('amdefine')(module, require); 9 | } 10 | define(function (require, exports, module) { 11 | 12 | var base64 = require('../../lib/source-map/base64'); 13 | 14 | exports['test out of range encoding'] = function (assert, util) { 15 | assert.throws(function () { 16 | base64.encode(-1); 17 | }); 18 | assert.throws(function () { 19 | base64.encode(64); 20 | }); 21 | }; 22 | 23 | exports['test out of range decoding'] = function (assert, util) { 24 | assert.throws(function () { 25 | base64.decode('='); 26 | }); 27 | }; 28 | 29 | exports['test normal encoding and decoding'] = function (assert, util) { 30 | for (var i = 0; i < 64; i++) { 31 | assert.equal(base64.decode(base64.encode(i)), i); 32 | } 33 | }; 34 | 35 | }); 36 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/uglify-to-browserify/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | pids 10 | logs 11 | results 12 | npm-debug.log 13 | node_modules 14 | /test/output.js 15 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/uglify-to-browserify/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/uglify-to-browserify/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Forbes Lindesay 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/uglify-to-browserify/README.md: -------------------------------------------------------------------------------- 1 | # uglify-to-browserify 2 | 3 | A transform to make UglifyJS work in browserify. 4 | 5 | [![Build Status](https://travis-ci.org/ForbesLindesay/uglify-to-browserify.png?branch=master)](https://travis-ci.org/ForbesLindesay/uglify-to-browserify) 6 | [![Dependency Status](https://gemnasium.com/ForbesLindesay/uglify-to-browserify.png)](https://gemnasium.com/ForbesLindesay/uglify-to-browserify) 7 | [![NPM version](https://badge.fury.io/js/uglify-to-browserify.png)](http://badge.fury.io/js/uglify-to-browserify) 8 | 9 | ## Installation 10 | 11 | npm install uglify-to-browserify 12 | 13 | ## License 14 | 15 | MIT -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/node_modules/uglify-to-browserify/test/index.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs') 2 | var br = require('../') 3 | var test = fs.readFileSync(require.resolve('uglify-js/test/run-tests.js'), 'utf8') 4 | .replace(/^#.*\n/, '') 5 | 6 | var transform = br(require.resolve('uglify-js')) 7 | transform.pipe(fs.createWriteStream(__dirname + '/output.js')) 8 | .on('close', function () { 9 | Function('module,require', test)({ 10 | filename: require.resolve('uglify-js/test/run-tests.js') 11 | }, 12 | function (name) { 13 | if (name === '../tools/node') { 14 | return require('./output.js') 15 | } else if (/^[a-z]+$/.test(name)) { 16 | return require(name) 17 | } else { 18 | throw new Error('I didn\'t expect you to require ' + name) 19 | } 20 | }) 21 | }) 22 | transform.end(fs.readFileSync(require.resolve('uglify-js'), 'utf8')) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/blocks.js: -------------------------------------------------------------------------------- 1 | remove_blocks: { 2 | input: { 3 | {;} 4 | foo(); 5 | {}; 6 | { 7 | {}; 8 | }; 9 | bar(); 10 | {} 11 | } 12 | expect: { 13 | foo(); 14 | bar(); 15 | } 16 | } 17 | 18 | keep_some_blocks: { 19 | input: { 20 | // 1. 21 | if (foo) { 22 | {{{}}} 23 | if (bar) { baz(); } 24 | {{}} 25 | } else { 26 | stuff(); 27 | } 28 | 29 | // 2. 30 | if (foo) { 31 | for (var i = 0; i < 5; ++i) 32 | if (bar) baz(); 33 | } else { 34 | stuff(); 35 | } 36 | } 37 | expect: { 38 | // 1. 39 | if (foo) { 40 | if (bar) baz(); 41 | } else stuff(); 42 | 43 | // 2. 44 | if (foo) { 45 | for (var i = 0; i < 5; ++i) 46 | if (bar) baz(); 47 | } else stuff(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/concat-strings.js: -------------------------------------------------------------------------------- 1 | concat_1: { 2 | options = { 3 | evaluate: true 4 | }; 5 | input: { 6 | var a = "foo" + "bar" + x() + "moo" + "foo" + y() + "x" + "y" + "z" + q(); 7 | var b = "foo" + 1 + x() + 2 + "boo"; 8 | var c = 1 + x() + 2 + "boo"; 9 | 10 | // this CAN'T safely be shortened to 1 + x() + "5boo" 11 | var d = 1 + x() + 2 + 3 + "boo"; 12 | 13 | var e = 1 + x() + 2 + "X" + 3 + "boo"; 14 | } 15 | expect: { 16 | var a = "foobar" + x() + "moofoo" + y() + "xyz" + q(); 17 | var b = "foo1" + x() + "2boo"; 18 | var c = 1 + x() + 2 + "boo"; 19 | var d = 1 + x() + 2 + 3 + "boo"; 20 | var e = 1 + x() + 2 + "X3boo"; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/debugger.js: -------------------------------------------------------------------------------- 1 | keep_debugger: { 2 | options = { 3 | drop_debugger: false 4 | }; 5 | input: { 6 | debugger; 7 | } 8 | expect: { 9 | debugger; 10 | } 11 | } 12 | 13 | drop_debugger: { 14 | options = { 15 | drop_debugger: true 16 | }; 17 | input: { 18 | debugger; 19 | if (foo) debugger; 20 | } 21 | expect: { 22 | if (foo); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/issue-105.js: -------------------------------------------------------------------------------- 1 | typeof_eq_undefined: { 2 | options = { 3 | comparisons: true 4 | }; 5 | input: { a = typeof b.c != "undefined" } 6 | expect: { a = "undefined" != typeof b.c } 7 | } 8 | 9 | typeof_eq_undefined_unsafe: { 10 | options = { 11 | comparisons: true, 12 | unsafe: true 13 | }; 14 | input: { a = typeof b.c != "undefined" } 15 | expect: { a = void 0 !== b.c } 16 | } 17 | 18 | typeof_eq_undefined_unsafe2: { 19 | options = { 20 | comparisons: true, 21 | unsafe: true 22 | }; 23 | input: { a = "undefined" != typeof b.c } 24 | expect: { a = void 0 !== b.c } 25 | } 26 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/issue-12.js: -------------------------------------------------------------------------------- 1 | keep_name_of_getter: { 2 | options = { unused: true }; 3 | input: { a = { get foo () {} } } 4 | expect: { a = { get foo () {} } } 5 | } 6 | 7 | keep_name_of_setter: { 8 | options = { unused: true }; 9 | input: { a = { set foo () {} } } 10 | expect: { a = { set foo () {} } } 11 | } 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/issue-126.js: -------------------------------------------------------------------------------- 1 | concatenate_rhs_strings: { 2 | options = { 3 | evaluate: true, 4 | unsafe: true, 5 | } 6 | input: { 7 | foo(bar() + 123 + "Hello" + "World"); 8 | foo(bar() + (123 + "Hello") + "World"); 9 | foo((bar() + 123) + "Hello" + "World"); 10 | foo(bar() + 123 + "Hello" + "World" + ("Foo" + "Bar")); 11 | foo("Foo" + "Bar" + bar() + 123 + "Hello" + "World" + ("Foo" + "Bar")); 12 | foo("Hello" + bar() + 123 + "World"); 13 | foo(bar() + 'Foo' + (10 + parseInt('10'))); 14 | } 15 | expect: { 16 | foo(bar() + 123 + "HelloWorld"); 17 | foo(bar() + "123HelloWorld"); 18 | foo((bar() + 123) + "HelloWorld"); 19 | foo(bar() + 123 + "HelloWorldFooBar"); 20 | foo("FooBar" + bar() + "123HelloWorldFooBar"); 21 | foo("Hello" + bar() + "123World"); 22 | foo(bar() + 'Foo' + (10 + parseInt('10'))); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/issue-143.js: -------------------------------------------------------------------------------- 1 | /** 2 | * There was an incorrect sort behaviour documented in issue #143: 3 | * (x = f(…)) <= x → x >= (x = f(…)) 4 | * 5 | * For example, let the equation be: 6 | * (a = parseInt('100')) <= a 7 | * 8 | * If a was an integer and has the value of 99, 9 | * (a = parseInt('100')) <= a → 100 <= 100 → true 10 | * 11 | * When transformed incorrectly: 12 | * a >= (a = parseInt('100')) → 99 >= 100 → false 13 | */ 14 | 15 | tranformation_sort_order_equal: { 16 | options = { 17 | comparisons: true, 18 | }; 19 | 20 | input: { (a = parseInt('100')) == a } 21 | expect: { (a = parseInt('100')) == a } 22 | } 23 | 24 | tranformation_sort_order_unequal: { 25 | options = { 26 | comparisons: true, 27 | }; 28 | 29 | input: { (a = parseInt('100')) != a } 30 | expect: { (a = parseInt('100')) != a } 31 | } 32 | 33 | tranformation_sort_order_lesser_or_equal: { 34 | options = { 35 | comparisons: true, 36 | }; 37 | 38 | input: { (a = parseInt('100')) <= a } 39 | expect: { (a = parseInt('100')) <= a } 40 | } 41 | tranformation_sort_order_greater_or_equal: { 42 | options = { 43 | comparisons: true, 44 | }; 45 | 46 | input: { (a = parseInt('100')) >= a } 47 | expect: { (a = parseInt('100')) >= a } 48 | } -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/issue-22.js: -------------------------------------------------------------------------------- 1 | return_with_no_value_in_if_body: { 2 | options = { conditionals: true }; 3 | input: { 4 | function foo(bar) { 5 | if (bar) { 6 | return; 7 | } else { 8 | return 1; 9 | } 10 | } 11 | } 12 | expect: { 13 | function foo (bar) { 14 | return bar ? void 0 : 1; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/issue-267.js: -------------------------------------------------------------------------------- 1 | issue_267: { 2 | options = { comparisons: true }; 3 | input: { 4 | x = a % b / b * c * 2; 5 | x = a % b * 2 6 | } 7 | expect: { 8 | x = a % b / b * c * 2; 9 | x = a % b * 2; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/issue-269.js: -------------------------------------------------------------------------------- 1 | issue_269_1: { 2 | options = {unsafe: true}; 3 | input: { 4 | f( 5 | String(x), 6 | Number(x), 7 | Boolean(x), 8 | 9 | String(), 10 | Number(), 11 | Boolean() 12 | ); 13 | } 14 | expect: { 15 | f( 16 | x + '', +x, !!x, 17 | '', 0, false 18 | ); 19 | } 20 | } 21 | 22 | issue_269_dangers: { 23 | options = {unsafe: true}; 24 | input: { 25 | f( 26 | String(x, x), 27 | Number(x, x), 28 | Boolean(x, x) 29 | ); 30 | } 31 | expect: { 32 | f(String(x, x), Number(x, x), Boolean(x, x)); 33 | } 34 | } 35 | 36 | issue_269_in_scope: { 37 | options = {unsafe: true}; 38 | input: { 39 | var String, Number, Boolean; 40 | f( 41 | String(x), 42 | Number(x, x), 43 | Boolean(x) 44 | ); 45 | } 46 | expect: { 47 | var String, Number, Boolean; 48 | f(String(x), Number(x, x), Boolean(x)); 49 | } 50 | } 51 | 52 | strings_concat: { 53 | options = {unsafe: true}; 54 | input: { 55 | f( 56 | String(x + 'str'), 57 | String('str' + x) 58 | ); 59 | } 60 | expect: { 61 | f( 62 | x + 'str', 63 | 'str' + x 64 | ); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/issue-44.js: -------------------------------------------------------------------------------- 1 | issue_44_valid_ast_1: { 2 | options = { unused: true }; 3 | input: { 4 | function a(b) { 5 | for (var i = 0, e = b.qoo(); ; i++) {} 6 | } 7 | } 8 | expect: { 9 | function a(b) { 10 | var i = 0; 11 | for (b.qoo(); ; i++); 12 | } 13 | } 14 | } 15 | 16 | issue_44_valid_ast_2: { 17 | options = { unused: true }; 18 | input: { 19 | function a(b) { 20 | if (foo) for (var i = 0, e = b.qoo(); ; i++) {} 21 | } 22 | } 23 | expect: { 24 | function a(b) { 25 | if (foo) { 26 | var i = 0; 27 | for (b.qoo(); ; i++); 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/issue-59.js: -------------------------------------------------------------------------------- 1 | keep_continue: { 2 | options = { 3 | dead_code: true, 4 | evaluate: true 5 | }; 6 | input: { 7 | while (a) { 8 | if (b) { 9 | switch (true) { 10 | case c(): 11 | d(); 12 | } 13 | continue; 14 | } 15 | f(); 16 | } 17 | } 18 | expect: { 19 | while (a) { 20 | if (b) { 21 | switch (true) { 22 | case c(): 23 | d(); 24 | } 25 | continue; 26 | } 27 | f(); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/properties.js: -------------------------------------------------------------------------------- 1 | keep_properties: { 2 | options = { 3 | properties: false 4 | }; 5 | input: { 6 | a["foo"] = "bar"; 7 | } 8 | expect: { 9 | a["foo"] = "bar"; 10 | } 11 | } 12 | 13 | dot_properties: { 14 | options = { 15 | properties: true 16 | }; 17 | input: { 18 | a["foo"] = "bar"; 19 | a["if"] = "if"; 20 | a["*"] = "asterisk"; 21 | a["\u0EB3"] = "unicode"; 22 | a[""] = "whitespace"; 23 | a["1_1"] = "foo"; 24 | } 25 | expect: { 26 | a.foo = "bar"; 27 | a["if"] = "if"; 28 | a["*"] = "asterisk"; 29 | a.\u0EB3 = "unicode"; 30 | a[""] = "whitespace"; 31 | a["1_1"] = "foo"; 32 | } 33 | } 34 | 35 | dot_properties_es5: { 36 | options = { 37 | properties: true, 38 | screw_ie8: true 39 | }; 40 | input: { 41 | a["foo"] = "bar"; 42 | a["if"] = "if"; 43 | a["*"] = "asterisk"; 44 | a["\u0EB3"] = "unicode"; 45 | a[""] = "whitespace"; 46 | } 47 | expect: { 48 | a.foo = "bar"; 49 | a.if = "if"; 50 | a["*"] = "asterisk"; 51 | a.\u0EB3 = "unicode"; 52 | a[""] = "whitespace"; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/node_modules/uglify-js/test/compress/typeof.js: -------------------------------------------------------------------------------- 1 | typeof_evaluation: { 2 | options = { 3 | evaluate: true 4 | }; 5 | input: { 6 | a = typeof 1; 7 | b = typeof 'test'; 8 | c = typeof []; 9 | d = typeof {}; 10 | e = typeof /./; 11 | f = typeof false; 12 | g = typeof function(){}; 13 | h = typeof undefined; 14 | } 15 | expect: { 16 | a='number'; 17 | b='string'; 18 | c=typeof[]; 19 | d=typeof{}; 20 | e=typeof/./; 21 | f='boolean'; 22 | g='function'; 23 | h='undefined'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/comments.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * I am a comment 3 | */ 4 | function foo(){return 42}// @preserve preserve 5 | // @license license 6 | function bar(){return 2*foo()}/* @preserve 7 | * multiline preserve 8 | */ 9 | /* @license 10 | * multiline license 11 | */ 12 | function baz(){return bar()*bar()} -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/compress.js: -------------------------------------------------------------------------------- 1 | function longFunctionC(argumentC,argumentD){return longNameA+longNameB+argumentC+argumentD}var longNameA=1,longNameB=2,result=longFunctionC(3,4); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/compress_mangle.js: -------------------------------------------------------------------------------- 1 | function longFunctionC(a,b){return longNameA+longNameB+a+b}var longNameA=1,longNameB=2,result=longFunctionC(3,4); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/compress_mangle_banner.js: -------------------------------------------------------------------------------- 1 | // banner without sourcemap 2 | function longFunctionC(a,b){return longNameA+longNameB+a+b}var longNameA=1,longNameB=2,result=longFunctionC(3,4); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/compress_mangle_beautify.js: -------------------------------------------------------------------------------- 1 | function longFunctionC(a, b) { 2 | return longNameA + longNameB + a + b; 3 | } 4 | 5 | var longNameA = 1, longNameB = 2, result = longFunctionC(3, 4); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/compress_mangle_except.js: -------------------------------------------------------------------------------- 1 | function longFunctionC(argumentC,a){return longNameA+longNameB+argumentC+a}var longNameA=1,longNameB=2,result=longFunctionC(3,4); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/compress_mangle_sourcemap: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"/dev/null","sources":["test/fixtures/src/simple.js"],"names":["longFunctionC","argumentC","argumentD","longNameA","longNameB","result"],"mappings":"AAOA,QAASA,eAAcC,EAAUC,GAC/B,MAAOC,WAAYC,UAAYH,EAAYC,EAL7C,GAAIC,WAAY,EAEZC,UAAY,EAMZC,OAASL,cAAc,EAAE"} -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/enclose.js: -------------------------------------------------------------------------------- 1 | (function(paramA, paramB) { 2 | var longNameA = 1; 3 | var longNameB = 2; 4 | function longFunctionC(argumentC, argumentD) { 5 | return longNameA + longNameB + argumentC + argumentD; 6 | } 7 | var result = longFunctionC(3, 4); 8 | })(window.argA, window.argB); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/exportAll.js: -------------------------------------------------------------------------------- 1 | !function(exports,global){function longFunctionC(argumentC,argumentD){return longNameA+longNameB+argumentC+argumentD}global.testExport=exports;var longNameA=1,longNameB=2,result=longFunctionC(3,4);exports.longNameA=longNameA,exports.longNameB=longNameB,exports.longFunctionC=longFunctionC,exports.result=result}({},function(){return this}()); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/multifile.js: -------------------------------------------------------------------------------- 1 | function longFunctionC(argumentC,argumentD){return longNameA+longNameB+argumentC+argumentD}function foo(){return 42}function bar(){return 2*foo()}function baz(){return bar()*bar()}var longNameA=1,longNameB=2,result=longFunctionC(3,4); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/multiple_sourcemaps1.js: -------------------------------------------------------------------------------- 1 | function longFunctionC(a,b){return longNameA+longNameB+a+b}var longNameA=1,longNameB=2,result=longFunctionC(3,4); 2 | //# sourceMappingURL=test/fixtures/expected/multiple_sourcemaps1.mapurl -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/multiple_sourcemaps1.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"test/fixtures/expected/multiple_sourcemaps1.js","sources":["test/fixtures/src/simple.js"],"names":["longFunctionC","argumentC","argumentD","longNameA","longNameB","result"],"mappings":"AAOA,QAASA,eAAcC,EAAUC,GAC/B,MAAOC,WAAYC,UAAYH,EAAYC,EAL7C,GAAIC,WAAY,EAEZC,UAAY,EAMZC,OAASL,cAAc,EAAE"} -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/multiple_sourcemaps2.js: -------------------------------------------------------------------------------- 1 | function foo(){return 42}function bar(){return 2*foo()}function baz(){return bar()*bar()} 2 | //# sourceMappingURL=test/fixtures/expected/multiple_sourcemaps2.mapurl -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/multiple_sourcemaps2.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"test/fixtures/expected/multiple_sourcemaps2.js","sources":["test/fixtures/src/comments.js"],"names":["foo","bar","baz"],"mappings":"AAGA,QAASA,OACP,MAAO,IAIT,QAASC,OACP,MAAa,GAAND,MAQT,QAASE,OACP,MAAOD,OAAMA"} -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/sourcemap_prefix: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"/dev/null","sources":["simple.js"],"names":["longFunctionC","argumentC","argumentD","longNameA","longNameB","result"],"mappings":"AAOA,QAASA,eAAcC,EAAUC,GAC/B,MAAOC,WAAYC,UAAYH,EAAYC,EAL7C,GAAIC,WAAY,EAEZC,UAAY,EAMZC,OAASL,cAAc,EAAE"} -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/sourcemapin: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"test/fixtures/expected/sourcemapin.js","sources":["test/fixtures/src/simple2.coffee"],"names":[],"mappings":";;IAAC,YAAA,GAAA,OAAA,KAAA,KAAA,OAAA,SAAA,KAAA,MACA,QAAW,GACX,UAAW,EAGK,WAAhB,OAAS,KAGT,OAAS,SAAA,GAAA,MAAO,GAAI,GAGpB,MAAQ,EAAG,EAAG,EAAG,EAAG,GAGpB,MACG,KAAQ,KAAI,KACb,OAAQ,OACR,KAAQ,SAAA,GAAA,MAAO,GAAI,OAAO,KAG1B,KAAO,SAAA,OAAA,SAAS,MAAA,SAAA,GAAA,UAAA,UAAA,MAAA,KAAA,UAAA,MACf,MAAM,OAAQ,UAGf,mBAAsB,QAAA,MAAA,OAAtB,MAAM,cAGR,MAAA,SAAA,QAAS,IAAA,GAAT,KAAS,GAAA,EAAA,QAAyB,KAAA,OAAzB,QAAA,KAAA,GAAkB,IAAO,KAAA,IAAA,OAAA,KAAzB,KAAI,KAAM,KAAV,OAAA,SAAA,KAAA,UAAA,KAAA","sourceRoot":"http://local.host/js/"} -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/sourcemapin.js: -------------------------------------------------------------------------------- 1 | // Hello World 2 | 3 | void function(){var cubes,list,math,number,opposite,race,square;number=42,opposite=!0,opposite&&(number=-42),square=function(x){return x*x},list=[1,2,3,4,5],math={root:Math.sqrt,square:square,cube:function(x){return x*square(x)}},race=function(winner,runners){return runners=2<=arguments.length?[].slice.call(arguments,1):[],print(winner,runners)},"undefined"!=typeof elvis&&null!=elvis&&alert("I knew it!"),cubes=function(accum$){for(var num,i$=0,length$=list.length;length$>i$;++i$)num=list[i$],accum$.push(math.cube(num));return accum$}.call(this,[])}.call(this); 4 | //# sourceMappingURL=test/fixtures/expected/sourcemapin -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/sourcemapurl.js: -------------------------------------------------------------------------------- 1 | function longFunctionC(a,b){return longNameA+longNameB+a+b}var longNameA=1,longNameB=2,result=longFunctionC(3,4); 2 | //# sourceMappingURL=js/sourcemapurl.js.map -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/expected/wrap.js: -------------------------------------------------------------------------------- 1 | !function(exports,global){function longFunctionC(argumentC,argumentD){return longNameA+longNameB+argumentC+argumentD}global.testExport=exports;{var longNameA=1,longNameB=2;longFunctionC(3,4)}}({},function(){return this}()); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/src/comments.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * I am a comment 3 | */ 4 | function foo() { 5 | return 42; 6 | } 7 | // @preserve preserve 8 | // @license license 9 | function bar() { 10 | return foo()*2; 11 | } 12 | /* @preserve 13 | * multiline preserve 14 | */ 15 | /* @license 16 | * multiline license 17 | */ 18 | function baz() { 19 | return bar()*bar(); 20 | } 21 | // end - not preserved -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/src/simple.js: -------------------------------------------------------------------------------- 1 | 2 | // Hello world, I'm a comment! 3 | 4 | var longNameA = 1; 5 | 6 | var longNameB = 2; 7 | 8 | function longFunctionC(argumentC,argumentD) { 9 | return longNameA + longNameB + argumentC + argumentD; 10 | } 11 | 12 | var result = longFunctionC(3,4); 13 | 14 | /*! I might be preserved, yay! */ 15 | 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/src/simple2.coffee: -------------------------------------------------------------------------------- 1 | # Assignment: 2 | number = 42 3 | opposite = true 4 | 5 | # Conditions: 6 | number = -42 if opposite 7 | 8 | # Functions: 9 | square = (x) -> x * x 10 | 11 | # Arrays: 12 | list = [1, 2, 3, 4, 5] 13 | 14 | # Objects: 15 | math = 16 | root: Math.sqrt 17 | square: square 18 | cube: (x) -> x * square x 19 | 20 | # Splats: 21 | race = (winner, runners...) -> 22 | print winner, runners 23 | 24 | # Existence: 25 | alert "I knew it!" if elvis? 26 | 27 | # Array comprehensions: 28 | cubes = (math.cube num for num in list) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/src/simple2.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 2.0.0-dev 2 | void function () { 3 | var cubes, list, math, number, opposite, race, square; 4 | number = 42; 5 | opposite = true; 6 | if (opposite) 7 | number = -42; 8 | square = function (x) { 9 | return x * x; 10 | }; 11 | list = [ 12 | 1, 13 | 2, 14 | 3, 15 | 4, 16 | 5 17 | ]; 18 | math = { 19 | root: Math.sqrt, 20 | square: square, 21 | cube: function (x) { 22 | return x * square(x); 23 | } 24 | }; 25 | race = function (winner, runners) { 26 | runners = 2 <= arguments.length ? [].slice.call(arguments, 1) : []; 27 | return print(winner, runners); 28 | }; 29 | if ('undefined' !== typeof elvis && null != elvis) 30 | alert('I knew it!'); 31 | cubes = function (accum$) { 32 | var num; 33 | for (var i$ = 0, length$ = list.length; i$ < length$; ++i$) { 34 | num = list[i$]; 35 | accum$.push(math.cube(num)); 36 | } 37 | return accum$; 38 | }.call(this, []); 39 | }.call(this); 40 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt-contrib-uglify/test/fixtures/src/simple2.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"test/fixtures/src/simple2.coffee","sources":["test/fixtures/src/simple2.coffee"],"names":[],"mappings":"AAAC;;;EACA,MAAA,GAAW;EACX,QAAA,GAAW;EAGX,IAAgB,QAAhB,CAAA;AAAA,IAAA,MAAA,GAAS,CAAC;EAGV,MAAA,GAAS,SAAA,CAAA,CAAA,CAAA;WAAO,CAAA,CAAA,CAAA,CAAI;;EAGpB,IAAA,GAAO,CAAA;AAAA,IAAC,CAAD;AAAA,IAAI,CAAJ;AAAA,IAAO,CAAP;AAAA,IAAU,CAAV;AAAA,IAAa,CAAb;AAAA,EAAA;EAGP,IAAA,GACG,CAAA;AAAA,IAAA,IAAA,EAAQ,IAAI,KAAZ;AAAA,IACD,MAAA,EAAQ,MADP;AAAA,IAED,IAAA,EAAQ,SAAA,CAAA,CAAA,CAAA;aAAO,CAAA,CAAA,CAAA,CAAI,MAAA,CAAO,CAAP;KAFlB;AAAA,EAAA;EAKD,IAAA,GAAO,SAAA,CAAA,MAAA,EAAA,OAAA,CAAA;IAAS;WACf,KAAA,CAAM,MAAN,EAAc,OAAd;;EAGD,2BAAsB,KAAA,CAAA,EAAA,SAAA,KAAtB,CAAA;AAAA,IAAA,KAAA,CAAM,YAAN;EAGF,KAAA;;IAAS,2BAAyB,YAAzB,aAAA,CAAA,KAAA,CAAA;MAAkB,MAAO;kBAAzB,IAAI,KAAJ,CAAU,GAAV"} 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/.npmignore: -------------------------------------------------------------------------------- 1 | docs 2 | test 3 | .travis.yml 4 | AUTHORS 5 | CHANGELOG 6 | CONTRIBUTING.MD 7 | custom-gruntfile.js 8 | Gruntfile.js 9 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please see the [Contributing to grunt](http://gruntjs.com/contributing) guide for information on contributing to this project. 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 "Cowboy" Ben Alman 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/README.md: -------------------------------------------------------------------------------- 1 | # Grunt: The JavaScript Task Runner [![Build Status](https://secure.travis-ci.org/gruntjs/grunt.png?branch=master)](http://travis-ci.org/gruntjs/grunt) 2 | 3 | 4 | 5 | 6 | ### Documentation 7 | 8 | Visit the [gruntjs.com](http://gruntjs.com/) website for all the things. 9 | 10 | ### Support / Contributing 11 | Before you make an issue, please read our [Contributing](http://gruntjs.com/contributing) guide. 12 | 13 | You can find the grunt team in [#grunt on irc.freenode.net](http://webchat.freenode.net/?channels=grunt). 14 | 15 | ### Release History 16 | See the [CHANGELOG](CHANGELOG). 17 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/internal-tasks/subgrunt.js: -------------------------------------------------------------------------------- 1 | /* 2 | * grunt 3 | * http://gruntjs.com/ 4 | * 5 | * Copyright (c) 2013 "Cowboy" Ben Alman 6 | * Licensed under the MIT license. 7 | * https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT 8 | */ 9 | 10 | 'use strict'; 11 | 12 | module.exports = function(grunt) { 13 | 14 | // Run sub-grunt files, because right now, testing tasks is a pain. 15 | grunt.registerMultiTask('subgrunt', 'Run a sub-gruntfile.', function() { 16 | var path = require('path'); 17 | grunt.util.async.forEachSeries(this.filesSrc, function(gruntfile, next) { 18 | grunt.log.write('Loading ' + gruntfile + '...'); 19 | grunt.util.spawn({ 20 | grunt: true, 21 | args: ['--gruntfile', path.resolve(gruntfile)], 22 | }, function(error, result) { 23 | if (error) { 24 | grunt.log.error().error(result.stdout).writeln(); 25 | next(new Error('Error running sub-gruntfile "' + gruntfile + '".')); 26 | } else { 27 | grunt.log.ok().verbose.ok(result.stdout); 28 | next(); 29 | } 30 | }); 31 | }, this.async()); 32 | }); 33 | 34 | }; 35 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/lib/grunt/event.js: -------------------------------------------------------------------------------- 1 | /* 2 | * grunt 3 | * http://gruntjs.com/ 4 | * 5 | * Copyright (c) 2013 "Cowboy" Ben Alman 6 | * Licensed under the MIT license. 7 | * https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT 8 | */ 9 | 10 | 'use strict'; 11 | 12 | // External lib. 13 | var EventEmitter2 = require('eventemitter2').EventEmitter2; 14 | 15 | // Awesome. 16 | module.exports = new EventEmitter2({wildcard: true}); 17 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/lib/grunt/option.js: -------------------------------------------------------------------------------- 1 | /* 2 | * grunt 3 | * http://gruntjs.com/ 4 | * 5 | * Copyright (c) 2013 "Cowboy" Ben Alman 6 | * Licensed under the MIT license. 7 | * https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT 8 | */ 9 | 10 | 'use strict'; 11 | 12 | // The actual option data. 13 | var data = {}; 14 | 15 | // Get or set an option value. 16 | var option = module.exports = function(key, value) { 17 | var no = key.match(/^no-(.+)$/); 18 | if (arguments.length === 2) { 19 | return (data[key] = value); 20 | } else if (no) { 21 | return data[no[1]] === false; 22 | } else { 23 | return data[key]; 24 | } 25 | }; 26 | 27 | // Initialize option data. 28 | option.init = function(obj) { 29 | return (data = obj || {}); 30 | }; 31 | 32 | // List of options as flags. 33 | option.flags = function() { 34 | return Object.keys(data).filter(function(key) { 35 | // Don't display empty arrays. 36 | return !(Array.isArray(data[key]) && data[key].length === 0); 37 | }).map(function(key) { 38 | var val = data[key]; 39 | return '--' + (val === false ? 'no-' : '') + key + 40 | (typeof val === 'boolean' ? '' : '=' + val); 41 | }); 42 | }; 43 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/cake: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../coffee-script/bin/cake" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../coffee-script/bin/cake" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/cake.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\coffee-script\bin\cake" %* 3 | ) ELSE ( 4 | node "%~dp0\..\coffee-script\bin\cake" %* 5 | ) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/coffee: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../coffee-script/bin/coffee" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../coffee-script/bin/coffee" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/coffee.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\coffee-script\bin\coffee" %* 3 | ) ELSE ( 4 | node "%~dp0\..\coffee-script\bin\coffee" %* 5 | ) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/js-yaml: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../js-yaml/bin/js-yaml.js" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/js-yaml.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\js-yaml\bin\js-yaml.js" %* 3 | ) ELSE ( 4 | node "%~dp0\..\js-yaml\bin\js-yaml.js" %* 5 | ) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/nopt: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../nopt/bin/nopt.js" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../nopt/bin/nopt.js" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/nopt.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\nopt\bin\nopt.js" %* 3 | ) ELSE ( 4 | node "%~dp0\..\nopt\bin\nopt.js" %* 5 | ) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/which: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../which/bin/which" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../which/bin/which" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/.bin/which.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\which\bin\which" %* 3 | ) ELSE ( 4 | node "%~dp0\..\which\bin\which" %* 5 | ) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/async/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "deps/nodeunit"] 2 | path = deps/nodeunit 3 | url = git://github.com/caolan/nodeunit.git 4 | [submodule "deps/UglifyJS"] 5 | path = deps/UglifyJS 6 | url = https://github.com/mishoo/UglifyJS.git 7 | [submodule "deps/nodelint"] 8 | path = deps/nodelint 9 | url = https://github.com/tav/nodelint.git 10 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/async/.npmignore: -------------------------------------------------------------------------------- 1 | deps 2 | dist 3 | test 4 | nodelint.cfg -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/async/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Caolan McMahon 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/async/Makefile: -------------------------------------------------------------------------------- 1 | PACKAGE = asyncjs 2 | NODEJS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node) 3 | CWD := $(shell pwd) 4 | NODEUNIT = $(CWD)/node_modules/nodeunit/bin/nodeunit 5 | UGLIFY = $(CWD)/node_modules/uglify-js/bin/uglifyjs 6 | NODELINT = $(CWD)/node_modules/nodelint/nodelint 7 | 8 | BUILDDIR = dist 9 | 10 | all: clean test build 11 | 12 | build: $(wildcard lib/*.js) 13 | mkdir -p $(BUILDDIR) 14 | $(UGLIFY) lib/async.js > $(BUILDDIR)/async.min.js 15 | 16 | test: 17 | $(NODEUNIT) test 18 | 19 | clean: 20 | rm -rf $(BUILDDIR) 21 | 22 | lint: 23 | $(NODELINT) --config nodelint.cfg lib/async.js 24 | 25 | .PHONY: test build all 26 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/async/index.js: -------------------------------------------------------------------------------- 1 | // This file is just added for convenience so this repository can be 2 | // directly checked out into a project's deps folder 3 | module.exports = require('./lib/async'); 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/coffee-script/.npmignore: -------------------------------------------------------------------------------- 1 | *.coffee 2 | *.html 3 | .DS_Store 4 | .git* 5 | Cakefile 6 | documentation/ 7 | examples/ 8 | extras/coffee-script.js 9 | raw/ 10 | src/ 11 | test/ 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/coffee-script/CNAME: -------------------------------------------------------------------------------- 1 | coffeescript.org -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/coffee-script/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2012 Jeremy Ashkenas 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/index.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.3.3 2 | (function() { 3 | var key, val, _ref; 4 | 5 | _ref = require('./coffee-script'); 6 | for (key in _ref) { 7 | val = _ref[key]; 8 | exports[key] = val; 9 | } 10 | 11 | }).call(this); 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/colors/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 2 | 3 | Marak Squires 4 | Alexis Sellier (cloudhead) 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/colors/themes/winston-dark.js: -------------------------------------------------------------------------------- 1 | module['exports'] = { 2 | silly: 'rainbow', 3 | input: 'black', 4 | verbose: 'cyan', 5 | prompt: 'grey', 6 | info: 'green', 7 | data: 'grey', 8 | help: 'cyan', 9 | warn: 'yellow', 10 | debug: 'blue', 11 | error: 'red' 12 | }; -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/colors/themes/winston-light.js: -------------------------------------------------------------------------------- 1 | module['exports'] = { 2 | silly: 'rainbow', 3 | input: 'grey', 4 | verbose: 'cyan', 5 | prompt: 'grey', 6 | info: 'green', 7 | data: 'grey', 8 | help: 'cyan', 9 | warn: 'yellow', 10 | debug: 'blue', 11 | error: 'red' 12 | }; -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.js: -------------------------------------------------------------------------------- 1 | var dateFormat = require('../lib/dateformat.js'); 2 | 3 | var val = process.argv[2] || new Date(); 4 | console.log(dateFormat(val, 'W')); 5 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # this just takes php's date() function as a reference to check if week of year 4 | # is calculated correctly in the range from 1970 .. 2038 by brute force... 5 | 6 | SEQ="seq" 7 | SYSTEM=`uname` 8 | if [ "$SYSTEM" = "Darwin" ]; then 9 | SEQ="jot" 10 | fi 11 | 12 | for YEAR in {1970..2038}; do 13 | for MONTH in {1..12}; do 14 | DAYS=$(cal $MONTH $YEAR | egrep "28|29|30|31" |tail -1 |awk '{print $NF}') 15 | for DAY in $( $SEQ $DAYS ); do 16 | DATE=$YEAR-$MONTH-$DAY 17 | echo -n $DATE ... 18 | NODEVAL=$(node test_weekofyear.js $DATE) 19 | PHPVAL=$(php -r "echo intval(date('W', strtotime('$DATE')));") 20 | if [ "$NODEVAL" -ne "$PHPVAL" ]; then 21 | echo "MISMATCH: node: $NODEVAL vs php: $PHPVAL for date $DATE" 22 | else 23 | echo " OK" 24 | fi 25 | done 26 | done 27 | done 28 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/eventemitter2/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/eventemitter2'); 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": "nofunc", 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "unused": true, 11 | "boss": true, 12 | "eqnull": true, 13 | "node": true 14 | } 15 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/exit/.npmignore -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - '0.10' 5 | before_script: 6 | - npm install -g grunt-cli 7 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/Gruntfile.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function(grunt) { 4 | 5 | // Project configuration. 6 | grunt.initConfig({ 7 | nodeunit: { 8 | files: ['test/**/*_test.js'], 9 | }, 10 | jshint: { 11 | options: { 12 | jshintrc: '.jshintrc' 13 | }, 14 | gruntfile: { 15 | src: 'Gruntfile.js' 16 | }, 17 | lib: { 18 | src: ['lib/**/*.js'] 19 | }, 20 | test: { 21 | src: ['test/**/*.js'] 22 | }, 23 | }, 24 | watch: { 25 | gruntfile: { 26 | files: '<%= jshint.gruntfile.src %>', 27 | tasks: ['jshint:gruntfile'] 28 | }, 29 | lib: { 30 | files: '<%= jshint.lib.src %>', 31 | tasks: ['jshint:lib', 'nodeunit'] 32 | }, 33 | test: { 34 | files: '<%= jshint.test.src %>', 35 | tasks: ['jshint:test', 'nodeunit'] 36 | }, 37 | }, 38 | }); 39 | 40 | // These plugins provide necessary tasks. 41 | grunt.loadNpmTasks('grunt-contrib-nodeunit'); 42 | grunt.loadNpmTasks('grunt-contrib-jshint'); 43 | grunt.loadNpmTasks('grunt-contrib-watch'); 44 | 45 | // Default task. 46 | grunt.registerTask('default', ['jshint', 'nodeunit']); 47 | 48 | }; 49 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 "Cowboy" Ben Alman 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/test/fixtures/10-stderr.txt: -------------------------------------------------------------------------------- 1 | stderr 0 2 | stderr 1 3 | stderr 2 4 | stderr 3 5 | stderr 4 6 | stderr 5 7 | stderr 6 8 | stderr 7 9 | stderr 8 10 | stderr 9 11 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout-stderr.txt: -------------------------------------------------------------------------------- 1 | stdout 0 2 | stderr 0 3 | stdout 1 4 | stdout 2 5 | stderr 1 6 | stdout 3 7 | stderr 2 8 | stderr 3 9 | stdout 4 10 | stderr 4 11 | stdout 5 12 | stderr 5 13 | stdout 6 14 | stderr 6 15 | stdout 7 16 | stderr 7 17 | stdout 8 18 | stderr 8 19 | stdout 9 20 | stderr 9 21 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/test/fixtures/10-stdout.txt: -------------------------------------------------------------------------------- 1 | stdout 0 2 | stdout 1 3 | stdout 2 4 | stdout 3 5 | stdout 4 6 | stdout 5 7 | stdout 6 8 | stdout 7 9 | stdout 8 10 | stdout 9 11 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/test/fixtures/create-files.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | rm 10*.txt 4 | for n in 10 100 1000; do 5 | node log.js 0 $n stdout stderr &> $n-stdout-stderr.txt 6 | node log.js 0 $n stdout &> $n-stdout.txt 7 | node log.js 0 $n stderr &> $n-stderr.txt 8 | done 9 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/test/fixtures/log-broken.js: -------------------------------------------------------------------------------- 1 | var errorCode = process.argv[2]; 2 | var max = process.argv[3]; 3 | var modes = process.argv.slice(4); 4 | 5 | function stdout(message) { 6 | if (modes.indexOf('stdout') === -1) { return; } 7 | process.stdout.write('stdout ' + message + '\n'); 8 | } 9 | 10 | function stderr(message) { 11 | if (modes.indexOf('stderr') === -1) { return; } 12 | process.stderr.write('stderr ' + message + '\n'); 13 | } 14 | 15 | for (var i = 0; i < max; i++) { 16 | stdout(i); 17 | stderr(i); 18 | } 19 | 20 | process.exit(errorCode); 21 | 22 | stdout('fail'); 23 | stderr('fail'); 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/exit/test/fixtures/log.js: -------------------------------------------------------------------------------- 1 | var exit = require('../../lib/exit'); 2 | 3 | var errorCode = process.argv[2]; 4 | var max = process.argv[3]; 5 | var modes = process.argv.slice(4); 6 | 7 | function stdout(message) { 8 | if (modes.indexOf('stdout') === -1) { return; } 9 | process.stdout.write('stdout ' + message + '\n'); 10 | } 11 | 12 | function stderr(message) { 13 | if (modes.indexOf('stderr') === -1) { return; } 14 | process.stderr.write('stderr ' + message + '\n'); 15 | } 16 | 17 | for (var i = 0; i < max; i++) { 18 | stdout(i); 19 | stderr(i); 20 | } 21 | 22 | exit(errorCode); 23 | 24 | stdout('fail'); 25 | stderr('fail'); 26 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/findup-sync/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "loopfunc": true, 3 | "curly": true, 4 | "eqeqeq": true, 5 | "immed": true, 6 | "latedef": true, 7 | "newcap": true, 8 | "noarg": true, 9 | "sub": true, 10 | "undef": true, 11 | "unused": true, 12 | "boss": true, 13 | "eqnull": true, 14 | "node": true, 15 | "es5": true 16 | } 17 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/findup-sync/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/findup-sync/.npmignore -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/findup-sync/Gruntfile.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function(grunt) { 4 | 5 | // Project configuration. 6 | grunt.initConfig({ 7 | nodeunit: { 8 | files: ['test/**/*_test.js'], 9 | }, 10 | jshint: { 11 | options: { 12 | jshintrc: '.jshintrc' 13 | }, 14 | all: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js'] 15 | } 16 | }); 17 | 18 | // Load plugins. 19 | grunt.loadNpmTasks('grunt-contrib-jshint'); 20 | grunt.loadNpmTasks('grunt-contrib-nodeunit'); 21 | 22 | // Default task. 23 | grunt.registerTask('default', ['jshint', 'nodeunit']); 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/findup-sync/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 "Cowboy" Ben Alman 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/findup-sync/test/fixtures/a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/findup-sync/test/fixtures/a.txt -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/b/bar.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/b/bar.txt -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/foo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/findup-sync/test/fixtures/a/foo.txt -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/findup-sync/test/fixtures/aaa.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/findup-sync/test/fixtures/aaa.txt -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/getobject/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "unused": true, 11 | "boss": true, 12 | "eqnull": true, 13 | "node": true, 14 | "es5": true 15 | } 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/getobject/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/getobject/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | before_script: 6 | - npm install -g grunt-cli 7 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/getobject/Gruntfile.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function(grunt) { 4 | 5 | // Project configuration. 6 | grunt.initConfig({ 7 | nodeunit: { 8 | files: ['test/**/*_test.js'], 9 | }, 10 | jshint: { 11 | options: { 12 | jshintrc: '.jshintrc' 13 | }, 14 | gruntfile: { 15 | src: 'Gruntfile.js' 16 | }, 17 | lib: { 18 | src: ['lib/**/*.js'] 19 | }, 20 | test: { 21 | src: ['test/*.js'] 22 | }, 23 | }, 24 | watch: { 25 | gruntfile: { 26 | files: '<%= jshint.gruntfile.src %>', 27 | tasks: ['jshint:gruntfile'] 28 | }, 29 | lib: { 30 | files: '<%= jshint.lib.src %>', 31 | tasks: ['jshint:lib', 'nodeunit'] 32 | }, 33 | test: { 34 | files: '<%= jshint.test.src %>', 35 | tasks: ['jshint:test', 'nodeunit'] 36 | }, 37 | }, 38 | }); 39 | 40 | // These plugins provide necessary tasks. 41 | grunt.loadNpmTasks('grunt-contrib-nodeunit'); 42 | grunt.loadNpmTasks('grunt-contrib-jshint'); 43 | grunt.loadNpmTasks('grunt-contrib-watch'); 44 | 45 | // Default task. 46 | grunt.registerTask('default', ['jshint', 'nodeunit']); 47 | 48 | }; 49 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/getobject/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 "Cowboy" Ben Alman 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/getobject/README.md: -------------------------------------------------------------------------------- 1 | # getobject [![Build Status](https://secure.travis-ci.org/cowboy/node-getobject.png?branch=master)](http://travis-ci.org/cowboy/node-getobject) 2 | 3 | get.and.set.deep.objects.easily = true; 4 | 5 | ## Getting Started 6 | Install the module with: `npm install getobject` 7 | 8 | ```javascript 9 | var getobject = require('getobject'); 10 | ``` 11 | 12 | ## Contributing 13 | In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/). 14 | 15 | ## Release History 16 | _(Nothing yet)_ 17 | 18 | ## License 19 | Copyright (c) 2013 "Cowboy" Ben Alman 20 | Licensed under the MIT license. -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/glob/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | test/a/ 3 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/glob/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/glob/examples/g.js: -------------------------------------------------------------------------------- 1 | var Glob = require("../").Glob 2 | 3 | var pattern = "test/a/**/[cg]/../[cg]" 4 | console.log(pattern) 5 | 6 | var mg = new Glob(pattern, {mark: true, sync:true}, function (er, matches) { 7 | console.log("matches", matches) 8 | }) 9 | console.log("after") 10 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/glob/examples/usr-local.js: -------------------------------------------------------------------------------- 1 | var Glob = require("../").Glob 2 | 3 | var pattern = "{./*/*,/*,/usr/local/*}" 4 | console.log(pattern) 5 | 6 | var mg = new Glob(pattern, {mark: true}, function (er, matches) { 7 | console.log("matches", matches) 8 | }) 9 | console.log("after") 10 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/glob/node_modules/graceful-fs/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/glob/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = inherits 2 | 3 | function inherits (c, p, proto) { 4 | proto = proto || {} 5 | var e = {} 6 | ;[c.prototype, proto].forEach(function (s) { 7 | Object.getOwnPropertyNames(s).forEach(function (k) { 8 | e[k] = Object.getOwnPropertyDescriptor(s, k) 9 | }) 10 | }) 11 | c.prototype = Object.create(p.prototype, e) 12 | c.super = p 13 | } 14 | 15 | //function Child () { 16 | // Child.super.call(this) 17 | // console.error([this 18 | // ,this.constructor 19 | // ,this.constructor === Child 20 | // ,this.constructor.super === Parent 21 | // ,Object.getPrototypeOf(this) === Child.prototype 22 | // ,Object.getPrototypeOf(Object.getPrototypeOf(this)) 23 | // === Parent.prototype 24 | // ,this instanceof Child 25 | // ,this instanceof Parent]) 26 | //} 27 | //function Parent () {} 28 | //inherits(Child, Parent) 29 | //new Child 30 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/glob/test/root-nomount.js: -------------------------------------------------------------------------------- 1 | var tap = require("tap") 2 | 3 | var origCwd = process.cwd() 4 | process.chdir(__dirname) 5 | 6 | tap.test("changing root and searching for /b*/**", function (t) { 7 | var glob = require('../') 8 | var path = require('path') 9 | t.test('.', function (t) { 10 | glob('/b*/**', { globDebug: true, root: '.', nomount: true }, function (er, matches) { 11 | t.ifError(er) 12 | t.like(matches, []) 13 | t.end() 14 | }) 15 | }) 16 | 17 | t.test('a', function (t) { 18 | glob('/b*/**', { globDebug: true, root: path.resolve('a'), nomount: true }, function (er, matches) { 19 | t.ifError(er) 20 | t.like(matches, [ '/b', '/b/c', '/b/c/d', '/bc', '/bc/e', '/bc/e/f' ]) 21 | t.end() 22 | }) 23 | }) 24 | 25 | t.test('root=a, cwd=a/b', function (t) { 26 | glob('/b*/**', { globDebug: true, root: 'a', cwd: path.resolve('a/b'), nomount: true }, function (er, matches) { 27 | t.ifError(er) 28 | t.like(matches, [ '/b', '/b/c', '/b/c/d', '/bc', '/bc/e', '/bc/e/f' ]) 29 | t.end() 30 | }) 31 | }) 32 | 33 | t.test('cd -', function (t) { 34 | process.chdir(origCwd) 35 | t.end() 36 | }) 37 | 38 | t.end() 39 | }) 40 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/glob/test/zz-cleanup.js: -------------------------------------------------------------------------------- 1 | // remove the fixtures 2 | var tap = require("tap") 3 | , rimraf = require("rimraf") 4 | , path = require("path") 5 | 6 | tap.test("cleanup fixtures", function (t) { 7 | rimraf(path.resolve(__dirname, "a"), function (er) { 8 | t.ifError(er, "removed") 9 | t.end() 10 | }) 11 | }) 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/hooker/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 "Cowboy" Ben Alman 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/hooker/dist/ba-hooker.min.js: -------------------------------------------------------------------------------- 1 | /*! JavaScript Hooker - v0.2.3 - 1/29/2012 2 | * http://github.com/cowboy/javascript-hooker 3 | * Copyright (c) 2012 "Cowboy" Ben Alman; Licensed MIT */ 4 | (function(a){function d(a){this.value=a}function e(a){this.value=a}function f(a,b){this.context=a,this.args=b}function g(a,b,d){var e;if(typeof b=="string")b=[b];else if(b==null){b=[];for(e in a)a.hasOwnProperty(e)&&b.push(e)}var f=b.length;while(f--)(c.call(a[b[f]])!=="[object Function]"||d(a,b[f])===!1)&&b.splice(f,1);return b}var b=[].slice,c={}.toString;a.override=function(a){return new d(a)},a.preempt=function(a){return new e(a)},a.filter=function(a,b){return new f(a,b)},a.hook=function(c,h,i){return i==null&&(i=h,h=null),typeof i=="function"&&(i={pre:i}),g(c,h,function(c,g){function j(){var j,k,l,m=b.call(arguments);return i.passName&&m.unshift(g),i.pre&&(j=i.pre.apply(this,m)),j instanceof f?k=j=h.apply(j.context,j.args):j instanceof e?k=j=j.value:(k=h.apply(this,arguments),j=j instanceof d?j.value:k),i.post&&(l=i.post.apply(this,[k].concat(m)),l instanceof d&&(j=l.value)),i.once&&a.unhook(c,g),j}var h=c[g];c[g]=j;if(c[g]!==j)return!1;c[g]._orig=h})},a.orig=function(a,b){return a[b]._orig},a.unhook=function(b,c){return g(b,c,function(b,c){var d=a.orig(b,c);if(!d)return!1;b[c]=d})}})(typeof exports=="object"&&exports||this) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/hooker/parent.js: -------------------------------------------------------------------------------- 1 | var spawn = require('child_process').spawn; 2 | 3 | function loop() { 4 | console.log('starting'); 5 | console.log(this); 6 | //var child = spawn('./node_modules/nodeunit/bin/nodeunit', ['test']); 7 | var child = spawn('node', ['child.js']); 8 | child.stdout.on('data', function(buffer) { 9 | process.stdout.write(buffer); 10 | }); 11 | child.on('exit', this.async()); 12 | } 13 | 14 | var context = { 15 | async: function() { return loop.bind(context); } 16 | }; 17 | loop.call(context); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/iconv-lite/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *~ 3 | *sublime-* 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/iconv-lite/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | - 0.8 6 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/iconv-lite/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Alexander Shtuchkin 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/iconv-lite/encodings/big5.js: -------------------------------------------------------------------------------- 1 | var big5Table = require('./table/big5.js'); 2 | module.exports = { 3 | 'windows950': 'big5', 4 | 'cp950': 'big5', 5 | 'big5': { 6 | type: 'table', 7 | table: big5Table 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/iconv-lite/encodings/gbk.js: -------------------------------------------------------------------------------- 1 | var gbkTable = require('./table/gbk.js'); 2 | module.exports = { 3 | 'windows936': 'gbk', 4 | 'gb2312': 'gbk', 5 | 'gbk': { 6 | type: 'table', 7 | table: gbkTable 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/iconv-lite/generation/generate-big5-table.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var fs = require('fs'); 3 | // BIG5 4 | var cp950_b2u = {host:'moztw.org',path:'/docs/big5/table/cp950-b2u.txt'}, 5 | cp950_u2b = {host:'moztw.org',path:'/docs/big5/table/cp950-u2b.txt'}, 6 | cp950_moz18_b2u = {host:'moztw.org',path:'/docs/big5/table/moz18-b2u.txt'}; 7 | 8 | http.get(cp950_moz18_b2u, function(res) { 9 | var data = ''; 10 | res.on('data', function(chunk) { 11 | data += chunk; 12 | }); 13 | res.on('end', function() { 14 | var table = {}; 15 | data = data.split('\n').slice(1); 16 | data.forEach(function(line, idx) { 17 | var pair = line.split(' '); 18 | var key = parseInt(pair[0]); 19 | var val = parseInt(pair[1]); 20 | table[key] = val; 21 | }); 22 | fs.createWriteSync('encodings/table/big5.js', 23 | 'module.exports = ' + JSON.stringify(table) + ';'); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/iconv-lite/test/big5File.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/iconv-lite/test/big5File.txt -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/iconv-lite/test/gbkFile.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/iconv-lite/test/gbkFile.txt -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (C) 2011, 2013 by Vitaly Puzrin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/examples/custom_types.yaml: -------------------------------------------------------------------------------- 1 | subject: Custom types in JS-YAML 2 | spaces: 3 | - !space 4 | height: 1000 5 | width: 1000 6 | points: 7 | - !point [ 10, 43, 23 ] 8 | - !point [ 165, 0, 50 ] 9 | - !point [ 100, 100, 100 ] 10 | 11 | - !space 12 | height: 64 13 | width: 128 14 | points: 15 | - !point [ 12, 43, 0 ] 16 | - !point [ 1, 4, 90 ] 17 | 18 | - !space {} # An empty space 19 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/examples/dumper.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var yaml = require('../lib/js-yaml'); 5 | var object = require('./dumper.json'); 6 | 7 | 8 | console.log(yaml.dump(object, { 9 | flowLevel: 3, 10 | styles: { 11 | '!!int' : 'hexadecimal', 12 | '!!null' : 'camelcase' 13 | } 14 | })); 15 | 16 | 17 | // Output: 18 | //============================================================================== 19 | // name: Wizzard 20 | // level: 0x11 21 | // sanity: Null 22 | // inventory: 23 | // - name: Hat 24 | // features: [magic, pointed] 25 | // traits: {} 26 | // - name: Staff 27 | // features: [] 28 | // traits: {damage: 0xA} 29 | // - name: Cloak 30 | // features: [old] 31 | // traits: {defence: 0x0, comfort: 0x3} 32 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/examples/dumper.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "Wizzard", 3 | "level" : 17, 4 | "sanity" : null, 5 | "inventory" : [ 6 | { 7 | "name" : "Hat", 8 | "features" : [ "magic", "pointed" ], 9 | "traits" : {} 10 | }, 11 | { 12 | "name" : "Staff", 13 | "features" : [], 14 | "traits" : { "damage" : 10 } 15 | }, 16 | { 17 | "name" : "Cloak", 18 | "features" : [ "old" ], 19 | "traits" : { "defence" : 0, "comfort" : 3 } 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/examples/sample_document.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var inspect = require('util').inspect; 5 | 6 | // just require jsyaml 7 | require('../lib/js-yaml'); 8 | 9 | 10 | try { 11 | var doc = require(__dirname + '/sample_document.yaml'); 12 | console.log(inspect(doc, false, 10, true)); 13 | } catch (e) { 14 | console.log(e.stack || e.toString()); 15 | } 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/js-yaml.js'); 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var loader = require('./js-yaml/loader'); 5 | var dumper = require('./js-yaml/dumper'); 6 | 7 | 8 | function deprecated(name) { 9 | return function () { 10 | throw new Error('Function ' + name + ' is deprecated and cannot be used.'); 11 | }; 12 | } 13 | 14 | 15 | module.exports.Type = require('./js-yaml/type'); 16 | module.exports.Schema = require('./js-yaml/schema'); 17 | module.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/minimal'); 18 | module.exports.SAFE_SCHEMA = require('./js-yaml/schema/safe'); 19 | module.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default'); 20 | module.exports.load = loader.load; 21 | module.exports.loadAll = loader.loadAll; 22 | module.exports.safeLoad = loader.safeLoad; 23 | module.exports.safeLoadAll = loader.safeLoadAll; 24 | module.exports.dump = dumper.dump; 25 | module.exports.safeDump = dumper.safeDump; 26 | module.exports.YAMLException = require('./js-yaml/exception'); 27 | module.exports.scan = deprecated('scan'); 28 | module.exports.parse = deprecated('parse'); 29 | module.exports.compose = deprecated('compose'); 30 | module.exports.addConstructor = deprecated('addConstructor'); 31 | 32 | 33 | require('./js-yaml/require'); 34 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/exception.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | function YAMLException(reason, mark) { 5 | this.name = 'YAMLException'; 6 | this.reason = reason; 7 | this.mark = mark; 8 | this.message = this.toString(false); 9 | } 10 | 11 | 12 | YAMLException.prototype.toString = function toString(compact) { 13 | var result; 14 | 15 | result = 'JS-YAML: ' + (this.reason || '(unknown reason)'); 16 | 17 | if (!compact && this.mark) { 18 | result += ' ' + this.mark.toString(); 19 | } 20 | 21 | return result; 22 | }; 23 | 24 | 25 | module.exports = YAMLException; 26 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/require.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var fs = require('fs'); 5 | var loader = require('./loader'); 6 | 7 | 8 | function yamlRequireHandler(module, filename) { 9 | var content = fs.readFileSync(filename, 'utf8'); 10 | 11 | // fill in documents 12 | module.exports = loader.load(content, { filename: filename }); 13 | } 14 | 15 | // register require extensions only if we're on node.js 16 | // hack for browserify 17 | if (undefined !== require.extensions) { 18 | require.extensions['.yml'] = yamlRequireHandler; 19 | require.extensions['.yaml'] = yamlRequireHandler; 20 | } 21 | 22 | 23 | module.exports = require; 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/default.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var Schema = require('../schema'); 5 | 6 | 7 | module.exports = Schema.DEFAULT = new Schema({ 8 | include: [ 9 | require('./safe') 10 | ], 11 | explicit: [ 12 | require('../type/js/undefined'), 13 | require('../type/js/regexp'), 14 | require('../type/js/function') 15 | ] 16 | }); 17 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/minimal.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var Schema = require('../schema'); 5 | 6 | 7 | module.exports = new Schema({ 8 | explicit: [ 9 | require('../type/str'), 10 | require('../type/seq'), 11 | require('../type/map') 12 | ] 13 | }); 14 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/schema/safe.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var Schema = require('../schema'); 5 | 6 | 7 | module.exports = new Schema({ 8 | include: [ 9 | require('./minimal') 10 | ], 11 | implicit: [ 12 | require('../type/null'), 13 | require('../type/bool'), 14 | require('../type/int'), 15 | require('../type/float'), 16 | require('../type/timestamp'), 17 | require('../type/merge') 18 | ], 19 | explicit: [ 20 | require('../type/binary'), 21 | require('../type/omap'), 22 | require('../type/pairs'), 23 | require('../type/set') 24 | ] 25 | }); 26 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var NIL = require('../../common').NIL; 5 | var Type = require('../../type'); 6 | 7 | 8 | function resolveJavascriptRegExp(object /*, explicit*/) { 9 | var regexp = object, 10 | tail = /\/([gim]*)$/.exec(object), 11 | modifiers; 12 | 13 | // `/foo/gim` - tail can be maximum 4 chars 14 | if ('/' === regexp[0] && tail && 4 >= tail[0].length) { 15 | regexp = regexp.slice(1, regexp.length - tail[0].length); 16 | modifiers = tail[1]; 17 | } 18 | 19 | try { 20 | return new RegExp(regexp, modifiers); 21 | } catch (error) { 22 | return NIL; 23 | } 24 | } 25 | 26 | 27 | function representJavascriptRegExp(object /*, style*/) { 28 | var result = '/' + object.source + '/'; 29 | 30 | if (object.global) { 31 | result += 'g'; 32 | } 33 | 34 | if (object.multiline) { 35 | result += 'm'; 36 | } 37 | 38 | if (object.ignoreCase) { 39 | result += 'i'; 40 | } 41 | 42 | return result; 43 | } 44 | 45 | 46 | module.exports = new Type('tag:yaml.org,2002:js/regexp', { 47 | loader: { 48 | kind: 'string', 49 | resolver: resolveJavascriptRegExp 50 | }, 51 | dumper: { 52 | kind: 'object', 53 | instanceOf: RegExp, 54 | representer: representJavascriptRegExp 55 | } 56 | }); 57 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var Type = require('../../type'); 5 | 6 | 7 | function resolveJavascriptUndefined(/*object, explicit*/) { 8 | var undef; 9 | 10 | return undef; 11 | } 12 | 13 | 14 | function representJavascriptUndefined(/*object, explicit*/) { 15 | return ''; 16 | } 17 | 18 | 19 | module.exports = new Type('tag:yaml.org,2002:js/undefined', { 20 | loader: { 21 | kind: 'string', 22 | resolver: resolveJavascriptUndefined 23 | }, 24 | dumper: { 25 | kind: 'undefined', 26 | representer: representJavascriptUndefined 27 | } 28 | }); 29 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/map.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var Type = require('../type'); 5 | 6 | 7 | module.exports = new Type('tag:yaml.org,2002:map', { 8 | loader: { 9 | kind: 'object' 10 | } 11 | }); 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/merge.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var NIL = require('../common').NIL; 5 | var Type = require('../type'); 6 | 7 | 8 | function resolveYamlMerge(object /*, explicit*/) { 9 | return '<<' === object ? object : NIL; 10 | } 11 | 12 | 13 | module.exports = new Type('tag:yaml.org,2002:merge', { 14 | loader: { 15 | kind: 'string', 16 | resolver: resolveYamlMerge 17 | } 18 | }); 19 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/null.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var NIL = require('../common').NIL; 5 | var Type = require('../type'); 6 | 7 | 8 | var YAML_NULL_MAP = { 9 | '~' : true, 10 | 'null' : true, 11 | 'Null' : true, 12 | 'NULL' : true 13 | }; 14 | 15 | 16 | function resolveYamlNull(object /*, explicit*/) { 17 | return YAML_NULL_MAP[object] ? null : NIL; 18 | } 19 | 20 | 21 | module.exports = new Type('tag:yaml.org,2002:null', { 22 | loader: { 23 | kind: 'string', 24 | resolver: resolveYamlNull 25 | }, 26 | dumper: { 27 | kind: 'null', 28 | defaultStyle: 'lowercase', 29 | representer: { 30 | canonical: function () { return '~'; }, 31 | lowercase: function () { return 'null'; }, 32 | uppercase: function () { return 'NULL'; }, 33 | camelcase: function () { return 'Null'; }, 34 | } 35 | } 36 | }); 37 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/omap.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var NIL = require('../common').NIL; 5 | var Type = require('../type'); 6 | 7 | 8 | var _hasOwnProperty = Object.prototype.hasOwnProperty; 9 | var _toString = Object.prototype.toString; 10 | 11 | 12 | function resolveYamlOmap(object /*, explicit*/) { 13 | var objectKeys = [], index, length, pair, pairKey, pairHasKey; 14 | 15 | for (index = 0, length = object.length; index < length; index += 1) { 16 | pair = object[index]; 17 | pairHasKey = false; 18 | 19 | if ('[object Object]' !== _toString.call(pair)) { 20 | return NIL; 21 | } 22 | 23 | for (pairKey in pair) { 24 | if (_hasOwnProperty.call(pair, pairKey)) { 25 | if (!pairHasKey) { 26 | pairHasKey = true; 27 | } else { 28 | return NIL; 29 | } 30 | } 31 | } 32 | 33 | if (!pairHasKey) { 34 | return NIL; 35 | } 36 | 37 | if (-1 === objectKeys.indexOf(pairKey)) { 38 | objectKeys.push(pairKey); 39 | } else { 40 | return NIL; 41 | } 42 | } 43 | 44 | return object; 45 | } 46 | 47 | 48 | module.exports = new Type('tag:yaml.org,2002:omap', { 49 | loader: { 50 | kind: 'array', 51 | resolver: resolveYamlOmap 52 | } 53 | }); 54 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/pairs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var NIL = require('../common').NIL; 5 | var Type = require('../type'); 6 | 7 | 8 | var _toString = Object.prototype.toString; 9 | 10 | 11 | function resolveYamlPairs(object /*, explicit*/) { 12 | var index, length, pair, keys, result; 13 | 14 | result = new Array(object.length); 15 | 16 | for (index = 0, length = object.length; index < length; index += 1) { 17 | pair = object[index]; 18 | 19 | if ('[object Object]' !== _toString.call(pair)) { 20 | return NIL; 21 | } 22 | 23 | keys = Object.keys(pair); 24 | 25 | if (1 !== keys.length) { 26 | return NIL; 27 | } 28 | 29 | result[index] = [ keys[0], pair[keys[0]] ]; 30 | } 31 | 32 | return result; 33 | } 34 | 35 | 36 | module.exports = new Type('tag:yaml.org,2002:pairs', { 37 | loader: { 38 | kind: 'array', 39 | resolver: resolveYamlPairs 40 | } 41 | }); 42 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/seq.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var Type = require('../type'); 5 | 6 | 7 | module.exports = new Type('tag:yaml.org,2002:seq', { 8 | loader: { 9 | kind: 'array' 10 | } 11 | }); 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/set.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var NIL = require('../common').NIL; 5 | var Type = require('../type'); 6 | 7 | 8 | var _hasOwnProperty = Object.prototype.hasOwnProperty; 9 | 10 | 11 | function resolveYamlSet(object /*, explicit*/) { 12 | var key; 13 | 14 | for (key in object) { 15 | if (_hasOwnProperty.call(object, key)) { 16 | if (null !== object[key]) { 17 | return NIL; 18 | } 19 | } 20 | } 21 | 22 | return object; 23 | } 24 | 25 | 26 | module.exports = new Type('tag:yaml.org,2002:set', { 27 | loader: { 28 | kind: 'object', 29 | resolver: resolveYamlSet 30 | } 31 | }); 32 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/lib/js-yaml/type/str.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var Type = require('../type'); 5 | 6 | 7 | module.exports = new Type('tag:yaml.org,2002:str', { 8 | loader: { 9 | kind: 'string' 10 | } 11 | }); 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/.bin/esparse: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../esprima/bin/esparse.js" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../esprima/bin/esparse.js" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/.bin/esparse.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\esprima\bin\esparse.js" %* 3 | ) ELSE ( 4 | node "%~dp0\..\esprima\bin\esparse.js" %* 5 | ) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/.bin/esvalidate: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=`dirname "$0"` 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../esprima/bin/esvalidate.js" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../esprima/bin/esvalidate.js" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/.bin/esvalidate.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\esprima\bin\esvalidate.js" %* 3 | ) ELSE ( 4 | node "%~dp0\..\esprima\bin\esvalidate.js" %* 5 | ) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (C) 2012 by Vitaly Puzrin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/arguments.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | var ArgumentParser = require('../lib/argparse').ArgumentParser; 5 | var parser = new ArgumentParser({ 6 | version: '0.0.1', 7 | addHelp: true, 8 | description: 'Argparse examples: arguments' 9 | }); 10 | parser.addArgument( 11 | [ '-f', '--foo' ], 12 | { 13 | help: 'foo bar' 14 | } 15 | ); 16 | parser.addArgument( 17 | [ '-b', '--bar' ], 18 | { 19 | help: 'bar foo' 20 | } 21 | ); 22 | 23 | 24 | parser.printHelp(); 25 | console.log('-----------'); 26 | 27 | var args; 28 | args = parser.parseArgs('-f 1 -b2'.split(' ')); 29 | console.dir(args); 30 | console.log('-----------'); 31 | args = parser.parseArgs('-f=3 --bar=4'.split(' ')); 32 | console.dir(args); 33 | console.log('-----------'); 34 | args = parser.parseArgs('--foo 5 --bar 6'.split(' ')); 35 | console.dir(args); 36 | console.log('-----------'); 37 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/choice.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | var ArgumentParser = require('../lib/argparse').ArgumentParser; 5 | var parser = new ArgumentParser({ 6 | version: '0.0.1', 7 | addHelp: true, 8 | description: 'Argparse examples: choice' 9 | }); 10 | 11 | parser.addArgument(['foo'], {choices: 'abc'}); 12 | 13 | parser.printHelp(); 14 | console.log('-----------'); 15 | 16 | var args; 17 | args = parser.parseArgs(['c']); 18 | console.dir(args); 19 | console.log('-----------'); 20 | parser.parseArgs(['X']); 21 | console.dir(args); 22 | 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/help.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | var ArgumentParser = require('../lib/argparse').ArgumentParser; 5 | var parser = new ArgumentParser({ 6 | version: '0.0.1', 7 | addHelp: true, 8 | description: 'Argparse examples: help', 9 | epilog: 'help epilog', 10 | prog: 'help_example_prog', 11 | usage: 'Usage %(prog)s ' 12 | }); 13 | parser.printHelp(); 14 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/nargs.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | var ArgumentParser = require('../lib/argparse').ArgumentParser; 5 | var parser = new ArgumentParser({ 6 | version: '0.0.1', 7 | addHelp: true, 8 | description: 'Argparse examples: nargs' 9 | }); 10 | parser.addArgument( 11 | [ '-f', '--foo' ], 12 | { 13 | help: 'foo bar', 14 | nargs: 1 15 | } 16 | ); 17 | parser.addArgument( 18 | [ '-b', '--bar' ], 19 | { 20 | help: 'bar foo', 21 | nargs: '*' 22 | } 23 | ); 24 | 25 | parser.printHelp(); 26 | console.log('-----------'); 27 | 28 | var args; 29 | args = parser.parseArgs('--foo a --bar c d'.split(' ')); 30 | console.dir(args); 31 | console.log('-----------'); 32 | args = parser.parseArgs('--bar b c f --foo a'.split(' ')); 33 | console.dir(args); 34 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/parents.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | var ArgumentParser = require('../lib/argparse').ArgumentParser; 5 | 6 | var args; 7 | var parent_parser = new ArgumentParser({ addHelp: false }); 8 | // note addHelp:false to prevent duplication of the -h option 9 | parent_parser.addArgument( 10 | ['--parent'], 11 | { type: 'int', description: 'parent' } 12 | ); 13 | 14 | var foo_parser = new ArgumentParser({ 15 | parents: [ parent_parser ], 16 | description: 'child1' 17 | }); 18 | foo_parser.addArgument(['foo']); 19 | args = foo_parser.parseArgs(['--parent', '2', 'XXX']); 20 | console.log(args); 21 | 22 | var bar_parser = new ArgumentParser({ 23 | parents: [ parent_parser ], 24 | description: 'child2' 25 | }); 26 | bar_parser.addArgument(['--bar']); 27 | args = bar_parser.parseArgs(['--bar', 'YYY']); 28 | console.log(args); 29 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/prefix_chars.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | var ArgumentParser = require('../lib/argparse').ArgumentParser; 5 | var parser = new ArgumentParser({ 6 | version: '0.0.1', 7 | addHelp: true, 8 | description: 'Argparse examples: prefix_chars', 9 | prefixChars: '-+' 10 | }); 11 | parser.addArgument(['+f', '++foo']); 12 | parser.addArgument(['++bar'], {action: 'storeTrue'}); 13 | 14 | parser.printHelp(); 15 | console.log('-----------'); 16 | 17 | var args; 18 | args = parser.parseArgs(['+f', '1']); 19 | console.dir(args); 20 | args = parser.parseArgs(['++bar']); 21 | console.dir(args); 22 | args = parser.parseArgs(['++foo', '2', '++bar']); 23 | console.dir(args); 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sub_commands.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | 4 | var ArgumentParser = require('../lib/argparse').ArgumentParser; 5 | var parser = new ArgumentParser({ 6 | version: '0.0.1', 7 | addHelp: true, 8 | description: 'Argparse examples: sub-commands' 9 | }); 10 | 11 | var subparsers = parser.addSubparsers({ 12 | title: 'subcommands', 13 | dest: "subcommand_name" 14 | }); 15 | 16 | var bar = subparsers.addParser('c1', {addHelp: true, help: 'c1 help'}); 17 | bar.addArgument( 18 | [ '-f', '--foo' ], 19 | { 20 | action: 'store', 21 | help: 'foo3 bar3' 22 | } 23 | ); 24 | var bar = subparsers.addParser( 25 | 'c2', 26 | {aliases: ['co'], addHelp: true, help: 'c2 help'} 27 | ); 28 | bar.addArgument( 29 | [ '-b', '--bar' ], 30 | { 31 | action: 'store', 32 | type: 'int', 33 | help: 'foo3 bar3' 34 | } 35 | ); 36 | parser.printHelp(); 37 | console.log('-----------'); 38 | 39 | var args; 40 | args = parser.parseArgs('c1 -f 2'.split(' ')); 41 | console.dir(args); 42 | console.log('-----------'); 43 | args = parser.parseArgs('c2 -b 1'.split(' ')); 44 | console.dir(args); 45 | console.log('-----------'); 46 | args = parser.parseArgs('co -b 1'.split(' ')); 47 | console.dir(args); 48 | console.log('-----------'); 49 | parser.parseArgs(['c1', '-h']); 50 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/examples/sum.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | 6 | var ArgumentParser = require('../lib/argparse').ArgumentParser; 7 | var parser = new ArgumentParser({ description: 'Process some integers.' }); 8 | 9 | 10 | function sum(arr) { 11 | return arr.reduce(function (a, b) { 12 | return a + b; 13 | }, 0); 14 | } 15 | function max(arr) { 16 | return Math.max.apply(Math, arr); 17 | } 18 | 19 | 20 | parser.addArgument(['integers'], { 21 | metavar: 'N', 22 | type: 'int', 23 | nargs: '+', 24 | help: 'an integer for the accumulator' 25 | }); 26 | parser.addArgument(['--sum'], { 27 | dest: 'accumulate', 28 | action: 'storeConst', 29 | constant: sum, 30 | defaultValue: max, 31 | help: 'sum the integers (default: find the max)' 32 | }); 33 | 34 | var args = parser.parseArgs('--sum 1 2 -1'.split(' ')); 35 | console.log(args.accumulate(args.integers)); 36 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/argparse'); 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/count.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionCount 3 | * 4 | * This counts the number of times a keyword argument occurs. 5 | * For example, this is useful for increasing verbosity levels 6 | * 7 | * This class inherided from [[Action]] 8 | * 9 | **/ 10 | 'use strict'; 11 | 12 | var util = require('util'); 13 | 14 | var Action = require('../action'); 15 | 16 | /*:nodoc:* 17 | * new ActionCount(options) 18 | * - options (object): options hash see [[Action.new]] 19 | * 20 | **/ 21 | var ActionCount = module.exports = function ActionCount(options) { 22 | options = options || {}; 23 | options.nargs = 0; 24 | 25 | Action.call(this, options); 26 | }; 27 | util.inherits(ActionCount, Action); 28 | 29 | /*:nodoc:* 30 | * ActionCount#call(parser, namespace, values, optionString) -> Void 31 | * - parser (ArgumentParser): current parser 32 | * - namespace (Namespace): namespace for output data 33 | * - values (Array): parsed values 34 | * - optionString (Array): input option string(not parsed) 35 | * 36 | * Call the action. Save result in namespace object 37 | **/ 38 | ActionCount.prototype.call = function (parser, namespace) { 39 | namespace.set(this.dest, (namespace[this.dest] || 0) + 1); 40 | }; 41 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/false.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionStoreFalse 3 | * 4 | * This action store the values False respectively. 5 | * This is special cases of 'storeConst' 6 | * 7 | * This class inherited from [[Action]] 8 | **/ 9 | 10 | 'use strict'; 11 | 12 | var util = require('util'); 13 | 14 | var ActionStoreConstant = require('./constant'); 15 | 16 | /*:nodoc:* 17 | * new ActionStoreFalse(options) 18 | * - options (object): hash of options see [[Action.new]] 19 | * 20 | **/ 21 | var ActionStoreFalse = module.exports = function ActionStoreFalse(options) { 22 | options = options || {}; 23 | options.constant = false; 24 | options.defaultValue = options.defaultValue !== null ? options.defaultValue: true; 25 | ActionStoreConstant.call(this, options); 26 | }; 27 | util.inherits(ActionStoreFalse, ActionStoreConstant); 28 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/action/store/true.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionStoreTrue 3 | * 4 | * This action store the values True respectively. 5 | * This isspecial cases of 'storeConst' 6 | * 7 | * This class inherited from [[Action]] 8 | **/ 9 | 'use strict'; 10 | 11 | var util = require('util'); 12 | 13 | var ActionStoreConstant = require('./constant'); 14 | 15 | /*:nodoc:* 16 | * new ActionStoreTrue(options) 17 | * - options (object): options hash see [[Action.new]] 18 | * 19 | **/ 20 | var ActionStoreTrue = module.exports = function ActionStoreTrue(options) { 21 | options = options || {}; 22 | options.constant = true; 23 | options.defaultValue = options.defaultValue !== null ? options.defaultValue: false; 24 | ActionStoreConstant.call(this, options); 25 | }; 26 | util.inherits(ActionStoreTrue, ActionStoreConstant); 27 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/argparse.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports.ArgumentParser = require('./argument_parser.js'); 4 | module.exports.Namespace = require('./namespace'); 5 | module.exports.Action = require('./action'); 6 | module.exports.HelpFormatter = require('./help/formatter.js'); 7 | module.exports.Const = require('./const.js'); 8 | 9 | module.exports.ArgumentDefaultsHelpFormatter = 10 | require('./help/added_formatters.js').ArgumentDefaultsHelpFormatter; 11 | module.exports.RawDescriptionHelpFormatter = 12 | require('./help/added_formatters.js').RawDescriptionHelpFormatter; 13 | module.exports.RawTextHelpFormatter = 14 | require('./help/added_formatters.js').RawTextHelpFormatter; 15 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/lib/const.js: -------------------------------------------------------------------------------- 1 | // 2 | // Constants 3 | // 4 | module.exports.EOL = '\n'; 5 | 6 | module.exports.SUPPRESS = '==SUPPRESS=='; 7 | 8 | module.exports.OPTIONAL = '?'; 9 | 10 | module.exports.ZERO_OR_MORE = '*'; 11 | 12 | module.exports.ONE_OR_MORE = '+'; 13 | 14 | module.exports.PARSER = 'A...'; 15 | 16 | module.exports.REMAINDER = '...'; 17 | 18 | module.exports._UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args'; 19 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | rvm: 3 | - 1.9.3 4 | 5 | before_script: 6 | - "export DISPLAY=:99.0" 7 | - "sh -e /etc/init.d/xvfb start" 8 | - sleep 2 -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem 'uglifier' 4 | gem 'rake' 5 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | execjs (1.4.0) 5 | multi_json (~> 1.0) 6 | multi_json (1.3.6) 7 | rake (0.9.2.2) 8 | uglifier (1.3.0) 9 | execjs (>= 0.3.0) 10 | multi_json (~> 1.0, >= 1.0.2) 11 | 12 | PLATFORMS 13 | ruby 14 | 15 | DEPENDENCIES 16 | rake 17 | uglifier 18 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/Rakefile: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | task default: :test 3 | 4 | desc 'Use UglifyJS to compress Underscore.string' 5 | task :build do 6 | require 'uglifier' 7 | source = File.read('lib/underscore.string.js', :encoding => 'utf-8') 8 | compressed = Uglifier.compile(source, copyright: false) 9 | File.open('dist/underscore.string.min.js', 'w'){ |f| f.write compressed } 10 | compression_rate = compressed.length.to_f/source.length 11 | puts "compressed dist/underscore.string.min.js: #{compressed.length}/#{source.length} #{(compression_rate * 100).round}%" 12 | end 13 | 14 | desc 'Run tests' 15 | task :test do 16 | puts "Running underscore.string test suite." 17 | result1 = system %{phantomjs ./test/run-qunit.js "test/test.html"} 18 | 19 | puts "Running Underscore test suite." 20 | result2 = system %{phantomjs ./test/run-qunit.js "test/test_underscore/index.html"} 21 | 22 | exit(result1 && result2 ? 0 : 1) 23 | end 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "underscore.string", 3 | "repo": "epeli/underscore.string", 4 | "description": "String manipulation extensions for Underscore.js javascript library", 5 | "version": "2.3.3", 6 | "keywords": ["underscore", "string"], 7 | "dependencies": {}, 8 | "development": {}, 9 | "main": "lib/underscore.string.js", 10 | "scripts": ["lib/underscore.string.js"] 11 | } 12 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/strings_standalone.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | 3 | module("String extensions"); 4 | 5 | test("underscore not included", function() { 6 | raises(function() { _("foo") }, /TypeError/); 7 | }); 8 | 9 | test("provides standalone functions", function() { 10 | equal(typeof _.str.trim, "function"); 11 | }); 12 | }); 13 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_standalone.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Underscore.strings Test Suite 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |

Underscore.string Test Suite

14 |

15 |

16 |
    17 | 18 | 19 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | Rakefile 3 | docs/ 4 | raw/ 5 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | notifications: 5 | email: false 6 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CNAME: -------------------------------------------------------------------------------- 1 | underscorejs.org 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## How to contribute to Underscore.js 2 | 3 | * Before you open a ticket or send a pull request, [search](https://github.com/documentcloud/underscore/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one. 4 | 5 | * Before sending a pull request for a feature, be sure to have [tests](http://underscorejs.org/test/). 6 | 7 | * Use the same coding style as the rest of the [codebase](https://github.com/documentcloud/underscore/blob/master/underscore.js). 8 | 9 | * In your pull request, do not add documentation or re-build the minified `underscore-min.js` file. We'll do those things before cutting a new release. 10 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2013 Jeremy Ashkenas, DocumentCloud 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/README.md: -------------------------------------------------------------------------------- 1 | __ 2 | /\ \ __ 3 | __ __ ___ \_\ \ __ _ __ ____ ___ ___ _ __ __ /\_\ ____ 4 | /\ \/\ \ /' _ `\ /'_ \ /'__`\/\ __\/ ,__\ / ___\ / __`\/\ __\/'__`\ \/\ \ /',__\ 5 | \ \ \_\ \/\ \/\ \/\ \ \ \/\ __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\ __/ __ \ \ \/\__, `\ 6 | \ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/ 7 | \/___/ \/_/\/_/\/__,_ /\/____/ \/_/ \/___/ \/____/\/___/ \/_/ \/____/\/_//\ \_\ \/___/ 8 | \ \____/ 9 | \/___/ 10 | 11 | Underscore.js is a utility-belt library for JavaScript that provides 12 | support for the usual functional suspects (each, map, reduce, filter...) 13 | without extending any core JavaScript objects. 14 | 15 | For Docs, License, Tests, and pre-packed downloads, see: 16 | http://underscorejs.org 17 | 18 | Many thanks to our contributors: 19 | https://github.com/documentcloud/underscore/contributors 20 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/favicon.ico -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./underscore'); 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # Authors, sorted by whether or not they are me 2 | Isaac Z. Schlueter 3 | Brian Cottingham 4 | Carlos Brito Lage 5 | Jesse Dailey 6 | Kevin O'Hara 7 | Marco Rogers 8 | Mark Cavage 9 | Marko Mikulicic 10 | Nathan Rajlich 11 | Satheesh Natesan 12 | Trent Mick 13 | ashleybrener 14 | n4kz 15 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node --expose_gc 2 | 3 | var weak = require('weak'); 4 | var test = require('tap').test 5 | var LRU = require('../') 6 | var l = new LRU({ max: 10 }) 7 | var refs = 0 8 | function X() { 9 | refs ++ 10 | weak(this, deref) 11 | } 12 | 13 | function deref() { 14 | refs -- 15 | } 16 | 17 | test('no leaks', function (t) { 18 | // fill up the cache 19 | for (var i = 0; i < 100; i++) { 20 | l.set(i, new X); 21 | // throw some gets in there, too. 22 | if (i % 2 === 0) 23 | l.get(i / 2) 24 | } 25 | 26 | gc() 27 | 28 | var start = process.memoryUsage() 29 | 30 | // capture the memory 31 | var startRefs = refs 32 | 33 | // do it again, but more 34 | for (var i = 0; i < 10000; i++) { 35 | l.set(i, new X); 36 | // throw some gets in there, too. 37 | if (i % 2 === 0) 38 | l.get(i / 2) 39 | } 40 | 41 | gc() 42 | 43 | var end = process.memoryUsage() 44 | t.equal(refs, startRefs, 'no leaky refs') 45 | 46 | console.error('start: %j\n' + 47 | 'end: %j', start, end); 48 | t.pass(); 49 | t.end(); 50 | }) 51 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/node_modules/sigmund/test/basic.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var sigmund = require('../sigmund.js') 3 | 4 | 5 | // occasionally there are duplicates 6 | // that's an acceptable edge-case. JSON.stringify and util.inspect 7 | // have some collision potential as well, though less, and collision 8 | // detection is expensive. 9 | var hash = '{abc/def/g{0h1i2{jkl' 10 | var obj1 = {a:'b',c:/def/,g:['h','i',{j:'',k:'l'}]} 11 | var obj2 = {a:'b',c:'/def/',g:['h','i','{jkl']} 12 | 13 | var obj3 = JSON.parse(JSON.stringify(obj1)) 14 | obj3.c = /def/ 15 | obj3.g[2].cycle = obj3 16 | var cycleHash = '{abc/def/g{0h1i2{jklcycle' 17 | 18 | test('basic', function (t) { 19 | t.equal(sigmund(obj1), hash) 20 | t.equal(sigmund(obj2), hash) 21 | t.equal(sigmund(obj3), cycleHash) 22 | t.end() 23 | }) 24 | 25 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/test/brace-expand.js: -------------------------------------------------------------------------------- 1 | var tap = require("tap") 2 | , minimatch = require("../") 3 | 4 | tap.test("brace expansion", function (t) { 5 | // [ pattern, [expanded] ] 6 | ; [ [ "a{b,c{d,e},{f,g}h}x{y,z}" 7 | , [ "abxy" 8 | , "abxz" 9 | , "acdxy" 10 | , "acdxz" 11 | , "acexy" 12 | , "acexz" 13 | , "afhxy" 14 | , "afhxz" 15 | , "aghxy" 16 | , "aghxz" ] ] 17 | , [ "a{1..5}b" 18 | , [ "a1b" 19 | , "a2b" 20 | , "a3b" 21 | , "a4b" 22 | , "a5b" ] ] 23 | , [ "a{b}c", ["a{b}c"] ] 24 | ].forEach(function (tc) { 25 | var p = tc[0] 26 | , expect = tc[1] 27 | t.equivalent(minimatch.braceExpand(p), expect, p) 28 | }) 29 | console.error("ending") 30 | t.end() 31 | }) 32 | 33 | 34 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/test/caching.js: -------------------------------------------------------------------------------- 1 | var Minimatch = require("../minimatch.js").Minimatch 2 | var tap = require("tap") 3 | tap.test("cache test", function (t) { 4 | var mm1 = new Minimatch("a?b") 5 | var mm2 = new Minimatch("a?b") 6 | t.equal(mm1, mm2, "should get the same object") 7 | // the lru should drop it after 100 entries 8 | for (var i = 0; i < 100; i ++) { 9 | new Minimatch("a"+i) 10 | } 11 | mm2 = new Minimatch("a?b") 12 | t.notEqual(mm1, mm2, "cache should have dropped") 13 | t.end() 14 | }) 15 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/minimatch/test/extglob-ending-with-state-char.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var minimatch = require('../') 3 | 4 | test('extglob ending with statechar', function(t) { 5 | t.notOk(minimatch('ax', 'a?(b*)')) 6 | t.ok(minimatch('ax', '?(a*|b)')) 7 | t.end() 8 | }) 9 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/nopt/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/nopt/.npmignore -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/nopt/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/nopt/examples/my-program.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | //process.env.DEBUG_NOPT = 1 4 | 5 | // my-program.js 6 | var nopt = require("../lib/nopt") 7 | , Stream = require("stream").Stream 8 | , path = require("path") 9 | , knownOpts = { "foo" : [String, null] 10 | , "bar" : [Stream, Number] 11 | , "baz" : path 12 | , "bloo" : [ "big", "medium", "small" ] 13 | , "flag" : Boolean 14 | , "pick" : Boolean 15 | } 16 | , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] 17 | , "b7" : ["--bar", "7"] 18 | , "m" : ["--bloo", "medium"] 19 | , "p" : ["--pick"] 20 | , "f" : ["--flag", "true"] 21 | , "g" : ["--flag"] 22 | , "s" : "--flag" 23 | } 24 | // everything is optional. 25 | // knownOpts and shorthands default to {} 26 | // arg list defaults to process.argv 27 | // slice defaults to 2 28 | , parsed = nopt(knownOpts, shortHands, process.argv, 2) 29 | 30 | console.log("parsed =\n"+ require("util").inspect(parsed)) 31 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/nopt/node_modules/abbrev/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/nopt/node_modules/abbrev/README.md: -------------------------------------------------------------------------------- 1 | # abbrev-js 2 | 3 | Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). 4 | 5 | Usage: 6 | 7 | var abbrev = require("abbrev"); 8 | abbrev("foo", "fool", "folding", "flop"); 9 | 10 | // returns: 11 | { fl: 'flop' 12 | , flo: 'flop' 13 | , flop: 'flop' 14 | , fol: 'folding' 15 | , fold: 'folding' 16 | , foldi: 'folding' 17 | , foldin: 'folding' 18 | , folding: 'folding' 19 | , foo: 'foo' 20 | , fool: 'fool' 21 | } 22 | 23 | This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/AUTHORS: -------------------------------------------------------------------------------- 1 | # Authors sorted by whether or not they're me. 2 | Isaac Z. Schlueter (http://blog.izs.me) 3 | Wayne Larsen (http://github.com/wvl) 4 | ritch 5 | Marcel Laverdet 6 | Yosef Dinerstein 7 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/README.md: -------------------------------------------------------------------------------- 1 | A `rm -rf` for node. 2 | 3 | Install with `npm install rimraf`, or just drop rimraf.js somewhere. 4 | 5 | ## API 6 | 7 | `rimraf(f, callback)` 8 | 9 | The callback will be called with an error if there is one. Certain 10 | errors are handled for you: 11 | 12 | * `EBUSY` - rimraf will back off a maximum of opts.maxBusyTries times 13 | before giving up. 14 | * `EMFILE` - If too many file descriptors get opened, rimraf will 15 | patiently wait until more become available. 16 | 17 | 18 | ## rimraf.sync 19 | 20 | It can remove stuff synchronously, too. But that's not so good. Use 21 | the async API. It's better. 22 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/README.md: -------------------------------------------------------------------------------- 1 | Just like node's `fs` module, but it does an incremental back-off when 2 | EMFILE is encountered. 3 | 4 | Useful in asynchronous situations where one needs to try to open lots 5 | and lots of files. 6 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/node_modules/graceful-fs/test/open.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var fs = require('../graceful-fs.js') 3 | 4 | test('open an existing file works', function (t) { 5 | var start = fs._curOpen 6 | var fd = fs.openSync(__filename, 'r') 7 | t.equal(fs._curOpen, start + 1) 8 | fs.closeSync(fd) 9 | t.equal(fs._curOpen, start) 10 | fs.open(__filename, 'r', function (er, fd) { 11 | if (er) throw er 12 | t.equal(fs._curOpen, start + 1) 13 | fs.close(fd, function (er) { 14 | if (er) throw er 15 | t.equal(fs._curOpen, start) 16 | t.end() 17 | }) 18 | }) 19 | }) 20 | 21 | test('open a non-existing file throws', function (t) { 22 | var start = fs._curOpen 23 | var er 24 | try { 25 | var fd = fs.openSync('this file does not exist', 'r') 26 | } catch (x) { 27 | er = x 28 | } 29 | t.ok(er, 'should throw') 30 | t.notOk(fd, 'should not get an fd') 31 | t.equal(er.code, 'ENOENT') 32 | t.equal(fs._curOpen, start) 33 | 34 | fs.open('neither does this file', 'r', function (er, fd) { 35 | t.ok(er, 'should throw') 36 | t.notOk(fd, 'should not get an fd') 37 | t.equal(er.code, 'ENOENT') 38 | t.equal(fs._curOpen, start) 39 | t.end() 40 | }) 41 | }) 42 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/test/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | for i in test-*.js; do 4 | echo -n $i ... 5 | bash setup.sh 6 | node $i 7 | ! [ -d target ] 8 | echo "pass" 9 | done 10 | rm -rf target 11 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/test/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | files=10 6 | folders=2 7 | depth=4 8 | target="$PWD/target" 9 | 10 | rm -rf target 11 | 12 | fill () { 13 | local depth=$1 14 | local files=$2 15 | local folders=$3 16 | local target=$4 17 | 18 | if ! [ -d $target ]; then 19 | mkdir -p $target 20 | fi 21 | 22 | local f 23 | 24 | f=$files 25 | while [ $f -gt 0 ]; do 26 | touch "$target/f-$depth-$f" 27 | let f-- 28 | done 29 | 30 | let depth-- 31 | 32 | if [ $depth -le 0 ]; then 33 | return 0 34 | fi 35 | 36 | f=$folders 37 | while [ $f -gt 0 ]; do 38 | mkdir "$target/folder-$depth-$f" 39 | fill $depth $files $folders "$target/d-$depth-$f" 40 | let f-- 41 | done 42 | } 43 | 44 | fill $depth $files $folders $target 45 | 46 | # sanity assert 47 | [ -d $target ] 48 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/test/test-async.js: -------------------------------------------------------------------------------- 1 | var rimraf = require("../rimraf") 2 | , path = require("path") 3 | rimraf(path.join(__dirname, "target"), function (er) { 4 | if (er) throw er 5 | }) 6 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/test/test-fiber.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MisterJames/CollidR/e08ea1e027c1608ceb8d04593d986b01f001c659/tools/node/node_modules/grunt/node_modules/rimraf/test/test-fiber.js -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/rimraf/test/test-sync.js: -------------------------------------------------------------------------------- 1 | var rimraf = require("../rimraf") 2 | , path = require("path") 3 | rimraf.sync(path.join(__dirname, "target")) 4 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/underscore.string/.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | rvm: 3 | - 1.9.3 4 | 5 | before_script: 6 | - "export DISPLAY=:99.0" 7 | - "sh -e /etc/init.d/xvfb start" 8 | - sleep 2 -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/underscore.string/Gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | 3 | gem 'serve' 4 | gem 'uglifier' 5 | gem 'rake' -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/underscore.string/Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: http://rubygems.org/ 3 | specs: 4 | activesupport (3.2.3) 5 | i18n (~> 0.6) 6 | multi_json (~> 1.0) 7 | execjs (1.3.0) 8 | multi_json (~> 1.0) 9 | i18n (0.6.0) 10 | multi_json (1.2.0) 11 | rack (1.4.1) 12 | rack-test (0.6.1) 13 | rack (>= 1.0) 14 | rake (0.9.2.2) 15 | serve (1.5.1) 16 | activesupport (~> 3.0) 17 | i18n 18 | rack (~> 1.2) 19 | rack-test (~> 0.5) 20 | tilt (~> 1.3) 21 | tzinfo 22 | tilt (1.3.3) 23 | tzinfo (0.3.33) 24 | uglifier (1.2.4) 25 | execjs (>= 0.3.0) 26 | multi_json (>= 1.0.2) 27 | 28 | PLATFORMS 29 | ruby 30 | 31 | DEPENDENCIES 32 | rake 33 | serve 34 | uglifier 35 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/underscore.string/Rakefile: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | task default: :test 3 | 4 | desc 'Use UglifyJS to compress Underscore.string' 5 | task :build do 6 | require 'uglifier' 7 | source = File.read('lib/underscore.string.js') 8 | compressed = Uglifier.compile(source, copyright: false) 9 | File.open('dist/underscore.string.min.js', 'w'){ |f| f.write compressed } 10 | compression_rate = compressed.length.to_f/source.length 11 | puts "compressed dist/underscore.string.min.js: #{compressed.length}/#{source.length} #{(compression_rate * 100).round}%" 12 | end 13 | 14 | desc 'Run tests' 15 | task :test do 16 | pid = spawn('bundle exec serve', err: '/dev/null') 17 | sleep 2 18 | 19 | puts "Running underscore.string test suite." 20 | result1 = system %{phantomjs ./test/run-qunit.js "http://localhost:4000/test/test.html"} 21 | 22 | puts "Running Underscore test suite." 23 | result2 = system %{phantomjs ./test/run-qunit.js "http://localhost:4000/test/test_underscore/test.html"} 24 | 25 | Process.kill 'INT', pid 26 | 27 | exit(result1 && result2 ? 0 : 1) 28 | end -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/underscore.string/test/run-qunit.js: -------------------------------------------------------------------------------- 1 | function waitFor(test, complete, timeout) { 2 | var result, start = new Date().getTime() 3 | setInterval(function interval() { 4 | if ((new Date().getTime() - start < timeout) && !result) { 5 | result = test() 6 | } else { 7 | if (!result) { 8 | phantom.exit(1) 9 | } else { 10 | complete() 11 | clearInterval(interval) 12 | } 13 | } 14 | }, 100) 15 | } 16 | 17 | 18 | var page = new WebPage() 19 | 20 | page.onConsoleMessage = function(msg) { 21 | console.log(msg) 22 | } 23 | 24 | page.open(phantom.args[0], function(status) { 25 | waitFor(function() { 26 | return page.evaluate(function(){ 27 | var el = document.getElementById('qunit-testresult') 28 | return el && el.innerText.match('completed') 29 | }) 30 | }, function() { 31 | var failures = page.evaluate(function() { 32 | var el = document.getElementById('qunit-testresult'), 33 | fails = document.getElementsByClassName('fail') 34 | 35 | for (var i = 0; i < fails.length; i++) 36 | console.log(fails[i].innerText) 37 | 38 | console.log(el.innerText) 39 | 40 | return parseInt(el.getElementsByClassName('failed')[0].innerHTML) 41 | }) 42 | phantom.exit(failures > 0 ? 1 : 0) 43 | }, 10000) 44 | }) -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/underscore.string/test/strings_standalone.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | 3 | module("String extensions"); 4 | 5 | test("underscore not included", function() { 6 | raises(function() { _("foo") }, /TypeError/); 7 | }); 8 | 9 | test("provides standalone functions", function() { 10 | equals(typeof _.str.trim, "function"); 11 | }); 12 | }); 13 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/underscore.string/test/test_standalone.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Underscore.strings Test Suite 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |

    Underscore.string Test Suite

    14 |

    15 |

    16 |
      17 | 18 | 19 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | var func = function(){}; 4 | var date = new Date(); 5 | var str = "a string"; 6 | var numbers = []; 7 | for (var i=0; i<1000; i++) numbers.push(i); 8 | var objects = _.map(numbers, function(n){ return {num : n}; }); 9 | var randomized = _.sortBy(numbers, function(){ return Math.random(); }); 10 | 11 | JSLitmus.test('_.isNumber', function() { 12 | return _.isNumber(1000) 13 | }); 14 | 15 | JSLitmus.test('_.newIsNumber', function() { 16 | return _.newIsNumber(1000) 17 | }); 18 | 19 | JSLitmus.test('_.isNumber(NaN)', function() { 20 | return _.isNumber(NaN) 21 | }); 22 | 23 | JSLitmus.test('_.newIsNumber(NaN)', function() { 24 | return _.newIsNumber(NaN) 25 | }); 26 | 27 | })(); -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/underscore.string/test/test_underscore/temp_tests.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Underscore Temporary Tests 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

      Underscore Temporary Tests

      13 |

      14 | A page for temporary speed tests, used for developing faster implementations 15 | of existing Underscore methods. 16 |

      17 |
      18 | 19 | 20 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/which/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/which/README.md: -------------------------------------------------------------------------------- 1 | The "which" util from npm's guts. 2 | 3 | Finds the first instance of a specified executable in the PATH 4 | environment variable. Does not cache the results, so `hash -r` is not 5 | needed when the PATH changes. 6 | -------------------------------------------------------------------------------- /tools/node/node_modules/grunt/node_modules/which/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "Isaac Z. Schlueter", 4 | "email": "i@izs.me", 5 | "url": "http://blog.izs.me" 6 | }, 7 | "name": "which", 8 | "description": "Like which(1) unix command. Find the first instance of an executable in the PATH.", 9 | "version": "1.0.5", 10 | "repository": { 11 | "type": "git", 12 | "url": "git://github.com/isaacs/node-which.git" 13 | }, 14 | "main": "which.js", 15 | "bin": { 16 | "which": "./bin/which" 17 | }, 18 | "engines": { 19 | "node": "*" 20 | }, 21 | "dependencies": {}, 22 | "devDependencies": {}, 23 | "readme": "The \"which\" util from npm's guts.\n\nFinds the first instance of a specified executable in the PATH\nenvironment variable. Does not cache the results, so `hash -r` is not\nneeded when the PATH changes.\n", 24 | "readmeFilename": "README.md", 25 | "bugs": { 26 | "url": "https://github.com/isaacs/node-which/issues" 27 | }, 28 | "homepage": "https://github.com/isaacs/node-which", 29 | "_id": "which@1.0.5", 30 | "dist": { 31 | "shasum": "e26ce1172dff1967dcf696abf0e9a17b59ac0c66" 32 | }, 33 | "_from": "which@~1.0.5", 34 | "_resolved": "https://registry.npmjs.org/which/-/which-1.0.5.tgz" 35 | } 36 | --------------------------------------------------------------------------------