-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: properly add barrel for nodejs API
Keep it undocumented for now, till I personally use and test them.
- Loading branch information
Showing
1 changed file
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,47 @@ | ||
import { CreateWebpackConfig } from './config/CreateWebpackConfig'; | ||
import { projectConfigDefault } from './config/project.config.default'; | ||
import { serverConfigDefault } from './config/server.config.default'; | ||
import { WebpackConfigHelper } from './config/WebpackConfigHelper'; | ||
import { Build } from './scripts/Build'; | ||
import { Server } from './scripts/Server'; | ||
|
||
// Expose our Nodejs APIs for applications not using as CLI | ||
// and for using with tools like jest | ||
|
||
// Expose all needed config functions, classes and interfaces | ||
export { | ||
typelang, | ||
getBabelConfig, | ||
getBabelPresetOptions, | ||
getDefaultBabelPresetOptions, | ||
} from './config/babelConfig'; | ||
|
||
export { CreateWebpackConfig, WpackConfig } from './config/CreateWebpackConfig'; | ||
|
||
export { | ||
CreateWebpackConfig, | ||
WebpackConfigHelper, | ||
WebpackConfigHelperConfig, | ||
} from './config/WebpackConfigHelper'; | ||
|
||
export { | ||
getProjectAndServerConfig, | ||
getProjectConfig, | ||
getServerConfig, | ||
validateProjectConfig, | ||
validateServerConfig, | ||
} from './config/getProjectAndServerConfig'; | ||
|
||
export { | ||
BannerConfig, | ||
EntryConfig, | ||
FileConfig, | ||
ProjectConfig, | ||
projectConfigDefault, | ||
webpackLoaderOptionsOverride, | ||
webpackOptionsOverrideFunction, | ||
} from './config/project.config.default'; | ||
|
||
export { | ||
ServerConfig, | ||
serverConfigDefault, | ||
Build, | ||
Server, | ||
}; | ||
} from './config/server.config.default'; | ||
|
||
// Expose all needed script classes | ||
export { Build } from './scripts/Build'; | ||
|
||
export { Server } from './scripts/Server'; | ||
|
||
export { Bootstrap, ProjectDependencies } from './scripts/Bootstrap'; |