Skip to content

Commit

Permalink
Moved converted files to a src/ folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Jul 18, 2017
1 parent 11c5a2b commit b6bd583
Show file tree
Hide file tree
Showing 19 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[include]
./lib
./src

[ignore]
.*/node_modules/.*
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Node's first framework for building immersive CLI apps.",
"main": "./lib/vorpal.js",
"scripts": {
"build": "build-lib ./lib -d ./dist",
"build": "build-lib ./src -d ./dist",
"flow": "type-check",
"lint": "run-linter ./lib",
"lint": "run-linter ./src",
"lint:only": "run-linter",
"test": "yarn run build && mocha"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/command.js → src/Command.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow

import EventEmitter from 'events';
import Option from './option';
import Option from './Option';
// import camelCase from './utils/camelCase';
import humanReadableArgName from './utils/humanReadableArgName';
import pad from './utils/pad';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions lib/types.js → src/types.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @flow
/* eslint-disable no-use-before-define */

import type Command from './command';
import type CommandInstance from './command-instance';
import type Session from './session';
import type Command from './Command';
import type CommandInstance from '../lib/command-instance';
import type Session from '../lib/session';

export type ActionCallback = (
args: CommandArgs,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// @flow
import Command from '../command';

import isDefined from './isDefined';
import padRow from './padRow';
import parseArgs from './parseArgs';

import type Command from '../Command';
import type { CommandArgs, CommandExecutionItem } from '../types';

const PAIR_NORMALIZE_PATTERN: RegExp = /(['"]?)(\w+)=(?:(['"])((?:(?!\3).)*)\3|(\S+))\1/g;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @flow

import type { Argument } from '../types';

/**
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/utils/matchCommand.js → src/utils/matchCommand.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import Command from '../command';

import type Command from '../Command';
import type { InputCommand } from '../types';

/**
Expand Down
1 change: 1 addition & 0 deletions lib/utils/pad.js → src/utils/pad.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @flow

import strip from 'strip-ansi';

/**
Expand Down
1 change: 1 addition & 0 deletions lib/utils/padRow.js → src/utils/padRow.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @flow

import { PADDING } from '../constants';

/**
Expand Down
1 change: 1 addition & 0 deletions lib/utils/parseArgs.js → src/utils/parseArgs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @flow

import minimist from 'minimist';

import type { CLIArgs } from 'minimist';
Expand Down
3 changes: 2 additions & 1 deletion lib/utils/parseCommand.js → src/utils/parseCommand.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// @flow
import Command from '../command';

import matchCommand from './matchCommand';

import type Command from '../Command';
import type { InputCommand } from '../types';

/**
Expand Down
1 change: 1 addition & 0 deletions lib/utils/prettifyArray.js → src/utils/prettifyArray.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @flow

import strip from 'strip-ansi';
import pad from './pad';
import { PADDING_SIZE } from '../constants';
Expand Down

0 comments on commit b6bd583

Please sign in to comment.