-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add typescript support * Add typescript support for boolean and func * Add boolean support * Add custom react-docgen-typescript * Commit libs * Fix package.json * Fix componentsIndex * Add bin support * Update react-docgen * Add typings * Do not include tests folder * bump version * Add exclude option * Fix tests * Add exclude option description and bump version * Remove lib from git * Add lib to gitignore * Update README and bump version * Fix tests * Fix typo * Update README localStorage
- Loading branch information
1 parent
4ea11d2
commit 4d031d1
Showing
12 changed files
with
128 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /usr/bin/env node | ||
const createBlueKit = require('../lib/createBlueKit').default; | ||
const path = require('path'); | ||
|
||
const argv = require('yargs') | ||
.usage('Usage: \nyarn bluekit -- --baseDir [./src/browser] --paths [./components/ ./auth]') | ||
.help('h') | ||
.alias('h', 'help') | ||
|
||
.describe('baseDir', 'your directory where components are located') | ||
|
||
.array('paths') | ||
.describe('paths', 'relative paths from base dir where to look for components') | ||
|
||
.boolean('noSpecialReplacements') | ||
.describe('noSpecialReplacements', 'set to true when providing simple components such as `export default function MyComponent() { <div>Hello</div> }`') | ||
|
||
.example('--baseDir ./src --paths ./components') | ||
.demand(['baseDir', 'paths']) | ||
|
||
.array('exclude') | ||
.describe('exclude', 'exclude files or directories from components listing`') | ||
.argv; | ||
|
||
const baseDir = path.join(process.cwd(), argv.baseDir); | ||
|
||
const config = { | ||
baseDir: baseDir, | ||
paths: [].concat(argv.paths), | ||
exclude: [].concat(argv.exclude), | ||
noSpecialReplacements: argv.noSpecialReplacements, | ||
gulp: { | ||
task: function() { } | ||
} | ||
} | ||
|
||
createBlueKit(config)(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as React from 'react'; | ||
|
||
interface BluekitProps { | ||
componentsIndex: Object; | ||
inline?: boolean; | ||
} | ||
|
||
export default class Bluekit extends React.Component<BluekitProps, any> { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters