Commit b1604999 authored by techird's avatar techird

add expose file

parent 0c98c607
...@@ -26,7 +26,7 @@ module.exports = function(grunt) { ...@@ -26,7 +26,7 @@ module.exports = function(grunt) {
' * ====================================================\n' + ' * ====================================================\n' +
' */\n\n'; ' */\n\n';
var expose = '\nuse(\'kityminder\');\n'; var expose = '\nuse(\'expose\');\n';
// Project configuration. // Project configuration.
grunt.initConfig({ grunt.initConfig({
...@@ -42,7 +42,7 @@ module.exports = function(grunt) { ...@@ -42,7 +42,7 @@ module.exports = function(grunt) {
dependence: { dependence: {
options: { options: {
base: 'src', base: 'src',
entrance: 'kityminder' entrance: 'expose'
}, },
merge: { merge: {
files: [{ files: [{
......
define('expose', function(require, exports, module) {
module.exports = window.kityminder = require('./kityminder');
});
\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
*/ */
define('kityminder', function(require, exports, module) { define(function(require, exports, module) {
var kityminder = { var kityminder = {
version: require('./core/minder').version version: require('./core/minder').version
}; };
...@@ -92,5 +92,5 @@ define('kityminder', function(require, exports, module) { ...@@ -92,5 +92,5 @@ define('kityminder', function(require, exports, module) {
require('./template/right'); require('./template/right');
require('./template/fish-bone'); require('./template/fish-bone');
module.exports = window.kityminder = kityminder; module.exports = kityminder;
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment