Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Aug 2, 2019
1 parent 6d4199e commit e4f44c0
Show file tree
Hide file tree
Showing 24 changed files with 148 additions and 88 deletions.
131 changes: 81 additions & 50 deletions docs/05-plugin-development.md

Large diffs are not rendered by default.

@@ -0,0 +1,10 @@
define(['exports', '../generated-chunk'], function (exports, dep) { 'use strict';

const id = 'startBuild';
console.log(id, dep.value);

exports.id = id;

Object.defineProperty(exports, '__esModule', { value: true });

});
@@ -0,0 +1,7 @@
define(['./generated-chunk', './custom/build-start-chunk'], function (dep, buildStart) { 'use strict';

console.log(buildStart.id);

console.log('main', dep.value);

});
@@ -0,0 +1,10 @@
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var dep = require('../generated-chunk.js');

const id = 'startBuild';
console.log(id, dep.value);

exports.id = id;
@@ -1,5 +1,8 @@
'use strict';

var dep = require('./generated-chunk.js');
var buildStart = require('./custom/build-start-chunk.js');

console.log(buildStart.id);

console.log('main', dep.value);
@@ -0,0 +1,6 @@
import { v as value } from '../generated-chunk.js';

const id = 'startBuild';
console.log(id, value);

export { id };
@@ -1,3 +1,6 @@
import { v as value } from './generated-chunk.js';
import { id } from './custom/build-start-chunk.js';

console.log(id);

console.log('main', value);
@@ -1,4 +1,4 @@
System.register(['../generated-chunk.js'], function () {
System.register(['../generated-chunk.js'], function (exports) {
'use strict';
var value;
return {
Expand All @@ -7,7 +7,8 @@ System.register(['../generated-chunk.js'], function () {
}],
execute: function () {

console.log('startBuild', value);
const id = exports('id', 'startBuild');
console.log(id, value);

}
};
Expand Down
@@ -0,0 +1,18 @@
System.register(['./generated-chunk.js', './custom/build-start-chunk.js'], function () {
'use strict';
var value, id;
return {
setters: [function (module) {
value = module.v;
}, function (module) {
id = module.id;
}],
execute: function () {

console.log(id);

console.log('main', value);

}
};
});
@@ -0,0 +1,3 @@
import value from './dep.js';
export const id = 'startBuild';
console.log(id, value);
@@ -0,0 +1,3 @@
import { id } from './buildStart.js';

console.log(id);
@@ -1,3 +1,3 @@
import value from './dep.js';

import './dep2.js';
console.log('main', value);

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit e4f44c0

Please sign in to comment.