- Yuuuuuu-xue (Yu Xue)
This is UofT CSC309: Programming on the Web 2021 Fall individual assignment (building a frontend library, focused on DOM manipulation)
https://ds-visualization-js.herokuapp.com/
https://ds-visualization-js.herokuapp.com/documentation
Install the package with npm.
npm i ds-visualization.js
Import the library and have fun!
import { DataStructureController } from "ds-visualization.js";
Download the library source file ds.js and style file main.css
Add following lines in your html tag to include the compiled JavaScript library, stylesheets, and external modules such as jQuery and Less compiler.
<link rel="stylesheet" type="text/css" href="./main.css" />
<script defer type="text/javascript" src="./ds.js"></script>
<script defer type="text/javascript" src='./demo.js'></script>
Click here to view the example of html and javascript files of using this library with vanills.js
npm run install-all
This directory contains the source file for the landing page https://ds-visualization-js.herokuapp.com/. It was created by React with TypeScript and SCSS for the styles.
This directory contains the source file for the library. It was created by TypeScript and Less for the styles.
This directory contains the compiled files of the library though webpack and an example of using this library with VanillaJS.
This directory contains the files needed to publish to the npm
1. cd frontend
2. npm i
3. npm start
Install the TypeScript compiler:
npm install -g typescript
# Then you can check if you have installed it successfully
tsc --version
Compile the code
tsc
Compile it though webpack:
npm run build-library