VulcanJS / vulcanjs-cli

The official cli scaffolding tool for VulcanJS
36 stars 9 forks source link

Create new collections.js file in modules #30

Closed Neobii closed 4 years ago

Neobii commented 4 years ago

When creating a new module, the import statement should be above the routes and components import.

Neobii commented 4 years ago

I think we should create create a new collections.js file that imports all the collections make modules/index.js file like this:

import './collections'
import './routes';
import './components';

This way, your collections are always imported above the routes and components and whenever we generate a new module, it can just append it to the collections.js file.

Neobii commented 4 years ago

Here's the changes I need to make. Note, this is a different file structure convention that in the examples.