Skip to content

Commit 4ff256c

Browse files
committed
v0.3.4, better instructions
1 parent 019bf96 commit 4ff256c

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var search_1 = require('./src/search/search');
99
var tutorials_1 = require('./src/tutorials/tutorials');
1010
var publish_1 = require('./src/publish/publish');
1111
program
12-
.version('0.3.3')
12+
.version('0.3.4')
1313
.usage('[options] <keywords>')
1414
.option('-b, --build [path/to/tutorial.md]', 'tutorial markdown file', /^.+\.md$/i)
1515
.option('-c, --create [name]', 'tutorial name')
@@ -18,7 +18,7 @@ program
1818
.option('-s, --search [query]', 'search for tutorial package')
1919
.option('-r, --run', 'run tutorial')
2020
.parse(process.argv);
21-
if (!program.args.length && !program.tutorials && !program.build) {
21+
if (!program.args.length && !program.tutorials && !program.build && !program.search) {
2222
program.help();
2323
}
2424
else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coderoad-cli",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"description": "Command line interface for CodeRoad. Build project files.",
55
"keywords": [
66
"coderoad"

src/create/setup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "",
66
"contributers": [],
77
"main": "coderoad.json",
8-
"keywords": ["coderoad"],
8+
"keywords": ["coderoad", "tutorial"],
99
"dependencies": {},
1010
"devDependencies": {},
1111
"license": "MIT",

src/publish/publish.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ var validate_1 = require('./validate');
44
function publish(version) {
55
validate_1.default(version);
66
console.log("Publishing package version \"" + version + "\"...");
7-
console.log(chalk.red('Publish feature not implemented yet.'));
7+
console.log(chalk.yellow('Publish feature not implemented yet.\n'));
8+
console.log('To publish your tutorial package follow these instructions: \n');
9+
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 ");
10+
console.log("Publish your package to npm:\n > npm publish\n ");
811
}
912
Object.defineProperty(exports, "__esModule", { value: true });
1013
exports.default = publish;

src/search/search.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ var validate_1 = require('./validate');
44
function search(query) {
55
validate_1.validateQuery(query);
66
console.log("Searching for \"coderoad-" + query + "\"...");
7-
console.log(chalk.red('Search feature not fully implemented yet.'));
7+
console.log(chalk.yellow('Search feature not fully implemented yet.\n'));
8+
console.log('To search for tutorials follow the instructions below: \n');
9+
console.log("Search tutorials on npm:\n > npm search coderoad tutorial\n ");
810
}
911
Object.defineProperty(exports, "__esModule", { value: true });
1012
exports.default = search;

src/tutorials/tutorials.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var chalk = require('chalk');
33
function tutorials() {
44
console.log("List of tutorial packages...");
5-
console.log(chalk.red('"Tutorials" feature not implemented yet.'));
5+
console.log(chalk.yellow('"Tutorials" feature not implemented yet.'));
66
}
77
Object.defineProperty(exports, "__esModule", { value: true });
88
exports.default = tutorials;

0 commit comments

Comments
 (0)