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

Readme

Keywords

none

Package Sidebar

Install

npm i folderimporter

Weekly Downloads

2

Version

1.0.17

License

ISC

Unpacked Size

5.46 kB

Total Files

12

Last publish

Collaborators

  • pogojam