vue-plugin-starter
v1.2.7
Published
## Notes
Readme
vue-plugin-starter
Notes
new tests
Releasing pre-release:
release-it major --preRelease=beta
Results In: 2.0.0-beta.0
Then after that, you don't need to include the type of update (such as major used here).
release-it --preRelease=beta
Results In: 2.0.0-beta.0
MAKING IT WORK
For release-it
- Needed to run the following after obtaining the token via Github:
export GITHUB_TOKEN="123123123"- Needed this line for
jest.config.jsto make it work and not throwimporterrors:
transformIgnorePatterns: ["<rootDir>/node_modules/"];Usage
<VEditor :text="hello"></VEditor>import { VEditor } from "vue-plugin-starter";
export default {
components: {
VEditor
}
};API
v-editor
An Amazing Editor Component
- author - David Royer
- license - MIT
- VEditor
slots
defaultlabelUse this slot to set the checkbox label
props
msgString (optional)Test prop for unit tests
modelArray (optional)The checkbox model
disabledBoolean (optional)Initial checkbox state
enabledBoolean (optional)default: trueInitial checkbox value
labelString (optional)default: 'Unamed checkbox'The checkbox label
objectObject (optional)default: nullbool-falseBoolean (optional)default: false
data
initialValueThe initial component value. Used to detect changes and restore the initial value.
initial value: 'The initial value!'
currentValue
initial value: 'And the current value!'
computed properties
idThe component identifier. Generated using the
initialValuedata.dependencies:
initialValuechangeddependencies:
currentValue,initialValuewithNoDependencies
events
loadedEmitted when the component has been loaded
enabledEmitted the event
enabledwhen loaded Multilign
methods
check()Check if the input is checked
prop()enable(value)Enable the checkbox
Installation
npm install vue-plugin-starterProject setup
yarn installCompiles and hot-reloads for development
yarn run serveCompiles and minifies for production
yarn run buildLints and fixes files
yarn run lintRun your unit tests
yarn run test:unitUpdate the API section of README.md with generated documentation
yarn run doc:buildRun style guide dev server
yarn run styleguideGenerate a static HTML style guide
yarn run styleguide:build