Skip to content
/ boilw Public template

Creating Javascript library on the fly 💫

License

Notifications You must be signed in to change notification settings

vuquangpham/boilw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boilw Template

Creating Javascript library on the fly 💫

Getting started

Options

Name Default Description
id unique id for clarifying each instance
--- -- --
events(self) => {} function

Methods of Grab

Name Parameter Description
create object create the instance
get id get the instance
destroy instance destroy the instance

Methods of instance

Name Parameters
on (name, callback) trigger events
destroy () destroy instance

Deployment

Run ./dev in live server

npm run dev

Build files from ./src to ./dist for production

npm run prod

Build files from ./src and ./dev to ./dist for production

npm run build