-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add tests for webpack.config.js module exports
Adds `npm run test:buildconfig` command, and runs it during `npm test`. Replaces `;` with `&&` in `package.json` (Windows `cmd.exe` does not support `;`). Prerequisite for #1994
- Loading branch information
Showing
10 changed files
with
1,015 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,207 @@ | ||
[ | ||
{ | ||
"name": "js-all", | ||
"entry": "/packages/material-components-web/index.js", | ||
"output": { | ||
"path": "/build", | ||
"publicPath": "/assets/", | ||
"filename": "material-components-web.js", | ||
"libraryTarget": "umd", | ||
"library": "mdc" | ||
}, | ||
"devServer": { | ||
"disableHostCheck": true | ||
}, | ||
"devtool": "source-map", | ||
"module": { | ||
"rules": [ | ||
{ | ||
"test": {}, | ||
"exclude": {}, | ||
"loader": "babel-loader", | ||
"options": { | ||
"cacheDirectory": true | ||
} | ||
} | ||
] | ||
}, | ||
"plugins": [ | ||
{ | ||
"options": { | ||
"banner": "/*!\n Material Components for the web\n Copyright (c) 2018 Google Inc.\n License: Apache-2.0\n*/", | ||
"raw": true, | ||
"entryOnly": true | ||
}, | ||
"banner": "/*!\n Material Components for the web\n Copyright (c) 2018 Google Inc.\n License: Apache-2.0\n*/" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "demo-css", | ||
"entry": { | ||
"button": "/demos/button.scss", | ||
"card": "/demos/card.scss", | ||
"checkbox": "/demos/checkbox.scss", | ||
"chips": "/demos/chips.scss", | ||
"common": "/demos/common.scss", | ||
"dialog": "/demos/dialog.scss", | ||
"drawer/drawer": "/demos/drawer/drawer.scss", | ||
"elevation": "/demos/elevation.scss", | ||
"fab": "/demos/fab.scss", | ||
"grid-list": "/demos/grid-list.scss", | ||
"icon-toggle": "/demos/icon-toggle.scss", | ||
"index": "/demos/index.scss", | ||
"layout-grid": "/demos/layout-grid.scss", | ||
"linear-progress": "/demos/linear-progress.scss", | ||
"list": "/demos/list.scss", | ||
"menu": "/demos/menu.scss", | ||
"radio": "/demos/radio.scss", | ||
"ripple": "/demos/ripple.scss", | ||
"select": "/demos/select.scss", | ||
"slider": "/demos/slider.scss", | ||
"snackbar": "/demos/snackbar.scss", | ||
"switch": "/demos/switch.scss", | ||
"tabs": "/demos/tabs.scss", | ||
"text-field": "/demos/text-field.scss", | ||
"theme/theme-baseline": "/demos/theme/theme-baseline.scss", | ||
"theme/theme-black": "/demos/theme/theme-black.scss", | ||
"theme/theme-dark": "/demos/theme/theme-dark.scss", | ||
"theme/theme-white": "/demos/theme/theme-white.scss", | ||
"theme/theme-yellow": "/demos/theme/theme-yellow.scss", | ||
"toolbar/toolbar": "/demos/toolbar/toolbar.scss", | ||
"typography": "/demos/typography.scss" | ||
}, | ||
"output": { | ||
"path": "/build", | ||
"publicPath": "/assets/", | ||
"filename": "[name].css.js" | ||
}, | ||
"devtool": false, | ||
"module": { | ||
"rules": [ | ||
{ | ||
"test": {}, | ||
"use": [ | ||
{ | ||
"loader": "/node_modules/extract-text-webpack-plugin/dist/loader.js", | ||
"options": { | ||
"omit": 1, | ||
"remove": true | ||
} | ||
}, | ||
{ | ||
"loader": "style-loader" | ||
}, | ||
{ | ||
"loader": "css-loader", | ||
"options": { | ||
"sourceMap": false | ||
} | ||
}, | ||
{ | ||
"loader": "postcss-loader", | ||
"options": { | ||
"sourceMap": false | ||
} | ||
}, | ||
{ | ||
"loader": "sass-loader", | ||
"options": { | ||
"sourceMap": false, | ||
"includePaths": [ | ||
"/packages/material-components-web/node_modules", | ||
"/packages/mdc-button/node_modules", | ||
"/packages/mdc-card/node_modules", | ||
"/packages/mdc-checkbox/node_modules", | ||
"/packages/mdc-chips/node_modules", | ||
"/packages/mdc-dialog/node_modules", | ||
"/packages/mdc-drag-drop/node_modules", | ||
"/packages/mdc-drawer/node_modules", | ||
"/packages/mdc-elevation/node_modules", | ||
"/packages/mdc-fab/node_modules", | ||
"/packages/mdc-form-field/node_modules", | ||
"/packages/mdc-grid-list/node_modules", | ||
"/packages/mdc-icon-toggle/node_modules", | ||
"/packages/mdc-line-ripple/node_modules", | ||
"/packages/mdc-linear-progress/node_modules", | ||
"/packages/mdc-list/node_modules", | ||
"/packages/mdc-menu/node_modules", | ||
"/packages/mdc-radio/node_modules", | ||
"/packages/mdc-ripple/node_modules", | ||
"/packages/mdc-select/node_modules", | ||
"/packages/mdc-selection-control/node_modules", | ||
"/packages/mdc-slider/node_modules", | ||
"/packages/mdc-snackbar/node_modules", | ||
"/packages/mdc-switch/node_modules", | ||
"/packages/mdc-tabs/node_modules", | ||
"/packages/mdc-textfield/node_modules", | ||
"/packages/mdc-toolbar/node_modules" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"plugins": [ | ||
{ | ||
"filename": "[name].css", | ||
"id": 3, | ||
"options": {} | ||
}, | ||
{ | ||
"options": { | ||
"banner": "/*!\n Material Components for the web\n Copyright (c) 2018 Google Inc.\n License: Apache-2.0\n*/", | ||
"raw": true, | ||
"entryOnly": true | ||
}, | ||
"banner": "/*!\n Material Components for the web\n Copyright (c) 2018 Google Inc.\n License: Apache-2.0\n*/" | ||
}, | ||
{} | ||
] | ||
}, | ||
{ | ||
"name": "demo-js", | ||
"entry": { | ||
"common": [ | ||
"/demos/common.js" | ||
], | ||
"theme/index": [ | ||
"/demos/theme/index.js" | ||
] | ||
}, | ||
"output": { | ||
"path": "/build", | ||
"publicPath": "/assets/", | ||
"filename": "[name].js", | ||
"libraryTarget": "umd", | ||
"library": [ | ||
"demo", | ||
"[name]" | ||
] | ||
}, | ||
"devtool": "source-map", | ||
"module": { | ||
"rules": [ | ||
{ | ||
"test": {}, | ||
"exclude": {}, | ||
"loader": "babel-loader", | ||
"options": { | ||
"cacheDirectory": true | ||
} | ||
} | ||
] | ||
}, | ||
"plugins": [ | ||
{ | ||
"options": { | ||
"banner": "/*!\n Material Components for the web\n Copyright (c) 2018 Google Inc.\n License: Apache-2.0\n*/", | ||
"raw": true, | ||
"entryOnly": true | ||
}, | ||
"banner": "/*!\n Material Components for the web\n Copyright (c) 2018 Google Inc.\n License: Apache-2.0\n*/" | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.