Files
atrium/samples/js
dependabot[bot] 52e40f24d1 Bump js from 1.5.30 to 1.5.31 in /samples/js
Bumps js from 1.5.30 to 1.5.31.

---
updated-dependencies:
- dependency-name: js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-20 12:47:24 +02:00
..

Sample JS project: Atrium with mocha

This example project is heavily based on kotlin's example. Yet with a few optimizations and adaptations:

  • it stores nodejs and npm only once per project (and not for every sub project)
  • it uses --prefer-offline for a faster build and offline capability
  • it uses sourceMap so that debugging in kotlin code is possible (as good as your IDE supports it)
  • it includes all test dependencies, also runtime only dependencies
  • it does not force a moduleKind on src/main
  • last but not least and this is the important part, it establishes a dependency to Atrium on JS level which is necessary due to the loosely coupled design of Atrium and dead code elimination.