├── .babelrc.js ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── ci.yml │ └── npm-publish.yml ├── .gitignore ├── .huskyrc.json ├── .lintstagedrc.json ├── .npmignore ├── .prettierignore ├── .prettierrc.json ├── .releaserc.json ├── .vscode └── launch.json ├── .yarn └── releases │ └── yarn-1.22.0.js ├── .yarnrc.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── assets ├── example.png ├── graph.png └── name.png ├── codecov.yml ├── jest.config.js ├── jsconfig.json ├── package.json ├── rollup.config.js ├── src ├── index.ts ├── index │ ├── formatFileStructure.ts │ ├── formatFileStructure │ │ ├── fixImports.ts │ │ ├── fixImports │ │ │ └── makeImportPath.ts │ │ ├── moveFiles.ts │ │ └── removeEmptyFolders.ts │ ├── generateTrees.ts │ ├── generateTrees │ │ ├── buildGraph.ts │ │ ├── findEntryPoints.ts │ │ ├── printTree.ts │ │ ├── shared │ │ │ ├── Graph.ts │ │ │ ├── findSharedParent.ts │ │ │ ├── isLinkedFile.ts │ │ │ └── isTestFile.ts │ │ ├── toFractalTree.ts │ │ └── toFractalTree │ │ │ └── hasCycle.ts │ ├── getFilePaths.ts │ ├── printHelpMessage.ts │ └── shared │ │ ├── RootOption.ts │ │ ├── customResolve.ts │ │ ├── detect-lonely-files.ts │ │ ├── fileWithoutExtension.ts │ │ └── findImports.ts └── shared │ └── logger.ts ├── tests ├── __snapshots__ │ ├── end-to-end.test.ts.snap │ └── printTree.test.ts.snap ├── build-graph.test.ts ├── detect-lonely-files.test.ts ├── end-to-end.test.ts ├── find-shared-parent.test.ts ├── findImports.test.ts ├── fixtures │ ├── commented-imports │ │ ├── existent.js │ │ └── index.js │ ├── cra │ │ ├── App.css │ │ ├── App.js │ │ ├── App.stories.js │ │ ├── App.test.js │ │ ├── index.css │ │ ├── index.js │ │ ├── logo.svg │ │ ├── serviceWorker.js │ │ └── setupTests.js │ ├── dir-and-file-same-name │ │ ├── cost-of-living.js │ │ └── cost-of-living │ │ │ └── index.js │ ├── duplicate-imports │ │ ├── home.js │ │ ├── index.js │ │ └── routes.js │ ├── duplicates │ │ ├── dir1 │ │ │ └── file.js │ │ ├── dir2 │ │ │ └── file.js │ │ ├── dir3 │ │ │ └── sub │ │ │ │ └── file.js │ │ ├── dir4 │ │ │ └── sub │ │ │ │ └── file.js │ │ ├── dir5 │ │ │ ├── index.js │ │ │ ├── sub1 │ │ │ │ ├── file.js │ │ │ │ └── file.spec.js │ │ │ └── sub2 │ │ │ │ ├── file.js │ │ │ │ └── file.spec.js │ │ └── index.js │ ├── globals │ │ ├── global.js │ │ └── src │ │ │ ├── helper.js │ │ │ └── index.js │ ├── index-cycle │ │ ├── home │ │ │ └── index.js │ │ ├── index.js │ │ ├── login │ │ │ └── index.js │ │ ├── routes │ │ │ └── index.js │ │ └── utils │ │ │ └── search.js │ ├── linked-files │ │ ├── __snapshots__ │ │ │ └── file1.spec.js.snap │ │ ├── file1.js │ │ ├── file1.spec.js │ │ ├── file1.story.js │ │ ├── img.png │ │ ├── img@2x.png │ │ ├── img@3x.png │ │ └── index.js │ ├── shared-with-dependencies │ │ ├── Area.config.js │ │ ├── Area.js │ │ ├── Area.module.scss │ │ ├── CheckboxWithLabel.js │ │ ├── CheckboxWithLabel.scss │ │ ├── ConfigForm.js │ │ ├── ConfigForm.module.scss │ │ ├── ParticipantSetup.js │ │ ├── ParticipantSetup.scss │ │ ├── ParticipantSetupForm.js │ │ ├── ParticipantSetupForm.scss │ │ ├── RadioBoxGroup.js │ │ ├── RadioBoxGroup.scss │ │ ├── SomeOtherResource.js │ │ ├── SomeOtherResource.module.scss │ │ └── index.js │ ├── sharing │ │ ├── footer │ │ │ └── index.js │ │ ├── header │ │ │ ├── helper.js │ │ │ └── index.js │ │ └── index.js │ ├── simple │ │ ├── home.js │ │ ├── index.js │ │ └── routes.js │ ├── single-file-folder │ │ ├── file.js │ │ └── page │ │ │ └── page.js │ └── spec-files │ │ ├── index.js │ │ ├── index.spec.js │ │ ├── level1.js │ │ ├── level1.spec.js │ │ ├── level2.js │ │ ├── level2.spec.js │ │ ├── util1.js │ │ └── util2.js ├── get-file-paths.test.ts ├── imports │ ├── commented-line │ │ ├── index.js │ │ └── module.js │ ├── es5-chained-variable-require │ │ ├── index.js │ │ ├── module1.js │ │ └── module2.js │ ├── es5-require │ │ ├── index.js │ │ └── module.js │ ├── es5-variable-require │ │ ├── index.js │ │ └── module.js │ ├── es6-alias-default │ │ ├── index.js │ │ └── module.js │ ├── es6-default │ │ ├── index.js │ │ └── module.js │ ├── es6-export-module │ │ ├── index.js │ │ └── module.js │ ├── es6-named │ │ ├── index.js │ │ └── module.js │ └── import-in-string │ │ ├── index.js │ │ └── module.js ├── logger.test.ts ├── make-import-path.test.ts ├── print-help-message.test.ts ├── printTree.test.ts └── to-fractal-tree.test.ts ├── tsconfig.json └── yarn.lock /.babelrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.babelrc.js -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.github/workflows/npm-publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .eslintcache 2 | lib 3 | node_modules 4 | tmp 5 | coverage 6 | Wallaby.js -------------------------------------------------------------------------------- /.huskyrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.huskyrc.json -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.lintstagedrc.json -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | tests 3 | .yarn 4 | assets -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.releaserc.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.yarn/releases/yarn-1.22.0.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.yarn/releases/yarn-1.22.0.js -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/README.md -------------------------------------------------------------------------------- /assets/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/assets/example.png -------------------------------------------------------------------------------- /assets/graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/assets/graph.png -------------------------------------------------------------------------------- /assets/name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/assets/name.png -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/codecov.yml -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/jest.config.js -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/jsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/index/formatFileStructure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/formatFileStructure.ts -------------------------------------------------------------------------------- /src/index/formatFileStructure/fixImports.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/formatFileStructure/fixImports.ts -------------------------------------------------------------------------------- /src/index/formatFileStructure/fixImports/makeImportPath.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/formatFileStructure/fixImports/makeImportPath.ts -------------------------------------------------------------------------------- /src/index/formatFileStructure/moveFiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/formatFileStructure/moveFiles.ts -------------------------------------------------------------------------------- /src/index/formatFileStructure/removeEmptyFolders.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/formatFileStructure/removeEmptyFolders.ts -------------------------------------------------------------------------------- /src/index/generateTrees.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees.ts -------------------------------------------------------------------------------- /src/index/generateTrees/buildGraph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees/buildGraph.ts -------------------------------------------------------------------------------- /src/index/generateTrees/findEntryPoints.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees/findEntryPoints.ts -------------------------------------------------------------------------------- /src/index/generateTrees/printTree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees/printTree.ts -------------------------------------------------------------------------------- /src/index/generateTrees/shared/Graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees/shared/Graph.ts -------------------------------------------------------------------------------- /src/index/generateTrees/shared/findSharedParent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees/shared/findSharedParent.ts -------------------------------------------------------------------------------- /src/index/generateTrees/shared/isLinkedFile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees/shared/isLinkedFile.ts -------------------------------------------------------------------------------- /src/index/generateTrees/shared/isTestFile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees/shared/isTestFile.ts -------------------------------------------------------------------------------- /src/index/generateTrees/toFractalTree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees/toFractalTree.ts -------------------------------------------------------------------------------- /src/index/generateTrees/toFractalTree/hasCycle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/generateTrees/toFractalTree/hasCycle.ts -------------------------------------------------------------------------------- /src/index/getFilePaths.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/getFilePaths.ts -------------------------------------------------------------------------------- /src/index/printHelpMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/printHelpMessage.ts -------------------------------------------------------------------------------- /src/index/shared/RootOption.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/shared/RootOption.ts -------------------------------------------------------------------------------- /src/index/shared/customResolve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/shared/customResolve.ts -------------------------------------------------------------------------------- /src/index/shared/detect-lonely-files.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/shared/detect-lonely-files.ts -------------------------------------------------------------------------------- /src/index/shared/fileWithoutExtension.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/shared/fileWithoutExtension.ts -------------------------------------------------------------------------------- /src/index/shared/findImports.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/index/shared/findImports.ts -------------------------------------------------------------------------------- /src/shared/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/src/shared/logger.ts -------------------------------------------------------------------------------- /tests/__snapshots__/end-to-end.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/__snapshots__/end-to-end.test.ts.snap -------------------------------------------------------------------------------- /tests/__snapshots__/printTree.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/__snapshots__/printTree.test.ts.snap -------------------------------------------------------------------------------- /tests/build-graph.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/build-graph.test.ts -------------------------------------------------------------------------------- /tests/detect-lonely-files.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/detect-lonely-files.test.ts -------------------------------------------------------------------------------- /tests/end-to-end.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/end-to-end.test.ts -------------------------------------------------------------------------------- /tests/find-shared-parent.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/find-shared-parent.test.ts -------------------------------------------------------------------------------- /tests/findImports.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/findImports.test.ts -------------------------------------------------------------------------------- /tests/fixtures/commented-imports/existent.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/commented-imports/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/commented-imports/index.js -------------------------------------------------------------------------------- /tests/fixtures/cra/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/cra/App.css -------------------------------------------------------------------------------- /tests/fixtures/cra/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/cra/App.js -------------------------------------------------------------------------------- /tests/fixtures/cra/App.stories.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/cra/App.stories.js -------------------------------------------------------------------------------- /tests/fixtures/cra/App.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/cra/App.test.js -------------------------------------------------------------------------------- /tests/fixtures/cra/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/cra/index.css -------------------------------------------------------------------------------- /tests/fixtures/cra/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/cra/index.js -------------------------------------------------------------------------------- /tests/fixtures/cra/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/cra/logo.svg -------------------------------------------------------------------------------- /tests/fixtures/cra/serviceWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/cra/serviceWorker.js -------------------------------------------------------------------------------- /tests/fixtures/cra/setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/cra/setupTests.js -------------------------------------------------------------------------------- /tests/fixtures/dir-and-file-same-name/cost-of-living.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/dir-and-file-same-name/cost-of-living/index.js: -------------------------------------------------------------------------------- 1 | require('../cost-of-living') -------------------------------------------------------------------------------- /tests/fixtures/duplicate-imports/home.js: -------------------------------------------------------------------------------- 1 | export const five = 5; 2 | -------------------------------------------------------------------------------- /tests/fixtures/duplicate-imports/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/duplicate-imports/index.js -------------------------------------------------------------------------------- /tests/fixtures/duplicate-imports/routes.js: -------------------------------------------------------------------------------- 1 | export * from "./home"; 2 | -------------------------------------------------------------------------------- /tests/fixtures/duplicates/dir1/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/duplicates/dir2/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/duplicates/dir3/sub/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/duplicates/dir4/sub/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/duplicates/dir5/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/duplicates/dir5/index.js -------------------------------------------------------------------------------- /tests/fixtures/duplicates/dir5/sub1/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/duplicates/dir5/sub1/file.spec.js: -------------------------------------------------------------------------------- 1 | require("./file"); 2 | -------------------------------------------------------------------------------- /tests/fixtures/duplicates/dir5/sub2/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/duplicates/dir5/sub2/file.spec.js: -------------------------------------------------------------------------------- 1 | require("./file"); 2 | -------------------------------------------------------------------------------- /tests/fixtures/duplicates/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/duplicates/index.js -------------------------------------------------------------------------------- /tests/fixtures/globals/global.js: -------------------------------------------------------------------------------- 1 | export const bob = 5; 2 | -------------------------------------------------------------------------------- /tests/fixtures/globals/src/helper.js: -------------------------------------------------------------------------------- 1 | require("../global"); 2 | export const five = 5; 3 | -------------------------------------------------------------------------------- /tests/fixtures/globals/src/index.js: -------------------------------------------------------------------------------- 1 | require("./helper"); 2 | -------------------------------------------------------------------------------- /tests/fixtures/index-cycle/home/index.js: -------------------------------------------------------------------------------- 1 | export const five = 5; 2 | -------------------------------------------------------------------------------- /tests/fixtures/index-cycle/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/index-cycle/index.js -------------------------------------------------------------------------------- /tests/fixtures/index-cycle/login/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/index-cycle/login/index.js -------------------------------------------------------------------------------- /tests/fixtures/index-cycle/routes/index.js: -------------------------------------------------------------------------------- 1 | export * from "../home"; 2 | -------------------------------------------------------------------------------- /tests/fixtures/index-cycle/utils/search.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/index-cycle/utils/search.js -------------------------------------------------------------------------------- /tests/fixtures/linked-files/__snapshots__/file1.spec.js.snap: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/linked-files/file1.js: -------------------------------------------------------------------------------- 1 | require('./img.png') -------------------------------------------------------------------------------- /tests/fixtures/linked-files/file1.spec.js: -------------------------------------------------------------------------------- 1 | require('./file1.js') -------------------------------------------------------------------------------- /tests/fixtures/linked-files/file1.story.js: -------------------------------------------------------------------------------- 1 | require('./file1.js') -------------------------------------------------------------------------------- /tests/fixtures/linked-files/img.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/linked-files/img@2x.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/linked-files/img@3x.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/linked-files/index.js: -------------------------------------------------------------------------------- 1 | require('./file1.js') -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/Area.config.js: -------------------------------------------------------------------------------- 1 | export const ONE = 1; 2 | -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/Area.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/shared-with-dependencies/Area.js -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/Area.module.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/CheckboxWithLabel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/shared-with-dependencies/CheckboxWithLabel.js -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/CheckboxWithLabel.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/ConfigForm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/shared-with-dependencies/ConfigForm.js -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/ConfigForm.module.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/ParticipantSetup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/shared-with-dependencies/ParticipantSetup.js -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/ParticipantSetup.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/ParticipantSetupForm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/shared-with-dependencies/ParticipantSetupForm.js -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/ParticipantSetupForm.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/RadioBoxGroup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/shared-with-dependencies/RadioBoxGroup.js -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/RadioBoxGroup.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/SomeOtherResource.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/shared-with-dependencies/SomeOtherResource.js -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/SomeOtherResource.module.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/shared-with-dependencies/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/shared-with-dependencies/index.js -------------------------------------------------------------------------------- /tests/fixtures/sharing/footer/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/sharing/footer/index.js -------------------------------------------------------------------------------- /tests/fixtures/sharing/header/helper.js: -------------------------------------------------------------------------------- 1 | export const five = 5; 2 | -------------------------------------------------------------------------------- /tests/fixtures/sharing/header/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/sharing/header/index.js -------------------------------------------------------------------------------- /tests/fixtures/sharing/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/sharing/index.js -------------------------------------------------------------------------------- /tests/fixtures/simple/home.js: -------------------------------------------------------------------------------- 1 | export const five = 5; 2 | -------------------------------------------------------------------------------- /tests/fixtures/simple/index.js: -------------------------------------------------------------------------------- 1 | import { five } from "./routes"; 2 | -------------------------------------------------------------------------------- /tests/fixtures/simple/routes.js: -------------------------------------------------------------------------------- 1 | export * from "./home"; 2 | -------------------------------------------------------------------------------- /tests/fixtures/single-file-folder/file.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/single-file-folder/file.js -------------------------------------------------------------------------------- /tests/fixtures/single-file-folder/page/page.js: -------------------------------------------------------------------------------- 1 | export const page = { 2 | name: 'page.ts' 3 | }; 4 | -------------------------------------------------------------------------------- /tests/fixtures/spec-files/index.js: -------------------------------------------------------------------------------- 1 | require("./level1"); 2 | -------------------------------------------------------------------------------- /tests/fixtures/spec-files/index.spec.js: -------------------------------------------------------------------------------- 1 | require("./index"); 2 | -------------------------------------------------------------------------------- /tests/fixtures/spec-files/level1.js: -------------------------------------------------------------------------------- 1 | require("./level2"); 2 | -------------------------------------------------------------------------------- /tests/fixtures/spec-files/level1.spec.js: -------------------------------------------------------------------------------- 1 | require("./level1"); 2 | -------------------------------------------------------------------------------- /tests/fixtures/spec-files/level2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/fixtures/spec-files/level2.js -------------------------------------------------------------------------------- /tests/fixtures/spec-files/level2.spec.js: -------------------------------------------------------------------------------- 1 | require("./level2"); 2 | -------------------------------------------------------------------------------- /tests/fixtures/spec-files/util1.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/spec-files/util2.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/get-file-paths.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/get-file-paths.test.ts -------------------------------------------------------------------------------- /tests/imports/commented-line/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/commented-line/index.js -------------------------------------------------------------------------------- /tests/imports/commented-line/module.js: -------------------------------------------------------------------------------- 1 | export default () => null; 2 | -------------------------------------------------------------------------------- /tests/imports/es5-chained-variable-require/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es5-chained-variable-require/index.js -------------------------------------------------------------------------------- /tests/imports/es5-chained-variable-require/module1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es5-chained-variable-require/module1.js -------------------------------------------------------------------------------- /tests/imports/es5-chained-variable-require/module2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es5-chained-variable-require/module2.js -------------------------------------------------------------------------------- /tests/imports/es5-require/index.js: -------------------------------------------------------------------------------- 1 | require("./module"); 2 | -------------------------------------------------------------------------------- /tests/imports/es5-require/module.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/imports/es5-variable-require/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es5-variable-require/index.js -------------------------------------------------------------------------------- /tests/imports/es5-variable-require/module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es5-variable-require/module.js -------------------------------------------------------------------------------- /tests/imports/es6-alias-default/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es6-alias-default/index.js -------------------------------------------------------------------------------- /tests/imports/es6-alias-default/module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es6-alias-default/module.js -------------------------------------------------------------------------------- /tests/imports/es6-default/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es6-default/index.js -------------------------------------------------------------------------------- /tests/imports/es6-default/module.js: -------------------------------------------------------------------------------- 1 | export default () => null; 2 | -------------------------------------------------------------------------------- /tests/imports/es6-export-module/index.js: -------------------------------------------------------------------------------- 1 | export * from "./module"; 2 | -------------------------------------------------------------------------------- /tests/imports/es6-export-module/module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es6-export-module/module.js -------------------------------------------------------------------------------- /tests/imports/es6-named/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es6-named/index.js -------------------------------------------------------------------------------- /tests/imports/es6-named/module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/es6-named/module.js -------------------------------------------------------------------------------- /tests/imports/import-in-string/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/imports/import-in-string/index.js -------------------------------------------------------------------------------- /tests/imports/import-in-string/module.js: -------------------------------------------------------------------------------- 1 | export default () => null; 2 | -------------------------------------------------------------------------------- /tests/logger.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/logger.test.ts -------------------------------------------------------------------------------- /tests/make-import-path.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/make-import-path.test.ts -------------------------------------------------------------------------------- /tests/print-help-message.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/print-help-message.test.ts -------------------------------------------------------------------------------- /tests/printTree.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/printTree.test.ts -------------------------------------------------------------------------------- /tests/to-fractal-tree.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tests/to-fractal-tree.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benawad/destiny/HEAD/yarn.lock --------------------------------------------------------------------------------