Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 517cd27

Browse files
authored
Merge pull request #632 from apiaryio/honzajavorek/rewrite-print-installation-guidelines-in-js
Rewrite print installation guidelines in JS
2 parents e160320 + 6466ea4 commit 517cd27

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"dredd": "bin/dredd"
88
},
99
"scripts": {
10-
"postinstall": "coffee scripts/print-installation-guidelines.coffee",
11-
"postupdate": "coffee scripts/print-installation-guidelines.coffee",
10+
"postinstall": "node scripts/print-installation-guidelines.js",
11+
"postupdate": "node scripts/print-installation-guidelines.js",
1212
"lint": "coffeelint src",
1313
"docs:build": "mkdocs build",
1414
"docs:serve": "mkdocs serve",

scripts/print-installation-guidelines.coffee

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var colors = require('colors');
2+
3+
var command = colors.bold(colors.yellow('npm install dredd@stable'));
4+
console.error(colors.cyan([
5+
'::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::',
6+
':: ::',
7+
':: Install Dredd using ' + command + ' in case you ::',
8+
':: prefer stability over new features (e.g. in CI) ::',
9+
':: ::',
10+
'::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::',
11+
].join('\n')));

0 commit comments

Comments
 (0)