项目作者: kotarella1110

项目描述 :
🚀 Serverless Webpack StarterKit for Serverless Framework, webpack3, Babel (6/7), ESLint, Prettier, Jest
高级语言: JavaScript
项目地址: git://github.com/kotarella1110/serverless-webpack-starter.git
创建时间: 2017-06-16T08:50:50Z
项目社区:https://github.com/kotarella1110/serverless-webpack-starter

开源协议:MIT License

下载


Serverless Webpack StarterKit

This is a simple starterkit for Serverless applications.

This starterkit is based on:

Installation

Download or clone this repo, then install Node.js using nvm.

  1. $ cd to/this/dir
  2. $ nvm install
  3. $ nvm use

Install yarn if you don’t have.

  1. $ npm install -g yarn

Install package.

  1. $ yarn install

Run locally

  1. $ yarn start

Open the URL shown in your browser.

Build

Development

  1. $ yarn build

Production

  1. $ yarn build:prod

Deploy

Development

  1. $ yarn deploy

Production

  1. $ yarn deploy:prod

Deploy Function

Development

  1. $ yarn deploy:func -- --function functionName

Production

  1. $ yarn deploy:func:prod -- --function functionName

Lint

  1. $ yarn lint

Test

  1. $ yarn test

License

MIT