Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 10, 2022. It is now read-only.

vivid-lapin/ibm-cloud-functions-typescript-rollup

Repository files navigation

Template for IBM Cloud Functions with TypeScript and rollup.

日本語

Webpack version

How to use

  1. Register IBM Cloud Lite
  2. Install ibmcloud cli & login
     brew install ibm-cloud-cli
     # it conflicts with /Application/Docker.app that not installed by brew cask
     ibmcloud plugin install cloud-functions
     ibmcloud login --apikey <APIKEY>
     ibmcloud resource groups
     ibmcloud target -g <default group id>
     ibmcloud fn namespace list
     ibmcloud fn namespace target <namespace which u want to use>
  3. Use this tempplate and clone a repository
    git clone <your generated repo>
    cd reponame
  4. Build & deploy
    yarn
    yarn build
  5. Install direnv and make .envrc and apply
    brew install direnv
    # follow intro like add a line to .zshrc
    touch .envrc
    # write `export WEBHOOK_URL='your discord webhook url'`
    direnv allow .
  6. Deploy
    yarn deploy
    # $ ibmcloud fn deploy --manifest manifest.yaml
    # Success: Deployment completed successfully.
  7. Enjoy!

Customize manifest.yaml

Read https://github.com/apache/openwhisk-wskdeploy/tree/master/specification/html.

Reference

AltStyle によって変換されたページ (->オリジナル) /