From c0b46d0722f823bcd4fcbca5848de4b085dd99f7 Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Fri, 1 Jan 2016 13:44:12 -0800 Subject: [PATCH 1/2] Add list of all valid builder options I know that some of these options (most?) are scattered throughout the ReadMe, but it's quite common to see a full list of configuration options when interacting with third-party tools. I'm constantly digging into builder's source to look for these options. Plus, it would be nice to be able to link directly to all possible options inside of my Gulp task. This could probably be cleaned up a lot and/or turned into more valid documentation. If you think it's worth doing that instead, feel free to reject this and I'll open an issue. --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 116d1ae..593cf2d 100644 --- a/README.md +++ b/README.md @@ -283,6 +283,28 @@ Promise.all([builder.trace('app/first.js'), builder.trace('app/second.js')]) }); ``` +#### Options + +A full list of options and their corresponding defaults is provided below: + +```javascript +entryPoints: [], +normalize: true, +anonymous: false, +systemGlobal: 'System', +buildConfig: false, +inlinePlugins: true, +static: false, +encodeNames: undefined, +sourceMaps: false, +lowResSourceMaps: false, +runtime: false, +format: 'global', +globalDeps: {}, +globalName: null, +minify: false +``` + License --- From 0e992903fad954e6d8ecc1772c9dd186ad2005d6 Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Fri, 1 Jan 2016 13:48:18 -0800 Subject: [PATCH 2/2] Provide clarity for static build defaults Some defaults are different when making static builds. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 593cf2d..7518099 100644 --- a/README.md +++ b/README.md @@ -295,9 +295,11 @@ systemGlobal: 'System', buildConfig: false, inlinePlugins: true, static: false, +// encodeNames' default is true for static builds: encodeNames: undefined, sourceMaps: false, lowResSourceMaps: false, +// runtime's default is true for static builds: runtime: false, format: 'global', globalDeps: {},