@colabo/tools
Tools necessary for building Colabo.Space ecosystem
Last updated a year ago by mprinc .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @colabo/tools 
SYNC missed versions from official npm registry.

Colabo Tools

These are the tools to manage the Colabo.Space ecosystem

Before installing backend or frontend part of the Colabo.Space ecosystem you need to install Colabo tools as necessary for further installation phases.

Install

# install tsc (TypeScript compiler)
sudo npm install -g typescript
cd tools
# install (and build (from TypeScript)) the Colabo Tools
yarn
# export the `colabo` tool globally
sudo npm run link

Server

sudo rm -r /var/repos/colabo/src/tools/dist/*
yarn
sudo npm run link

Build

You need to compile them first (they are written in TypeScript): tsc. There is a tsconfig.json file describing building procedure.

NOTO: Building should be done automatically during the installation process

Run

After building you can run the tools:

# Show info of the backend aspect of the Colabo.space project
colabo ../backend/colabo.config.js puzzless-info
# equivalent (in the case you do not have not installed package)
node index.js ../backend/colabo.config.js puzzless-info
# equivalent (in the case you have only locally installed package)
# npx is available for npm > 5.2.0
npx colabo ../backend/colabo.config.js puzzless-info

# Offer backend Colabo.space puzzles to the local system
colabo ../backend/colabo.config.js puzzless-offer

# Install inside the project puzzles required for the backend Colabo.space
colabo ../backend/colabo.config.js puzzless-install

# debug the colabo tools
node --inspect=127.0.0.1:5858 index.js ../backend/colabo.config.js puzzless-offer

TODO

Warnings

Catch all warnings during the tool running process. For example, if some puzzle offering provide WARN, it should be collected and delivered to the final report. So Promises in the offerPuzzle() should return semantic result.

Chech more under: Parallel control flow in https://basarat.gitbooks.io/typescript/docs/promise.html

Types

Make @types/chalk working properly: https://github.com/chalk/chalk/blob/master/types/index.d.ts Currently it is not recognized

Current Tags

  • 0.3.1                                ...           latest (a year ago)

1 Versions

  • 0.3.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (6)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |