forked from boranton/testcafe-workshop
💣 boom! Adding webpack
This commit is contained in:
parent
674b1c6db4
commit
80e3ad69c8
@ -39,13 +39,6 @@
|
|||||||
<p>Refactored by <a href="https://github.com/cburgmer">Christoph Burgmer</a></p>
|
<p>Refactored by <a href="https://github.com/cburgmer">Christoph Burgmer</a></p>
|
||||||
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
|
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="node_modules/todomvc-common/base.js"></script>
|
<script src="bundle.js"></script>
|
||||||
<script src="js/helpers.js"></script>
|
|
||||||
<script src="js/store.js"></script>
|
|
||||||
<script src="js/model.js"></script>
|
|
||||||
<script src="js/template.js"></script>
|
|
||||||
<script src="js/view.js"></script>
|
|
||||||
<script src="js/controller.js"></script>
|
|
||||||
<script src="js/app.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,4 +1,11 @@
|
|||||||
/*global app, $on */
|
/*global app, $on */
|
||||||
|
require('todomvc-common');
|
||||||
|
require('./view');
|
||||||
|
require('./helpers');
|
||||||
|
require('./controller');
|
||||||
|
require('./model');
|
||||||
|
require('./store');
|
||||||
|
require('./template');
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*global qs, qsa, $on, $parent, $delegate */
|
/*global qs, qsa, $on, $parent, $delegate */
|
||||||
|
require('./helpers');
|
||||||
(function (window) {
|
(function (window) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|||||||
6
package.json
Executable file → Normal file
6
package.json
Executable file → Normal file
@ -5,6 +5,10 @@
|
|||||||
"todomvc-app-css": "2.0.1"
|
"todomvc-app-css": "2.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jasmine-core": "2.3.4"
|
"babel": "5.8.21",
|
||||||
|
"babel-core": "5.8.21",
|
||||||
|
"babel-loader": "5.3.2",
|
||||||
|
"jasmine-core": "2.3.4",
|
||||||
|
"webpack": "1.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
14
webpack.config.js
Normal file
14
webpack.config.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
var path = require('path');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
entry: './app.js',
|
||||||
|
output: {
|
||||||
|
filename: 'bundle.js',
|
||||||
|
path: here()
|
||||||
|
},
|
||||||
|
context: here('js')
|
||||||
|
};
|
||||||
|
|
||||||
|
function here(d) {
|
||||||
|
return d ? path.join(__dirname, d) : __dirname;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user