1 | var instructions = require('../instructions');
|
2 | var question = require('../question');
|
3 |
|
4 | var fs = require('fs');
|
5 |
|
6 | module.exports = function(){
|
7 | instructions('Package Niceties', 'package_niceties');
|
8 |
|
9 | return question('{underline}Challenge{/underline}: Create a README.md with some information about your package', function(){
|
10 | return fs.existsSync('./README.md') && fs.readFileSync('./README.md', 'utf-8').length;
|
11 | }).then(function(){
|
12 | return question('{underline}Challenge{/underline}: Modify your package.json to have some sort of test (then run `npm test`)', 'npm test');
|
13 | });
|
14 | };
|