lein figwheel- (In another window)
node target\js\compiled\cljs_version_notify.js ...
lein cljsbuild once prodnode index.js ...
-
Build production code
-
Prepare sam-template.yml file
$ cp sample-speech.yml.sample sam-template.yml# if you need
$ aws s3 mb s3://{your-own-bucket-name} --region {your-region}Set your S3 bucket name on sam-template.yml.
- Package
$ zip app.zip index.js
$ aws cloudformation package \
--template-file sam-template.yml \
--output-template-file sam-template-output.yml \
--s3-bucket {bucket_name}- Deploy
$ aws cloudformation deploy \
--template-file sam-template-output.yml \
--stack-name {my-stack-name} \
--capabilities CAPABILITY_IAMRewrite your own s3-bucket
Use cider!
You can now connect to Figwheel's REPL through Piggieback using vim-fireplace:
lein repl(fig-start)(cljs-repl)- (In another window)
node target\js\compiled\cljs_version_notify.js ... - (In Vim)
:Piggieback (figwheel-sidecar.repl-api/repl-env)
Standard vim-fireplace commands will now work in the context of the
Figwheel process:
cqpto send a command from Vim to the REPLcpa...to evaluate a form without saving or reloading the file- etc.