A serverless Openwhisk boilerplate for starting new projects. This boilerplate follow the practices for typescript development.
# Clone the repo --depth 1 removes all but one .git commit history
$ git clone --depth 1 https://github.com/allansduarte/super-boilerplate-openwhisk.git
# Change directory
$ cd super-boilerplate-openwhisk
Install Serverless Framework, Openwhisk Serverless plugin and Yarn globally
$ npm install --global serverless serverless-openwhisk
Install project dependencies
$ npm install
Link serverless-openwhisk with your project
$ npm link serverless-openwhisk
Enable Yarn
$ yarn
Invoke a function locally and everything is ok.
$ serverless invoke local --function hello
{
"body": 2,
"statusCode": 200
}
Task | Description |
---|---|
build |
Full production build. Webpack compile. |
release |
Generate changelog based on commits |
push |
Shortcut for git push origin master --follow-tags |
lint |
Lint with tslint |
outdated |
Search npm packages for outdated dependencies |
Only coding style tests still
Linting.
$ yarn lint
Before all deploy the code is built automatically and distributed in the dist folder
$ yarn deploy
- Serverless - Serverless is your toolkit for deploying and operating serverless architectures. Focus on your application, not your infrastructure.
- Openwhisk - Apache OpenWhisk is a serverless, open source cloud platform that executes functions in response to events at any scale.
- Typescript - Typescript is a typed superset of Javascript that compiles to plain Javasscript. Any browser. Any host. Any OS. Open source.
- Webpack - A super modular code packer.
Using SemVer for versioning. For the versions available, see the tags on this repository.
- Allan Duarte - Initial work - Allan Duarte
See also the list of contributors.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Inspiration from Ionic Boilerplate.