Skip to content

Fixed default export of plugin #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions components/components.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import bAlert from './alert'
import bBreadcrumb from './breadcrumb'
import bButtonCheckbox from './button-checkbox'
import bButtonGroup from './button-group'
import bButtonRadio from './button-radio'
import bButton from './button'
import bCard from './card'
import bCarousel from './carousel'
import bCarouselSlide from './carousel'
import bCollapse from './collapse'
import bCollapseToggle from './collapse-toggle'
import bDropdown from './dropdown'
import bDropdownSelect from './dropdown-select'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bFormCheckbox from './form-checkbox'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bFormRadio from './form-radio'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bFormInput from './form-input'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bFormSelect from './form-select'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bFormTextarea from './form-textarea'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bJumbotron from './jumbotron'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bTags from './tags'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bListGroup from './list-group'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bListGroupItem from './list-group-item'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bMedia from './media'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bModal from './modal'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.

import bNav from './nav'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.
Too many errors. (33% scanned).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').
Missing semicolon.
Too many errors. (33% scanned).

import bNavItem from './nav-item'
import bNavItemDropdown from './nav-item-dropdown'
import bNavbar from './navbar'
import bPagination from './pagination'
import bPopover from './popover'
import bProgress from './progress'
import bTables from './tables'
import bTabs from './tabs'
import bTab from './tab'
import bTooltip from './tooltip'

export {
bAlert,
bBreadcrumb,
bButtonCheckbox,
bButtonGroup,
bButtonRadio,
bButton as bButton,
bButton as bBtn,
bCard,
bDropdown,
bDropdownSelect,
bFormCheckbox,
bFormRadio,
bFormInput,
bFormSelect,
bFormTextarea,
bJumbotron,
bTags,
bMedia,
bModal,
bNavbar,
bPagination,
bPopover,
bProgress,
bTables,
bTooltip,
bTab,
bTabs,
bNav,
bNavItem,
bNavItemDropdown,
bListGroupItem,
bListGroup,
bCarouselSlide,
bCarousel,
bCollapse,
bCollapseToggle
}
89 changes: 5 additions & 84 deletions components/index.js
Original file line number Diff line number Diff line change
@@ -1,99 +1,20 @@
import bAlert from './alert'
import bBreadcrumb from './breadcrumb'
import bButtonCheckbox from './button-checkbox'
import bButtonGroup from './button-group'
import bButtonRadio from './button-radio'
import bButton from './button'
import bCard from './card'
import carousel from './carousel'
import carouselSlide from './carousel'
import collapse from './collapse'
import collapseToggle from './collapse-toggle'
import bDropdown from './dropdown'
import bDropdownSelect from './dropdown-select'
import bFormCheckbox from './form-checkbox'
import bFormRadio from './form-radio'
import bFormInput from './form-input'
import bFormSelect from './form-select'
import bFormTextarea from './form-textarea'
import bJumbotron from './jumbotron'
import bTags from './tags'
import listGroup from './list-group'
import listGroupItem from './list-group-item'
import bMedia from './media'
import bModal from './modal'
import nav from './nav'
import navItem from './nav-item'
import navItemDropdown from './nav-item-dropdown'
import bNavbar from './navbar'
import bPagination from './pagination'
import bPopover from './popover'
import bProgress from './progress'
import bTables from './tables'
import tabs from './tabs'
import tab from './tab'
import bTooltip from './tooltip'


var components = {
bAlert,
bBreadcrumb,
bButtonCheckbox,
bButtonGroup,
bButtonRadio,
bButton,
bBtn: bButton,
bCard,
bDropdown,
bDropdownSelect,
bFormCheckbox,
bFormRadio,
bFormInput,
bFormSelect,
bFormTextarea,
bJumbotron,
bTags,
bMedia,
bModal,
bNavbar,
bPagination,
bPopover,
bProgress,
bTables,
bTooltip,
bTab: tab,
bTabs: tabs,
bNav: nav,
bNavItem: navItem,
bNavItemDropdown: navItemDropdown,

bListGroupItem: listGroupItem,
bListGroup: listGroup,

bCarouselSlide: carouselSlide,
bCarousel: carousel,

bCollapse: collapse,
bCollapseToggle: collapseToggle,
};
import * as components from './components';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'import' is only available in ES6 (use 'esversion: 6').


function plugin(Vue) {

if (plugin.installed) {
return;
}

Object.keys(components).forEach(function (key) {
Vue.component(key, components[key]);
});

}

if (typeof window !== 'undefined') {
if (window.Vue)
if (window.Vue) {
window.Vue.use(plugin);
//require('../styles/style.css');
}
}

module.exports = components;
module.exports.default = plugin;
export * from './components';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'export' is only available in ES6 (use 'esversion: 6').

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'export' is only available in ES6 (use 'esversion: 6').

export default plugin;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'export' is only available in ES6 (use 'esversion: 6').

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'export' is only available in ES6 (use 'esversion: 6').

2 changes: 1 addition & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR

export node_env=production
export NODE_ENV=production

echo "Building commonjs version"
webpack --colors --progress --config webpack.common.js --env production --display-error-details
Expand Down