Automatically generate imports for new .js files created in your folders
npm install folderimporter -g
Add this file to your root directory
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"] }
]
}
]
}
to start the service open your terminal and type
folderWatch