Skip to content

Commit

Permalink
feat: packages updates and play with figlet :)
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Mar 26, 2019
1 parent 2b46881 commit ae3d083
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 31 deletions.
60 changes: 47 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 19 additions & 16 deletions package.json
Expand Up @@ -35,34 +35,37 @@
"url": "https://github.com/ever-co/ever-cli/issues"
},
"devDependencies": {
"@types/node": "11.11.7",
"@types/figlet": "^1.2.0",
"@types/lodash": "4.14.123",
"@types/node": "11.12.0",
"@types/uuid": "3.4.4",
"@types/yargs": "12.0.10",
"@types/lodash": "4.14.122",
"watch": "1.0.2",
"codecov": "3.2.0",
"cross-env": "5.2.0",
"nyc": "13.3.0",
"prettier": "1.16.4",
"prettier-tslint": "0.4.2",
"pretty-quick": "1.10.0",
"ts-node": "8.0.3",
"tslint": "5.12.1",
"tslint": "5.14.0",
"tslint-config-prettier": "1.18.0",
"nyc": "^13.3.0",
"codecov": "^3.2.0",
"cross-env": "^5.2.0",
"typescript": "3.3.3"
"typescript": "3.3.4000",
"watch": "1.0.2"
},
"dependencies": {
"reflect-metadata": "0.1.13",
"analytics-node": "3.3.0",
"chalk": "2.4.2",
"yargs": "13.2.2",
"uuid": "3.3.2",
"url": "0.11.0",
"semver": "5.6.0",
"rimraf": "2.6.3",
"node-fetch": "2.3.0",
"clear": "^0.1.0",
"figlet": "1.2.1",
"fs-extra": "7.0.1",
"lodash": "4.17.11",
"analytics-node": "3.3.0"
"node-fetch": "2.3.0",
"reflect-metadata": "0.1.13",
"rimraf": "2.6.3",
"semver": "5.6.0",
"url": "0.11.0",
"uuid": "3.3.2",
"yargs": "13.2.2"
},
"nyc": {
"include": [
Expand Down
14 changes: 13 additions & 1 deletion src/main.ts
@@ -1,13 +1,25 @@
#!/usr/bin/env node

import yargs from "yargs";
const log = console.log;
const clear = require("clear");

import yargs from "yargs";
import chalk, { Chalk } from "chalk";
import figlet from "figlet";

const error: Chalk = chalk.bold.red;
const warning: Chalk = chalk.keyword("orange");
const info: Chalk = chalk.green;

// if we want to clear console, call 'clear' below
// clear();

log(chalk.whiteBright(
figlet.textSync("ever", { horizontalLayout: "default", font: "Graffiti" })
));

log("");

log(info("Ever CLI"));

process.on("unhandledRejection", (reason, p) => {
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Expand Up @@ -5,6 +5,7 @@
"baseUrl": "./src",
"outDir": "dist",
"target": "es6",
"strict": true,
"moduleResolution": "node",
"preserveConstEnums": true,
"emitDecoratorMetadata": true,
Expand All @@ -14,7 +15,9 @@
"skipLibCheck": true,
"strictNullChecks": false,
"typeRoots": ["node_modules/@types"],
"types": ["node", "reflect-metadata"]
"types": ["node", "reflect-metadata"],
"esModuleInterop": true,
"resolveJsonModule": true
},
"include": ["src/**/*.ts", "./*.ts"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit ae3d083

Please sign in to comment.