Browse Source

Readme and license

pull/33/head
Tobias Koppers 10 years ago
parent
commit
55d748faaf
  1. 22
      LICENSE
  2. 19
      README.md
  3. 4
      lib/Workers.js
  4. 4
      lib/buildModule.js
  5. 4
      lib/worker.js

22
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.

19
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"
}
]},
...
],

4
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) {

4
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");

4
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");

Loading…
Cancel
Save