Skip to content

Commit

Permalink
Add support for distributing webpack builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rjcorwin committed Aug 5, 2019
1 parent b256693 commit d90d7bd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
17 changes: 17 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import './tangy-form.js'
import './input/tangy-box.js'
import './input/tangy-input.js'
import './input/tangy-timed.js'
import './input/tangy-untimed-grid.js'
import './input/tangy-checkbox.js'
import './input/tangy-checkboxes.js'
import './input/tangy-checkboxes-dynamic.js'
import './input/tangy-radio-buttons.js'
import './input/tangy-select.js'
import './input/tangy-location.js'
import './input/tangy-gps.js'
import './input/tangy-acasi.js';
import './input/tangy-eftouch.js';
import './input/tangy-photo-capture.js';
import './input/tangy-qr.js';
import './input/tangy-consent.js';
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "tangy-form.js",
"scripts": {
"start": "polymer serve",
"build": "webpack",
"test": "polymer test"
},
"dependencies": {
Expand All @@ -30,7 +31,9 @@
"@polymer/iron-demo-helpers": "^3.0.0-pre.19",
"@webcomponents/webcomponentsjs": "^2.0.0",
"polymer-cli": "^1.7.2",
"wct-browser-legacy": "^1.0.0"
"wct-browser-legacy": "^1.0.0",
"webpack": "^4.39.1",
"webpack-cli": "^3.3.6"
},
"directories": {
"test": "test"
Expand Down
9 changes: 9 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const path = require('path');

module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
}
};

0 comments on commit d90d7bd

Please sign in to comment.