test-for-toolkit
v2.0.0
Published
A Vue.js project
Downloads
20
Readme
test-for-toolkit
A Sample project to make external tools for Toolkit.
Born to life from webpack-simple template.
npm package address: https://www.npmjs.com/package/test-for-toolkit
Basic rules
App.vue
file is your golbal container but will never be in toolkit. It's only here for devlopment purpose- Don't forget to register your module in the store in the mounted hook, see
Charts.vue
line 45 - You should expose your variables for
events
,actions
,mutations
inside the config folders - So don't use plain text for events names, otherwise it will be a nightmare to retro-engineering
- Be carefull with the created hook
- Try to find a good name for your tool, and keep it for the store module, the events namespace, ...
- Don't forgeet to update the
main
entry in thepackage.json
file, it should be the tool composant (that will be integrated to Toolkit) - In Toolkit, lodash is installed so go on!
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# increment version
npm version [major | minor | patch]
# publish
npm publish
For detailed explanation on how things work, consult the docs for vue-loader.