Skip to content
프로젝트

소개

An online tree-like utility for generating ASCII folder structure diagrams. Written in TypeScript and React.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

tree.nathanfriend.io

GitLab build status

The tree.nathanfriend.io logo

What is this?

tree.nathanfriend.io is an online tree-like utility for generating ASCII folder structure diagrams.

It takes input like this:

my-project
  src
    index.html
    my-project.scss
  build
    index.html
    my-project.css

... and transforms it into an ASCII tree diagram like this:

.
└── my-project/
    ├── src/
    │   ├── index.html
    │   └── my-project.scss
    └── build/
        ├── index.html
        └── my-project.css

Why would I want this?

It's common to explain or discuss a file system structure on text-based sites like StackOverflow, GitLab, or GitHub. But generating a nice-looking diagram like the one above is painful by hand.

About the project

tree.nathanfriend.io is written in TypeScript and React/Redux.

Some other technologies this project uses:

tree implementation

If you're curious about this project's implementation of tree, check out src/lib/, and more specifically, src/lib/generate-tree.ts.

Developing

This project was bootstrapped with Create React App, so it contains all the scripts you know and love:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Deploying

This project is deployed automatically using GitLab CI/CD to GitLab Pages, so simply git push on master to trigger a new deployment. For more info, see this project's .gitlab-ci.yml.

관련 프로젝트 살펴보기

불러오는 중…