@please.com/serverless-scripts
CLI for common scripts for Please.com's serverless projects
Last updated 2 years ago by jaydp17 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @please.com/serverless-scripts 
SYNC missed versions from official npm registry.

@please.com/serverless-scripts ????????

CLI toolbox for common scripts for my projects


Installation

$ npm install --save-dev @please.com/serverless-scripts

This is supposed to be installed in the dev dependencies of a project.

Usage

This package ships with serverless-webpack plugin, to enable it just add it to serverless.yml

plugins:
  - serverless-webpack

custom:
  webpack:
    webpackConfig: node_modules/@please.com/serverless-scripts/webpack.config.js

package:
  individually: true

It also contains two commands to format & lint the code.
Add the following to package.json

// package.json

"scripts": {
  // other npm scripts ...
  "format": "serverless-scripts format",
  "lint": "serverless-scripts lint",
}

Now to make the editor pickup ESLint and Prettier config files

$ ln -s ./node_modules/@please.com/serverless-scripts/.{eslint,prettier}* .

yarn format

It uses Prettier and ships a minimal config to format all the source files inside the project.

yarn lint

Uses ESLint v4 to lint all the files, by default it uses airbnb-base, but you can override that in case you feel the need to.

Inspiration

This is inspired by create-react-app & kcd-scripts

License

MIT

Current Tags

  • 0.0.5-beta.0                                ...           beta (2 years ago)
  • 0.1.8                                ...           latest (2 years ago)

17 Versions

  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.5-beta.0                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.4-beta.0                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.2-beta.1                                ...           3 years ago
  • 0.0.2-beta.0                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 2
Last Month 2
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |