Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.06 KB

build.md

File metadata and controls

44 lines (35 loc) · 1.06 KB

Install these

  1. npm install -g @vue/cli
  2. rustup target add wasm32-unknown-unknown --toolchain nightly
  3. cargo +nightly install wasm-bindgen-cli

Build steps

Rust

  1. cd csv2sql
  2. cargo +nightly build --target wasm32-unknown-unknown
  3. wasm-bindgen target/wasm32-unknown-unknown/debug/csv2sql.wasm --out-dir ..\ui\src\csv2sql\

vuejs

  1. cd ../ui
  2. npm i
  3. npm run serve for development
  4. npm run build for production

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Deployment

Depending on where the project will be hosted you should update the configuration in vue.config.js

publicPath: process.env.NODE_ENV === 'production'
    ? '' //here the relative path e.g. if you plan to host it in github pages [username].github.io/[repoName], the value if true should be [repoName]
    : ''

Navigate into the ui directory and run

npm run build