folderimporter

1.0.17 • Public • Published

FolderImporter

Automatically generate imports for new .js files created in your folders

Install

npm install folderimporter -g

importrc.json

Add this file to your root directory

importrc.json Structure

This file imports styled-component's styled object to all js files inside my ./components dir

{
 "folders": [
   {
     "dir": "./components",
     "imports": [
             { "name": "styled-components", "objects": ["styled"]},
             { "name": "react", "objects": ["React"] }
]
   }
 ]
}

Start

to start the service open your terminal and type folderWatch

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i folderimporter

    Weekly Downloads

    1

    Version

    1.0.17

    License

    ISC

    Unpacked Size

    5.46 kB

    Total Files

    12

    Last publish

    Collaborators

    • pogojam