├── .eslintrc.json ├── .gitignore ├── .nvmrc ├── .prettierrc ├── .travis.yml ├── CHANGELOG.md ├── README.md ├── index.js ├── package.json └── src ├── __mocks__ └── fs.js ├── dirname ├── index.js └── index.test.js ├── follow-exports ├── index.js └── index.test.js ├── follow-props ├── index.js └── index.test.js ├── gather-all ├── index.js ├── index.test.js └── readme.md ├── get ├── index.js └── index.test.js ├── is-typescript-path ├── index.js └── index.test.js ├── metadata-merger ├── index.js └── index.test.js ├── metadata-parser ├── index.js └── tests │ ├── __fixtures__ │ ├── enums.ts │ ├── heading.tsx │ └── simple.ts │ ├── index.test.js │ └── ts.test.js ├── parse-jsdoc ├── index.js └── index.test.js ├── parser ├── component-resolve.js ├── index.js ├── parse.js ├── print.js ├── react-docgen-parse.js ├── react-docgen-parse.test.js └── visit.js ├── path-finder ├── index.js └── index.test.js ├── prepare-story ├── index.js └── index.test.js ├── promises ├── first.js ├── invert.js ├── promise.js └── tests │ ├── first.test.js │ ├── invert.test.js │ └── promise.test.js ├── read-file ├── index.js └── index.test.js ├── read-folder ├── index.js └── index.test.js ├── resolve-node-modules └── index.js ├── resolve-path ├── index.js └── index.test.js └── testkit-parser ├── __fixtures__ ├── driver.js └── driver2.js ├── get-comments.js ├── get-export.js ├── get-object-descriptor.js ├── index.js ├── index.test.js ├── tests ├── comments.test.js ├── export.test.js ├── imports.test.js ├── methods.test.js ├── nested-objects.test.js └── optimizations.test.js └── utils ├── find-identifier-node.js ├── flatten.js ├── follow-import.js ├── get-exported-node.js ├── get-return-value.js ├── is-testkit.js ├── is-testkit.test.js ├── optimizations.js ├── parse-driver.js └── reduce-to-object.js /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 8.9.1 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/.prettierrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/README.md -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/package.json -------------------------------------------------------------------------------- /src/__mocks__/fs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/__mocks__/fs.js -------------------------------------------------------------------------------- /src/dirname/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/dirname/index.js -------------------------------------------------------------------------------- /src/dirname/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/dirname/index.test.js -------------------------------------------------------------------------------- /src/follow-exports/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/follow-exports/index.js -------------------------------------------------------------------------------- /src/follow-exports/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/follow-exports/index.test.js -------------------------------------------------------------------------------- /src/follow-props/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/follow-props/index.js -------------------------------------------------------------------------------- /src/follow-props/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/follow-props/index.test.js -------------------------------------------------------------------------------- /src/gather-all/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/gather-all/index.js -------------------------------------------------------------------------------- /src/gather-all/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/gather-all/index.test.js -------------------------------------------------------------------------------- /src/gather-all/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/gather-all/readme.md -------------------------------------------------------------------------------- /src/get/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/get/index.js -------------------------------------------------------------------------------- /src/get/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/get/index.test.js -------------------------------------------------------------------------------- /src/is-typescript-path/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/is-typescript-path/index.js -------------------------------------------------------------------------------- /src/is-typescript-path/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/is-typescript-path/index.test.js -------------------------------------------------------------------------------- /src/metadata-merger/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/metadata-merger/index.js -------------------------------------------------------------------------------- /src/metadata-merger/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/metadata-merger/index.test.js -------------------------------------------------------------------------------- /src/metadata-parser/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/metadata-parser/index.js -------------------------------------------------------------------------------- /src/metadata-parser/tests/__fixtures__/enums.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/metadata-parser/tests/__fixtures__/enums.ts -------------------------------------------------------------------------------- /src/metadata-parser/tests/__fixtures__/heading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/metadata-parser/tests/__fixtures__/heading.tsx -------------------------------------------------------------------------------- /src/metadata-parser/tests/__fixtures__/simple.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/metadata-parser/tests/__fixtures__/simple.ts -------------------------------------------------------------------------------- /src/metadata-parser/tests/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/metadata-parser/tests/index.test.js -------------------------------------------------------------------------------- /src/metadata-parser/tests/ts.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/metadata-parser/tests/ts.test.js -------------------------------------------------------------------------------- /src/parse-jsdoc/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/parse-jsdoc/index.js -------------------------------------------------------------------------------- /src/parse-jsdoc/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/parse-jsdoc/index.test.js -------------------------------------------------------------------------------- /src/parser/component-resolve.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/parser/component-resolve.js -------------------------------------------------------------------------------- /src/parser/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/parser/index.js -------------------------------------------------------------------------------- /src/parser/parse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/parser/parse.js -------------------------------------------------------------------------------- /src/parser/print.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/parser/print.js -------------------------------------------------------------------------------- /src/parser/react-docgen-parse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/parser/react-docgen-parse.js -------------------------------------------------------------------------------- /src/parser/react-docgen-parse.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/parser/react-docgen-parse.test.js -------------------------------------------------------------------------------- /src/parser/visit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/parser/visit.js -------------------------------------------------------------------------------- /src/path-finder/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/path-finder/index.js -------------------------------------------------------------------------------- /src/path-finder/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/path-finder/index.test.js -------------------------------------------------------------------------------- /src/prepare-story/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/prepare-story/index.js -------------------------------------------------------------------------------- /src/prepare-story/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/prepare-story/index.test.js -------------------------------------------------------------------------------- /src/promises/first.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/promises/first.js -------------------------------------------------------------------------------- /src/promises/invert.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/promises/invert.js -------------------------------------------------------------------------------- /src/promises/promise.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/promises/promise.js -------------------------------------------------------------------------------- /src/promises/tests/first.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/promises/tests/first.test.js -------------------------------------------------------------------------------- /src/promises/tests/invert.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/promises/tests/invert.test.js -------------------------------------------------------------------------------- /src/promises/tests/promise.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/promises/tests/promise.test.js -------------------------------------------------------------------------------- /src/read-file/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/read-file/index.js -------------------------------------------------------------------------------- /src/read-file/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/read-file/index.test.js -------------------------------------------------------------------------------- /src/read-folder/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/read-folder/index.js -------------------------------------------------------------------------------- /src/read-folder/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/read-folder/index.test.js -------------------------------------------------------------------------------- /src/resolve-node-modules/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/resolve-node-modules/index.js -------------------------------------------------------------------------------- /src/resolve-path/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/resolve-path/index.js -------------------------------------------------------------------------------- /src/resolve-path/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/resolve-path/index.test.js -------------------------------------------------------------------------------- /src/testkit-parser/__fixtures__/driver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/__fixtures__/driver.js -------------------------------------------------------------------------------- /src/testkit-parser/__fixtures__/driver2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/__fixtures__/driver2.js -------------------------------------------------------------------------------- /src/testkit-parser/get-comments.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/get-comments.js -------------------------------------------------------------------------------- /src/testkit-parser/get-export.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/get-export.js -------------------------------------------------------------------------------- /src/testkit-parser/get-object-descriptor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/get-object-descriptor.js -------------------------------------------------------------------------------- /src/testkit-parser/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/index.js -------------------------------------------------------------------------------- /src/testkit-parser/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/index.test.js -------------------------------------------------------------------------------- /src/testkit-parser/tests/comments.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/tests/comments.test.js -------------------------------------------------------------------------------- /src/testkit-parser/tests/export.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/tests/export.test.js -------------------------------------------------------------------------------- /src/testkit-parser/tests/imports.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/tests/imports.test.js -------------------------------------------------------------------------------- /src/testkit-parser/tests/methods.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/tests/methods.test.js -------------------------------------------------------------------------------- /src/testkit-parser/tests/nested-objects.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/tests/nested-objects.test.js -------------------------------------------------------------------------------- /src/testkit-parser/tests/optimizations.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/tests/optimizations.test.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/find-identifier-node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/find-identifier-node.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/flatten.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/flatten.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/follow-import.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/follow-import.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/get-exported-node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/get-exported-node.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/get-return-value.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/get-return-value.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/is-testkit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/is-testkit.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/is-testkit.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/is-testkit.test.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/optimizations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/optimizations.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/parse-driver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/parse-driver.js -------------------------------------------------------------------------------- /src/testkit-parser/utils/reduce-to-object.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wix-incubator/react-autodocs-utils/HEAD/src/testkit-parser/utils/reduce-to-object.js --------------------------------------------------------------------------------