Skip to content

A tool that can help you in exporting JS project in a nonstandard way

License

Notifications You must be signed in to change notification settings

E0SelmY4V/jexpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jexpt - JS Export Tool

Through this tool, You can export your project like:

// index.js
require('jexpt')(exports, require).merge(
  'lib/ooo',
  'xxx',
).pack(
  { bar: 'lib/bar' },
  'foo',
);
// index.d.ts
export * from './lib/ooo'
export * from './xxx'
export * as bar from './lib/bar'
export * as foo from './foo'

Besides, there is another way to export, which packaging tools understand:

// index.js
require('jexpt')(
  exports,
  require('./lib/ooo'),
  require('./xxx'),
  {
    bar: require('./lib/bar'),
    foo: require('./foo'),
  }
);

About

A tool that can help you in exporting JS project in a nonstandard way

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published