2.3.0 • Published 1 year ago

@cc-heart/gen-index-export v2.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

gen-index-export

In index.js, it is always necessary to import all the files under a module (eg export * from './foo').

Using this package you can parse all exported files in a certain path now support the suffix 'vue', 'ts', and' tsx '

Usage

npm install -D @cc-heart/gen-index-export

create the gen-export.config.js file in the root path of your project project, and write to the following configuration file:

import { defineConfig } from '@cc-heart/gen-index-export'
export default defineConfig({
  dirs: [{ path: 'src/components', output: 'src/components/index.ts' }],
})

Configure the scripts property in package.json

{
    "scripts": {
    "exports": "npx gen-index-export"
  },
}

Use npm run exports, You can generate the default export items or all export items based on the directory

2.3.0

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.3.0

2 years ago

0.1.2

2 years ago

0.2.0

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.15

2 years ago

0.0.9

2 years ago

0.0.16

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago