1.4.3 • Published 4 years ago

@ryall/namespacer v1.4.3

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
4 years ago

Namespacer

Generates namespaces from module paths in JS/TS.

! NOTE: This is mostly an internal package, so very little documentation is supplied !

Config example

module.exports = {
  paths: ['src'],
  patterns: ['**/*.ts', '!**/index*.ts', '!**/__@(tests|specs|mocks)__/**/*'],
  output: {
    barrel: '$.index.ts',
    namespace: '$.ts',
  },
  generation: {
    config: '$.config.json',
  },
  formatters: {
    namespace: (directory) => `${directory}$`,
  },
};
1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.0.0

4 years ago