1.0.10 • Published 5 years ago

custom_framework v1.0.10

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

allows building of web components from html and js files

npm i -g custom_framework

Within script tags inside of components you can add an additional init attribute that will cause the script to be executed ONCE with the constructor and state variables exposed. constructor can be modified to extend the prototype of the element. the state variable is also exposed and can be modified.

If the above attribute is not present the variables self, constructor, root, and state are exposed. this script will execute whenever the an instance of the element is created.

can take 1 argument -w to determine if watching will occure. to use run in the project directory (this is the directory that contains the customfw.json file)