# jsimmigrant **Repository Path**: caloch/jsimmigrant ## Basic Information - **Project Name**: jsimmigrant - **Description**: How to use the calochjs MVVM framework in webpages, it contains my frontend build stream line using gulp webpack, sass, etc. to compile a front end project - **Primary Language**: JavaScript - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-08-08 - **Last Updated**: 2024-01-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` npm i -g gulp npm i -D gulp npm i -D node-cmd npm i -D del gulp npm install -D babel-loader @babel/core @babel/preset-env webpack 1. use webpack to build js, add many loaders; use gulp to build css and html. //Referenced Jason Vanderslice somehow,, ``` todos: ``` 1. webpack calo folder into one bundle.js, and use htmlwebpackplugin 2. whenready method, make calo, then develop pages, 3. move pages folder to dist/pages folder, launch dist folder and run app, ``` ### framework use: ```
``` ``` ``` ### virtual dom imp: ``` const virtualDom= document.querySelector("[calo]").cloneNode(true); document.querySelector("[calo]").innerHTML=virtualDom.innerHTML calo.run.apply(calo) ``` ``` 1. callPlugin or makePlugin are methods that can be called outside the scope, but will take effect, plugin and the whole scope share the same model, so, there is no that passing value issue, ```