0.1.20 • Published 7 years ago
smartly-vue-test v0.1.20
smartly-vue
POC - vue framefork for design system/ component library
Demo: https://smartly-vue.herokuapp.com/
Usage:
Note: We haven't publish the package yet but you can play around using https://www.npmjs.com/package/smartly-vue-test
Global registration
import Vue from 'vue';
import SmartlyVue from 'smartly-vue';
Vue.use(SmartlyVue);On Demand (Global)
import Vue from 'vue';
import { MsButton, MsInput } from 'smartly-vue';
Vue.use(MsButton);
Vue.use(MsInput);On Demand (Local) Per component
import { MsButton, MsInput } from 'smartly-vue';
components: {
MsInput,
MsButton
},Import CSS
On main file
import 'smartly-vue/dist/smartly-vue.css'Or if you are using nuxt
nuxt.config.js
css: [
'smartly-vue/dist/smartly-vue.css'
],Project setup
npm installVuejs
Compiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildStorybook
https://storybook.js.org/docs/basics/introduction/
Compiles and hot-reloads for development
npm run storybookCompiles and minifies for production
npm run build-storybookCreating storybook stories
You can add a new file named index.stories.js inside the component directory:
/MsButton
- index.js
- index.stories.js
- MsButton.vueindex.stories.js
import { storiesOf } from '@storybook/vue';
import MsButton from './MsButton.vue';
storiesOf('Component - MsButton', module)
.add('default', () => ({
components: { MsButton },
template: '<ms-button color="red">Hi there</ms-button>',
}));Run your tests
npm run testLints and fixes files
npm run lintDeploying to heroku
https://devcenter.heroku.com/articles/git
Customize configuration
0.1.20
7 years ago
0.1.19
7 years ago
0.1.18
7 years ago
0.1.17
7 years ago
0.1.16
7 years ago
0.1.15
7 years ago
0.1.14
7 years ago
0.1.13
7 years ago
0.1.12
7 years ago
0.1.11
7 years ago
0.1.10
7 years ago
0.1.9
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago