squiggle/packages/cli
dependabot[bot] 545d74131c
⬆️ Bump commander from 9.4.0 to 9.4.1
Bumps [commander](https://github.com/tj/commander.js) from 9.4.0 to 9.4.1.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tj/commander.js/compare/v9.4.0...v9.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-03 14:32:55 +00:00
..
.gitignore First attempt at new CLI 2022-06-17 21:45:58 -07:00
index.js some linty thing apparently 2022-06-20 11:51:09 -04:00
package.json ⬆️ Bump commander from 9.4.0 to 9.4.1 2022-10-03 14:32:55 +00:00
README.md ran prettier from toplevel 2022-06-20 11:53:19 -04:00

Squiggle CLI

This package can be used to incorporate a very simple import system into Squiggle.

To use, write special files with a .squiggleU file type. In these files, you can write lines like,

@import(models/gdp_over_time.squiggle, gdpOverTime)
gdpOverTime(2.5)

The imports will be replaced with the contents of the file in models/gdp_over_time.squiggle upon compilation. The .squiggleU file will be converted into a .squiggle file with the import statement having this replacement.

Running

npx squiggle-cli-experimental compile

Runs compilation in the current directory and all of its subdirectories.

npx squiggle-cli-experimental watch

Watches .squiggleU files in the current directory (and subdirectories) and rebuilds them when they are saved. Note that this will not rebuild files when their dependencies are changed, just when they are changed directly.