create-plugin-list.js 270 B

12345678910
  1. import { corePlugins } from '../src/corePlugins'
  2. import fs from 'fs'
  3. import path from 'path'
  4. let corePluginList = Object.keys(corePlugins)
  5. fs.writeFileSync(
  6. path.join(process.cwd(), 'src', 'corePluginList.js'),
  7. `export default ${JSON.stringify(corePluginList)}`
  8. )