|
@@ -23,6 +23,7 @@ const Files = [
|
|
|
content: `const ${ComponentName} = require('./src/main');
|
|
|
|
|
|
${ComponentName}.install = function(Vue) {
|
|
|
+ /* istanbul ignore next */
|
|
|
Vue.component(${ComponentName}.name, ${ComponentName});
|
|
|
};
|
|
|
|
|
@@ -41,21 +42,9 @@ cooking.set({
|
|
|
template: false,
|
|
|
format: 'umd',
|
|
|
moduleName: 'El${ComponentName}',
|
|
|
- extends: ['vue2']
|
|
|
-});
|
|
|
-
|
|
|
-cooking.add('resolve.alias', {
|
|
|
- 'main': path.join(__dirname, '../../src'),
|
|
|
- 'packages': path.join(__dirname, '../../packages')
|
|
|
-});
|
|
|
-
|
|
|
-cooking.add('externals', {
|
|
|
- vue: {
|
|
|
- root: 'Vue',
|
|
|
- commonjs: 'vue',
|
|
|
- commonjs2: 'vue',
|
|
|
- amd: 'vue'
|
|
|
- }
|
|
|
+ extends: ['vue2'],
|
|
|
+ alias: config.alias,
|
|
|
+ externals: { vue: config.vue }
|
|
|
});
|
|
|
|
|
|
module.exports = cooking.resolve();`
|