structurized
Make sure to follow strict structure as defined
Last updated 5 months ago by mayursiinh .
MIT · Original npm · Tarball · package.json
$ cnpm install structurized 
SYNC missed versions from official npm registry.

Build Status DeepScan grade codecov

structurized

Follow defined structure of project.

npm i structurized --save-dev -g

Example

structure

output

1. Define structure at root of project

  • create structure.yml file at root path of project.
  • write rules of structure in human readable form.

structure.yml

root:
 - Folder1
 - Folder2
 - File.any

Nested folders.

root:
  - Folder1:
    - Folder1-1
    - Folder1-2
    - File1-1.js
  - Folder2
  - File.js

Use micromatch's matching features format to match multiple files/folders

root:
  - Routes:
    - matcher:
        match: "*.Routes.js"  #don't include dash here (before match)
  - Modals
  - index.js

Nest the matcher

root:
  - src:
    - Components:
      - matcher:
          match: "projectName-*"
          root:
            - index.js
    - Dashboard.js
  - index.js

Remember syntax for matcher, don't include dash before match as it will result in error.

2. Get report.

Type following command.

structurize

More features in upcoming versions.

Current Tags

  • 1.0.7                                ...           latest (5 months ago)

4 Versions

  • 1.0.7                                ...           5 months ago
  • 1.0.6                                ...           6 months ago
  • 1.0.5                                ...           6 months ago
  • 1.0.4                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |