-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docz-core): add some improvements to work with server config
- Loading branch information
1 parent
ade98ce
commit 8bf33bc
Showing
10 changed files
with
188 additions
and
125 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
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
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,13 +1,15 @@ | ||
import { Bundler, IBundlerFactoryParams } from 'playgrodd-core' | ||
import { Configuration } from 'webpack' | ||
import { createBundler, IBundlerCreate } from 'playgrodd-core' | ||
import * as WebpackDevServer from 'webpack-dev-server' | ||
|
||
import { config, setup, server } from './config.dev' | ||
|
||
export const create = (params: IBundlerFactoryParams) => | ||
new Bundler<Configuration, WebpackDevServer>({ | ||
id: 'webpack', | ||
config: config(params), | ||
server: server(params), | ||
setup: setup(params), | ||
}) | ||
export const bundler: IBundlerCreate< | ||
Configuration, | ||
WebpackDevServer | ||
> = createBundler<Configuration, WebpackDevServer>({ | ||
id: 'webpack', | ||
config, | ||
server, | ||
setup, | ||
}) |
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
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
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
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
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,5 +1,5 @@ | ||
export { Paths } from './config/Paths' | ||
|
||
export { Server } from './server' | ||
export { Entry } from './Entry' | ||
export { Bundler, IBundlerFactoryParams } from './Bundler' | ||
export { createBundler, IBundlerCreate } from './Bundler' | ||
export { Server, ConfigArgs } from './server' |
Oops, something went wrong.