Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 1564535

Browse files
committed
Merge pull request #7 from nblum/feature/NonSingletonPluginManager
Changed PluginManager Module to return a constructor instead of a singleton so multiple instances may be created on one page (e.g. when writing CMS Modules)
2 parents 7cefb50 + 169f3fa commit 1564535

27 files changed

+87
-134
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function (grunt) {
1313
mnty: {
1414
options: {
1515
baseUrl: 'src',
16-
name: 'AutoLoader',
16+
name: 'AutoLoader',git
1717
out: 'dist/mnty.js',
1818
optimize: 'uglify2',
1919
preserveLicenseComments: true,

README.md

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -338,51 +338,7 @@ Building means all js files will be packed together to one minified file.
338338
This reduces the page load time of your web page.
339339

340340
### Building your project with grunt
341-
The easiest way is to use the [grunt-mntyjs](https://www.npmjs.com/package/grunt-mntyjs) package.
342-
343-
- install grunt-cli ```npm install -g grunt-cli```
344-
- install grunt-mntyjs ```npm install bitexpert/mntyjs --save-dev```
345-
346-
Create a basic grunt file
347-
```js
348-
module.exports = function (grunt) {
349-
'use strict';
350-
351-
grunt.loadNpmTasks('grunt-mntyjs');
352-
353-
grunt.initConfig({
354-
mntyjs: {
355-
files: ['path/to/html/files/**/*.html'],
356-
options: {
357-
baseUrl: './',
358-
deps: ['bower_components/mntyjs/dist/mnty.js'],
359-
loadFrom: 'relative/path/to/plugin/folder/',
360-
mountPoint: 'mount',
361-
out: 'path/to/production/file/main.js'
362-
}
363-
}
364-
});
365-
grunt.registerTask('build', [
366-
'mntyjs'
367-
]);
368-
};
369-
```
370-
371-
Run ```grunt build``` to build the production file.
372-
The grunt task will find all used plugins (in the file urls) and it's dependencies.
373-
374-
If paths cannot be resolved due the usage of a config file. It is possible to add
375-
the path and shim config directly to the options.
376-
377-
```js
378-
options: {
379-
paths: {
380-
#the path has to be relative from the grunt file
381-
'bar': 'bower_components/foo/bar'
382-
}
383-
}
384-
```
385-
341+
The easiest way is to use the [grunt-mntyjs](https://github.com/bitExpert/grunt-mntyjs) [package](https://www.npmjs.com/package/grunt-mntyjs).
386342

387343

388344

dist/mnty.dev.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mnty.dev.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mnty.js

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/Base.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ <h1 class="page-title">Class: Base</h1>
2828

2929
<header>
3030

31-
<h2>
32-
Base
33-
</h2>
31+
<h2>Base</h2>
3432

3533

3634
</header>
@@ -454,7 +452,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Fn
454452
<br class="clear">
455453

456454
<footer>
457-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-beta3</a> on Mon Apr 27 2015 14:21:30 GMT+0200 (CEST)
455+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Thu Apr 28 2016 11:56:36 GMT+0200 (CEST)
458456
</footer>
459457

460458
<script> prettyPrint(); </script>

doc/Base.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Fn
198198
<br class="clear">
199199

200200
<footer>
201-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-beta3</a> on Mon Apr 27 2015 14:21:30 GMT+0200 (CEST)
201+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Thu Apr 28 2016 11:56:36 GMT+0200 (CEST)
202202
</footer>
203203

204204
<script> prettyPrint(); </script>

doc/FnUtils.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Fn
8989
<br class="clear">
9090

9191
<footer>
92-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-beta3</a> on Mon Apr 27 2015 14:21:30 GMT+0200 (CEST)
92+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Thu Apr 28 2016 11:56:36 GMT+0200 (CEST)
9393
</footer>
9494

9595
<script> prettyPrint(); </script>

doc/Logging.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Fn
6161
<br class="clear">
6262

6363
<footer>
64-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-beta3</a> on Mon Apr 27 2015 14:21:30 GMT+0200 (CEST)
64+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Thu Apr 28 2016 11:56:36 GMT+0200 (CEST)
6565
</footer>
6666

6767
<script> prettyPrint(); </script>

doc/Observable.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ <h1 class="page-title">Class: Observable</h1>
2828

2929
<header>
3030

31-
<h2>
32-
Observable
33-
</h2>
31+
<h2>Observable</h2>
3432

3533

3634
</header>
@@ -1711,7 +1709,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-Fn
17111709
<br class="clear">
17121710

17131711
<footer>
1714-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-beta3</a> on Mon Apr 27 2015 14:21:30 GMT+0200 (CEST)
1712+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Thu Apr 28 2016 11:56:36 GMT+0200 (CEST)
17151713
</footer>
17161714

17171715
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)