Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Convert/typescript#3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 5 commits intomasterfromconvert/typescript
May 30, 2020
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
fix build for ts
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
@ShMcK
ShMcK committedMay 30, 2020
commitaeaab0bf6967232610a5f1426dc84f0584a9d35d
6 changes: 3 additions & 3 deletionssrc/build.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
import simpleGit from "simple-git/promise";
import * as yamlParser from "js-yaml";
import * as path from "path";
import * as _ from "lodash";
import * as fs from "fs";
import * as T from "../typings/tutorial";
// import validate from './validator';

// import not working
const simpleGit = require("simple-git/promise");

const workingDir = "tmp";

type TutorialContent = {};
Expand DownExpand Up@@ -174,8 +176,6 @@ async function build({ repo, codeBranch, setupBranch, isLocal }: BuildOptions) {
// Add one more line to the content as per Shawn's request
const mdContent: any = parseContent(_mdContent);

console.log(mdContent);

// Parse tutorial to JSON
const tutorial: T.Tutorial = yamlParser.load(_tutorial);

Expand Down
5 changes: 1 addition & 4 deletionssrc/cli.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
import * as inquirer from "inquirer";
import simpleGit from "simple-git/promise";
import * as fs from "fs";
import * as T from "../typings/tutorial";
import build, { BuildOptions } from "./build";
import create from "./create";

// import not working
const arg = require("arg");
const simpleGit = require("simple-git/promise");

type Q = inquirer.Question<any> & { choices?: string[] };

Expand DownExpand Up@@ -51,7 +51,6 @@ function parseArgumentsIntoOptions(rawArgs: string[]): ParsedArgs {
argv: rawArgs.slice(2),
}
);
console.log(args);
return {
command: args["_"][0],
git: args["--git"],
Expand DownExpand Up@@ -169,7 +168,6 @@ export async function cli(args: string[]): Promise<void> {
case "build":
// Otherwise, continue with the other options
const options: BuildOptions = await promptForMissingOptions(parsedArgs);
console.log(options);
const tutorial: T.Tutorial = await build(options);

if (tutorial) {
Expand All@@ -182,7 +180,6 @@ export async function cli(args: string[]): Promise<void> {
break;

case "create":
console.log("here");
create(process.cwd());
break;
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp