From 55d748faaf8cc7963a62770fca83342bd0660863 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 8 Oct 2012 22:39:22 +0200 Subject: [PATCH] Readme and license --- LICENSE | 22 ++++++++++++++++++++++ README.md | 19 ++++++++++++------- lib/Workers.js | 4 ++++ lib/buildModule.js | 4 ++++ lib/worker.js | 4 ++++ 5 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..7b27f65df --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2012 Tobias Koppers + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 4f2bd2400..df7a4723a 100644 --- a/README.md +++ b/README.md @@ -572,22 +572,27 @@ else `stats` as json: "main": "output.js", "namedChunk": "1.output.js" } + dependencies: [ "filename", ... ], + loaders: [ "filename of loader", ... ] + contexts: [ "dirname of context", ... ] warnings: [ "Some warning" ], errors: [ "Some error" ], fileModules: { "output.js": [ - { id: 0, size: 123, filename: "/home/.../main.js", reasons: [ - { type: "main" } - ], + { + id: 0, + size: 123, + filename: "/home/.../main.js", + reasons: [ { type: "main" } ], dependencies: [ "filename", ... ], loaders: [ "filename of loader", ... ] }, { id: 1, size: 234, filename: "...", reasons: [ { type: "require", // or "context", "async require", "async context" - count: 2, - filename: "/home/.../main.js", - // or dirname: "..." // for type = "context" or "async context" - } + count: 2, + filename: "/home/.../main.js", + // additionally: dirname: "..." // for type = "context" or "async context" + } ]}, ... ], diff --git a/lib/Workers.js b/lib/Workers.js index 7eb1a7fe0..56a69e7db 100644 --- a/lib/Workers.js +++ b/lib/Workers.js @@ -1,3 +1,7 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ var child_process = require("child_process"); function Workers(moduleToFork, count) { diff --git a/lib/buildModule.js b/lib/buildModule.js index 7133e5c7a..bf7575a9d 100644 --- a/lib/buildModule.js +++ b/lib/buildModule.js @@ -1,3 +1,7 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ var fs = require("fs"); var parse = require("./parse"); var execLoaders = require("enhanced-require/lib/execLoaders"); diff --git a/lib/worker.js b/lib/worker.js index b4939ca36..5e04a3163 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -1,3 +1,7 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ var buildModule = require("./buildModule"); var resolve = require("enhanced-resolve");