New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bates

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bates

react front-end butler

  • 0.1.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
decreased by-58.97%
Maintainers
1
Weekly downloads
 
Created
Source

Bates

He knows how I like my front-end. Automated.

Bates is my front-end butler, it can be yours too, if you share the same opinions and desires as me. Or he can just be a starting point for a new twisted bizarro Bates.

The contemporary front-end build pipeline is a very opinionated place, but at the same time, it's a place that after you settle down on how you like your configs, you just want the same configs in every new project. And at this point the problem is how to clone and update the config of all those projects?

For that reason I trained Bates, he handles all the default configurations, deploys and builds for my React and node projects. My projects dev-dependency shrank down to only one, and my deploys and releases are now one command away. It's beautiful.

Bates excels on three main cases:

  • React single page apps
  • React components npm packages
  • ES7 npm packages
npm i bates --save-dev

npm run bates -- template
If missing, add some general files to your project.

npm run bates -- start
Prune and update your dependencies, start a hot-reloaded babel transpiled server at localhost:300, run tests and lint on change, tell you about your outdated packages, inform you about your last release and what have changed until now.

npm run bates -- test
Test and lint your /src.

npm run bates -- test:watch
Same as above, but everytime the source change

npm run bates -- server
Run just the server from the start command.

npm run bates -- lib
Transpile the code from /src to /lib, for when you want to release the code as a npm package.

npm run bates -- bundle
Generate a bundle file on the /dist folder, for when you want to deploy your code as a website.

npm run bates -- dist
Generate a distribution file, for those who want to consume your npm package using html script tags directly.

npm run bates -- clean
Delete any build and transpiled file.

npm run bates -- deploy Deploy your dist folder to surge. You need to have a CNAME file if you don't to fill any prompts here.

npm run bates -- release
Using the git commits, check for the changes since your last release and suggest a new version. If approved, bump the package and push a new tag.

FAQs

Package last updated on 19 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc