Skip to content

Commit 46181ec

Browse files
committed
fix, inline checkmark output
1 parent c2aa309 commit 46181ec

File tree

18 files changed

+87
-115
lines changed

18 files changed

+87
-115
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.4.2]
6+
- same line '✓' output
7+
- bug fixes
8+
59
## [0.4]
610
- rename "project" to "info"
711
- rename "testDir" to "dir"

lib/build/linter/task-has-test.js

Whitespace-only changes.

lib/build/parser/project.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

lib/cli.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var create_1 = require('./create/create');
77
var search_1 = require('./search/search');
88
var tutorials_1 = require('./tutorials/tutorials');
99
var publish_1 = require('./publish/publish');
10+
var update_1 = require('./update/update');
1011
program
1112
.version('0.3.27')
1213
.usage('[options] <keywords>')
@@ -17,6 +18,7 @@ program
1718
.option('-s, --search [query]', 'search for tutorial package')
1819
.option('-r, --run', 'run tutorial')
1920
.parse(process.argv);
21+
update_1.checkForUpdate();
2022
if (!program.args.length &&
2123
!program.build && !program.tutorials && !program.run) {
2224
program.help();
@@ -25,9 +27,8 @@ else {
2527
if (program.build) {
2628
var tutorial = program.args[0] || 'tutorial/tutorial.md';
2729
var output = 'coderoad.json';
28-
console.log(chalk_1.grey("building from " + tutorial + "..."));
30+
process.stdout.write(chalk_1.grey("building coderoad.json for " + tutorial + "..."));
2931
build_1.default(tutorial, output);
30-
console.log(chalk_1.grey("build complete: coderoad.json"));
3132
}
3233
if (program.create) {
3334
var packageName = program.args[0];
@@ -44,5 +45,6 @@ else {
4445
var version = program.args[0];
4546
publish_1.default(version);
4647
}
48+
process.stdout.write(chalk_1.green(' ✓\n'));
4749
process.exit(0);
4850
}

lib/create/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var write_demo_1 = require('./write-demo');
44
var build_1 = require('../build/build');
55
function create(name) {
66
validate_1.validatePackageName(name);
7-
console.log('Creating demo tutorial...');
7+
process.stdout.write("Creating demo tutorial \"coderoad-" + name + "\"...");
88
write_demo_1.createPackageJson(name);
99
write_demo_1.createTutorialMd();
1010
write_demo_1.createTestFiles();

lib/create/write-demo.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ function createTutorialMd() {
2222
createFile(path_1.join('tutorial', '1', '01', 'page-one.md'));
2323
createFolder(path_1.join('tutorial', '1', '02'));
2424
createFile(path_1.join('tutorial', '1', '02', 'page-two.md'));
25-
createFolder(path_1.join('tutorial', 'common'));
26-
createFile(path_1.join('tutorial', 'common', 'loadJS.js'));
2725
}
2826
exports.createTutorialMd = createTutorialMd;
2927
function createPackageJson(name) {

lib/docs/docs.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/list/list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22
var chalk_1 = require('chalk');
33
function tutorials() {
4-
console.log('List of tutorial packages...');
5-
console.log(chalk_1.red('"Tutorials" feature not implemented yet.'));
4+
process.stdout.write('List of tutorial packages... \n');
5+
process.stdout.write(chalk_1.red('"Tutorials" feature not implemented yet.'));
66
}
77
exports.tutorials = tutorials;

lib/publish/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var chalk_1 = require('chalk');
33
var validate_1 = require('./validate');
44
function publish(version) {
55
validate_1.default(version);
6-
console.log("Publishing package version \"" + version + "\"...");
6+
process.stdout.write("Publishing package version \"" + version + "\"... \n");
77
console.log(chalk_1.yellow('Publish feature not implemented yet.\n'));
88
console.log('To publish your tutorial package follow these instructions: \n');
99
console.log("Setup a git repo and tag your version:\n > git init\n > git add -A\n > git commit -m \"$your-commit-message$\"\n > git tag v" + version + "\n > git add remote origin http://github.com/$your-github-id$/$your-package-name$\n > git push -u --tags\n ");

lib/run/run.js

Whitespace-only changes.

0 commit comments

Comments
 (0)