This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const careplanMachine = Machine( | |
{ | |
id: "careplan", | |
key: "careplan", | |
initial: "onboarding", | |
states: { | |
onboarding: { | |
on: { | |
REDUCE_WEIGHT: "reduce_weight", | |
SLEEP_ENHANCEMENT: "sleep_enhancement" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const careplanMachine = Machine( | |
{ | |
id: "careplan", | |
key: "careplan", | |
initial: "onboarding", | |
states: { | |
onboarding: { | |
on: { | |
REDUCE_WEIGHT: "reduce_weight", | |
SLEEP_ENHANCEMENT: "sleep_enhancement" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function package_manager() { | |
local type="$1" | |
local command="$2" | |
local args="$3" | |
local POSSIBLE_INSTALL_COMMAND=(install add require) | |
case $type in | |
'npm' ) | |
if [[ " ${POSSIBLE_INSTALL_COMMAND[*]} " == *" $command "* ]]; then | |
npm install "$args" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
cargo +nightly build --target wasm32-unknown-unknown --release | |
wasm-gc target/wasm32-unknown-unknown/release/hello_world.wasm -o hello_world.gc.wasm | |
install: | |
rustup update | |
rustup toolchain install nightly | |
rustup target add wasm32-unknown-unknown --toolchain nightly |