Skip to content

Commit

Permalink
Merge pull request serverless#6238 from serverless/serveless-command-ad
Browse files Browse the repository at this point in the history
PLAT-1091 - message in `npm i` output about the `serverless` quickstart command
  • Loading branch information
medikoo authored Jul 10, 2019
2 parents 4564c36 + abd5a5d commit cef6828
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
'use strict';

const path = require('path');
const chalk = require('chalk');

/* eslint-disable no-console */

const Serverless = require('../lib/Serverless');
const execSync = require('child_process').execSync;

const truthyStr = val => val && !['0', 'false', 'f', 'n', 'no'].includes(val.toLowerCase());
const { CI, ADBLOCK, SILENT } = process.env;
if (!truthyStr(CI) && !truthyStr(ADBLOCK) && !truthyStr(SILENT)) {
console.log(
chalk.yellow(`\
+------------------------------------------------------------------+
| |
| Serverless Framework successfully installed! |
| To start your first project, run “serverless” in a new folder. |
| |
+------------------------------------------------------------------+
`)
);
}

try {
const serverless = new Serverless();

Expand Down

0 comments on commit cef6828

Please sign in to comment.