Comments (4)
I don't think it makes sense to use a configuration file (yes another dot-file in the project for no good reason).
I'd say a variation of providing configuration in comment is a good approach, e.g.
// @create-index {"ignore": ["stories.(js)$"]}
- We keep the
// @create-index
comment as it. - We change the
// @create-index
check to allow arbitrary string to follow the comment. - We require assume that anything that follows
// @create-index
(on the same line) is a configuration object (defined as JSON).
This needs to be done in two PRs: (1) enable the above logic, (2) add ignore
configuration.
This is quite a substantial amount of work. Though, if you'd raise the PRs, I'd be happy to review and and publish it.
from create-index.
Was any work done on this feature?
from create-index.
@advance512 I had an unexpected problem with my health and I couldn't start working on it in the last few weeks. I think that I'll be able to start implementation in the next week.
from create-index.
Feel well, @hinok! Thanks for any help :)
from create-index.
Related Issues (20)
- README uses previous export syntax example HOT 1
- There is no check if the imported file has a default. HOT 2
- Add option to uppercase first char of export HOT 4
- Recursive option when using programmatically HOT 1
- Functions exported as default not picked up
- Include folder name in banner
- Importing created subdirectory index files HOT 5
- JSX Files HOT 2
- Add --output option to configure output file HOT 3
- Files with hyphen are ignored. HOT 1
- option to "disable" semicolon HOT 2
- implementation with .ts file maybe?
- [bug] can't read file or folder with "-"? HOT 5
- Tests don't work? HOT 2
- 'create-index' is not recognized as an internal or external command, operable program or batch file HOT 1
- Support creating index with default export HOT 9
- Use with typescript, add webpack plugin HOT 2
- Wrong casing in generated index.js
- Conflicts between files and folders with same name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-index.