Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #31 from mediamonks/feature/dist-bundle
Browse files Browse the repository at this point in the history
Create separate entry points for different builds
  • Loading branch information
ThaNarie authored Jul 16, 2016
2 parents 7338955 + 99cf896 commit 994d887
Show file tree
Hide file tree
Showing 17 changed files with 514 additions and 15 deletions.
1 change: 1 addition & 0 deletions config/tsconfig.webpack.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"preserveConstEnums": true,
"noImplicitAny": false,
"removeComments": false,
"noEmitHelpers": true,
"sourceMap": false,
"inlineSourceMap": false,
"outDir": "./"
Expand Down
9 changes: 6 additions & 3 deletions config/webpack.config.js → config/webpack.config.dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ module.exports = function()
resolve: {
extensions: ['', '.ts', '.js']
},

// entry is the "main" source file we want to include/import
entry: [
'./src/index.ts'
],
entry: './src/bundle.ts',

// externals let you tell webpack about external dependencies
// that shouldn't be resolved by webpack.
externals: [
Expand All @@ -28,13 +28,15 @@ module.exports = function()
//}
}
],

// output tells webpack where to put the bundle it creates
output: {
// in the case of a "plain global browser library", this
// will be used as the reference to our module that is
// hung off of the window object.
library: "SengBoilerplate"
},

module: {
loaders: [
{
Expand All @@ -47,6 +49,7 @@ module.exports = function()
}
]
},

plugins: [],
stats: {
colors: true
Expand Down
2 changes: 0 additions & 2 deletions config/webpack.config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ module.exports = function()
// entry is the "main" source file we want to include/import
entry: './test/index.ts',

verbose: true,

module: {
loaders: [
/**
Expand Down
2 changes: 1 addition & 1 deletion doc/typedoc/assets/js/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

264 changes: 264 additions & 0 deletions doc/typedoc/classes/_lib_dummy_.dummy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dummy | seng-boilerplate</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<script src="../assets/js/modernizr.js"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">seng-boilerplate</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="../modules/_lib_dummy_.html">&quot;lib/Dummy&quot;</a>
</li>
<li>
<a href="_lib_dummy_.dummy.html">Dummy</a>
</li>
</ul>
<h1>Class Dummy</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Test file for code coverage checks
This file is not covered by any tests, but should show up in code coverage
results as a very low coverage percentage.</p>
</div>
<dl class="tsd-comment-tags">
<dt>namespace</dt>
<dd><p>example</p>
</dd>
<dt>class</dt>
<dd><p>Dummy</p>
</dd>
<dt>constructor</dt>
<dd></dd>
</dl>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">Dummy</span>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_lib_dummy_.dummy.html#foo" class="tsd-kind-icon">foo</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="foo" class="tsd-anchor"></a>
<h3>foo</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">foo<span class="tsd-signature-symbol">(</span>str<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mediamonks/seng-boilerplate/blob/7338955/src/lib/Dummy.ts#L19">lib/Dummy.ts:19</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Returns a value!</p>
</div>
<dl class="tsd-comment-tags">
<dt>method</dt>
<dd><p>foo</p>
</dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> str: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>The input string</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class="label tsd-is-external">
<span>Internals</span>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_index_.html">"index"</a>
</li>
<li class="current tsd-kind-external-module">
<a href="../modules/_lib_dummy_.html">"lib/<wbr>Dummy"</a>
</li>
<li class="label tsd-is-external">
<span>Externals</span>
</li>
<li class=" tsd-kind-external-module tsd-is-external">
<a href="../modules/_lib_example_.html">"lib/<wbr>Example"</a>
</li>
<li class=" tsd-kind-external-module tsd-is-external">
<a href="../modules/_lib_iexample_.html">"lib/IExample"</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
</ul>
<ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-external-module">
<a href="_lib_dummy_.dummy.html" class="tsd-kind-icon">Dummy</a>
<ul>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_lib_dummy_.dummy.html#foo" class="tsd-kind-icon">foo</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="http://typedoc.io" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>
5 changes: 4 additions & 1 deletion doc/typedoc/classes/_lib_example_.example.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3>foo</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mediamonks/seng-boilerplate/blob/60cf85a/src/lib/Example.ts#L15">lib/Example.ts:15</a></li>
<li>Defined in <a href="https://github.com/mediamonks/seng-boilerplate/blob/7338955/src/lib/Example.ts#L15">lib/Example.ts:15</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -157,6 +157,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
<li class=" tsd-kind-external-module">
<a href="../modules/_index_.html">"index"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_lib_dummy_.html">"lib/<wbr>Dummy"</a>
</li>
<li class="label tsd-is-external">
<span>Externals</span>
</li>
Expand Down
4 changes: 4 additions & 0 deletions doc/typedoc/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ <h2>Index</h2>
<h3>External modules</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-external-module"><a href="modules/_index_.html" class="tsd-kind-icon">"index"</a></li>
<li class="tsd-kind-external-module"><a href="modules/_lib_dummy_.html" class="tsd-kind-icon">"lib/<wbr>Dummy"</a></li>
<li class="tsd-kind-external-module tsd-is-external"><a href="modules/_lib_example_.html" class="tsd-kind-icon">"lib/<wbr>Example"</a></li>
<li class="tsd-kind-external-module tsd-is-external"><a href="modules/_lib_iexample_.html" class="tsd-kind-icon">"lib/IExample"</a></li>
</ul>
Expand All @@ -92,6 +93,9 @@ <h3>External modules</h3>
<li class=" tsd-kind-external-module">
<a href="modules/_index_.html">"index"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="modules/_lib_dummy_.html">"lib/<wbr>Dummy"</a>
</li>
<li class="label tsd-is-external">
<span>Externals</span>
</li>
Expand Down
3 changes: 3 additions & 0 deletions doc/typedoc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ <h3 id="npm">NPM</h3>
<li class=" tsd-kind-external-module">
<a href="modules/_index_.html">"index"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="modules/_lib_dummy_.html">"lib/<wbr>Dummy"</a>
</li>
<li class="label tsd-is-external">
<span>Externals</span>
</li>
Expand Down
5 changes: 4 additions & 1 deletion doc/typedoc/interfaces/_lib_iexample_.iexample.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h3>foo</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/mediamonks/seng-boilerplate/blob/60cf85a/src/lib/IExample.ts#L13">lib/IExample.ts:13</a></li>
<li>Defined in <a href="https://github.com/mediamonks/seng-boilerplate/blob/7338955/src/lib/IExample.ts#L13">lib/IExample.ts:13</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -152,6 +152,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</s
<li class=" tsd-kind-external-module">
<a href="../modules/_index_.html">"index"</a>
</li>
<li class=" tsd-kind-external-module">
<a href="../modules/_lib_dummy_.html">"lib/<wbr>Dummy"</a>
</li>
<li class="label tsd-is-external">
<span>Externals</span>
</li>
Expand Down
Loading

0 comments on commit 994d887

Please sign in to comment.