Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.46 KB

README.md

File metadata and controls

71 lines (43 loc) · 1.46 KB

neon-hello-world-starter

ci

Return a hello world string in Node from Rust.

Requirements

Local development

Follow below npm scripts command to run locally.

Install and Build

Install npm and cargo packages also build typescript and rust.

npm i
# or
npm install

Output

npm start
# Output
Hello, World from RUST!

Lint

Run lint using npm run lint for rust (cargo clippy) and typescript (eslint)

Format

Run format using npm run format for rust (cargo fmt) and typescript (prettier)

Test

Test project using npm run lint. Test covered both rust (cargo test native --release) and typescript (jest).

Clean

Clean project with npm run clean. It includes neon clean as well.

Pack

Minifiy and pack the projects(npm run pack).

Setup

Setup the project by npm run setup.

TODO

  • clean script should be more programmatically.
  • write code format automatically.
  • code coverage with grcov

Note

  • --release is required because neon only builds with release flag. E.g: for tests, try cargo test --release

  • If you are in windows make sure you follow issue