+ Subscriptions
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/index.js b/src/index.js
index e69de29..7bdd5b0 100644
--- a/src/index.js
+++ b/src/index.js
@@ -0,0 +1,24 @@
+/*
+ * This file is part of Cockpit.
+ *
+ * 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 subscription-manager; If not, see .
+ */
+
+var cockpit = require("cockpit");
+
+document.addEventListener("DOMContentLoaded", function() {
+ console.log("subscription-manager loaded");
+});
diff --git a/src/manifest.json b/src/manifest.json
new file mode 100644
index 0000000..587b9c3
--- /dev/null
+++ b/src/manifest.json
@@ -0,0 +1,12 @@
+{
+ "version": "0.1",
+ "requires": {
+ "cockpit": "138"
+ },
+
+ "tools": {
+ "index": {
+ "label": "subscription-manager"
+ }
+ }
+}
diff --git a/webpack.config.js b/webpack.config.js
index 0addb49..0365de9 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -2,6 +2,10 @@ const path = require("path");
const copy = require("copy-webpack-plugin");
const fs = require("fs");
+var externals = {
+ "cockpit": "cockpit",
+};
+
/* These can be overridden, typically from the Makefile.am */
const srcdir = (process.env.SRCDIR || __dirname) + path.sep + "src";
const builddir = (process.env.SRCDIR || __dirname);
@@ -15,8 +19,9 @@ var info = {
]
},
files: [
- "index.html"
- ]
+ "index.html",
+ "manifest.json",
+ ],
};
var output = {
@@ -71,6 +76,7 @@ var plugins = [
module.exports = {
entry: info.entries,
+ externals: externals,
output: output,
module: {
rules: [