Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
bin
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

eXecutor

A powerful "short-cutter" to your console to you and your team!!

npm CircleCI Codacy grade Codacy coverage npm HitCount

license David Gitter

[ english ] [ spanish ]


TL;DR

This tool allows you to save a lot of time writing commands with totally custom shortcuts, that you can share on the project with your "human" team or machines, with a unique code on the same place. #agile #needForSpeed.

Like scripts of package.json but with steroids.

Notes: The idea is not to drop the console; it's for optimising it!

Features

  • Multi-platform: An only code that works on all platforms. Powered by nodejs
  • Templates for easy reuse
  • It does not matter what kind of project is, if you write commands this tool can be helpful for you
  • There are five source types of variables: Predefined, environment, package.json, templates and shortcuts.
  • Devs and DevOps can be friends with it because they can share their scripts.
  • Typo on long command lines are past problems!
  • Do away with one thousand of similar scripts on your package.json!
    (build, build-ci, build-prod, build-prod-ci, build-qa, build-qa-ci, build-ci-cache, etc...)
  • The scripts on the package.json were modified and have to rebuild your docker image, never again!
  • Without dependencies from other modules!


Documentation

Spoiler

Before

On package.json

"scripts": {
  "build": "docker run --rm -it -p 4200:4200 -v /choclo:... --name myProject-dev myProject ng build",
  "build-prod": "docker run --rm -it -p 4200:4200 -v /choclo:... --name myProject-dev myProject ng build --prod",
  "server": "docker run --rm -it -p 4200:4200 -v /choclo:... --name myProject-dev myProject ng serve"
}
Executor
"templates": {
  "docker-common": "docker run --rm -it -p 4200:4200 -v /choclo:... --name ${pkg.name}-dev ${pkg.name}" 
},
"shortcuts": {
  "build": "${docker-common} ng build",
  "build-prod": "${docker-common} ng build --prod",
  "server": "${docker-common} ng serve"
}

Table of content


And remember: RTFM! :)

Installation

npm i -g executor

Test to check the installation:

x hello

It should show a message with installed version number.

More info about installation.


MIT © 2018 Crystian, made with love for you <3!

You can’t perform that action at this time.