Creating Javascript library on the fly 💫
Name | Default | Description |
---|---|---|
id |
unique |
id for clarifying each instance |
--- | -- | -- |
events(self) => {} |
function |
Name | Parameter | Description |
---|---|---|
create |
object |
create the instance |
get |
id |
get the instance |
destroy |
instance |
destroy the instance |
Name | Parameters | |
---|---|---|
on |
(name, callback) |
trigger events |
destroy |
() |
destroy instance |
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