tquinlan1992-webpack-util
v2.0.54
Published
<h1 align="center">tquinlan1992-webpack-util and tquinlan1992-webpack-util-jest</h1>
Downloads
5
Readme
Custom typescript wrapper around webpack
- Install with npm:
npm install --save-dev tquinlan1992-webpack-util
- run with
tquinlan1992-webpack-util
- The config path is relative to package.json
- Default config path is
./tquinlan1992-webpack-util.config.json
- To run with a different config path use the flag --config to specify the path
tquinlan1992-webpack-util --config <config path>
- Use the flag
--watch
or-w
for the aliastquinlan1992-webpack-util --watch
- To run the dev server: use the flag
--devServer
or-d
for the aliastquinlan1992-webpack-util -devServer
- The watch flag is ignored when using the
--devServer
flag
- The watch flag is ignored when using the
{
"entry": "any file with extension ['.ts', '.tsx', '.js'] for index of app",
"appOutputFilename": "Name of bundled build javascript file",
"appOutputPath": "build path for app and publicDirOut",
"htmlTitle": "title of html file generated",
"publicDirSrc": "Path of static files (environment variables are recommended for this directory)",
"publicDirOut": "directory path relative to appOutputPath",
"tsconfig": "path of tsconfig.json file, defaults to ./tsconfig.json relative to project root"
}
{
"entry": "/src/app.tsx",
"appOutputFilename": "app.js",
"appOutputPath": "/build",
"htmlTitle": "Webpack",
"publicDirSrc": "/src/public/**/*",
"publicDirOut": "/public",
"urlBase": "hostname",
"port": "optional port for hostname",
"allowedHosts": "optional hosts allowed"
}
To run all tests
tquinlan1992-webpack-util-jest
- This runs the tests for
"(/__src__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?|ts?|js?)$"
- This runs the tests for
All jest cli commands can be used https://facebook.github.io/jest/docs/en/cli.html
#!/usr/bin/env node