This is a sandbox environment for the vector library.
Clone this repo and npm install.
npm install
npm start
You can view the development server at localhost:4040
.
npm run build
Note: Install http-server globally to deploy a simple server.
npm i -g http-server
You can view the deployment by creating a server in dist
.
cd dist && http-server
If you have a local version of the vector
library that you want to use you can link it with the following command. I also like to uninstall the library as a dependency so that if you make any changes with npm, it doesn't lead to confusion on which library is being used.
npm uninstall @kurtbruns/vector && npm link @kurtbruns/vector
I've recently been installing the vector library in the src
directory to get all the benefits of using the VSCode editor. To install the latest version:
TODO: test install script
./scripts/install_local.sh
To install a specific version:
./scripts/install-local.sh 0.7.1
To change the import statements from external to local:
./scripts/install_all_relative.sh
To change the import statements from local to external:
./scripts/install_all_library.sh
Uncomment the line /src/vector/
in the .gitignore
to jump to files faster.