0.1.9 • Published 3 years ago
@pandazy/mole-cli v0.1.9
mole-cli
Prerequisite:
Installation:
yarn global add @pandazy/mole-cliUsage
mole <package.json's script name>Example
mole test
// as long as there is "./src/*.spec.ts" in the projectIt will set up TypeScript project with shared configuration from
And run the project by yarn install && yarn <package.json's script name> (in the case above, "yarn install && yarn test") under the hood
from a Docker container installed with Node.js and Yarn.
The docker container uses this image
Demo:
Before running the command:

What package.json looks like
{
"name": "mole-config-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"author": "",
"license": "ISC"
}Install mole-cli

Run the command mole test


Now the repository is like this

It runs in a Docker container

node_modules is stored in a Docker volume (not in the project repository, otherwise it hurts the performance)
