Remove the index.js indirection

Make index.es6 the main entry point.
This commit is contained in:
Lars Karlitski 2017-10-17 17:18:31 +02:00
parent 5ab75da325
commit 5905c84f54
3 changed files with 4 additions and 31 deletions

View file

@ -17,6 +17,8 @@
* You should have received a copy of the GNU Lesser General Public License
* along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
*/
import 'cockpit';
import React from 'react';
import { StarterKit } from './starter-kit-view.jsx';
@ -30,10 +32,4 @@ function render() {
);
}
/**
* Start the application.
*/
export function run() {
// do initial render
render();
}
document.addEventListener("DOMContentLoaded", render);

View file

@ -1,23 +0,0 @@
/*
* Copyright (C) 2017 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* Cockpit is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this package; If not, see <http://www.gnu.org/licenses/>.
*/
var cockpit = require("cockpit");
document.addEventListener("DOMContentLoaded", function() {
var app = require("./index.es6");
app.run();
});

View file

@ -21,7 +21,7 @@ var production = process.env.NODE_ENV === 'production';
var info = {
entries: {
"index": [
"./index.js"
"./index.es6"
]
},
files: [