Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Upgrade to launchpad 102
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonLaster committed Oct 11, 2017
1 parent 223d2a7 commit 29aa7fd
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 67 deletions.
2 changes: 2 additions & 0 deletions bin/dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const toolbox = require("devtools-launchpad/index");
const feature = require("devtools-config");
const getConfig = require("./getConfig");
const express = require("express");
const serve = require("express-static");

const envConfig = getConfig();
feature.setConfig(envConfig);
Expand All @@ -14,6 +15,7 @@ let webpackConfig = require("../webpack.config");
let { app } = toolbox.startDevServer(envConfig, webpackConfig, __dirname);

app.use("/integration/examples", express.static("src/test/mochitest/examples"));
app.use("/images", serve(path.join(__dirname, "../assets/images")));

console.log("View debugger examples here:");
console.log("https://github.com/devtools-html/debugger-examples");
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@
"babylon": "^6.18.0",
"codemirror": "^5.28.0",
"devtools-components": "^0.0.2",
"devtools-launchpad": "^0.0.100",
"devtools-launchpad": "0.0.102-rc20",
"devtools-linters": "^0.0.3",
"devtools-map-bindings": "^0.2.0",
"devtools-reps": "^0.12.3",
"devtools-source-editor": "0.0.6",
"devtools-source-map": "^0.14.2",
"devtools-splitter": "^0.0.3",
"devtools-source-map": "^0.14.3",
"devtools-splitter": "^0.0.4",
"devtools-utils": "^0.0.9",
"fuzzaldrin-plus": "^0.4.1",
"immutable": "^3.7.6",
Expand Down Expand Up @@ -111,7 +111,7 @@
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
"babel-preset-react": "^6.24.1",
"chalk": "^2.1.0",
"devtools-license-check": "^0.5.0",
"devtools-license-check": "^0.5.1",
"documentation": "^5.2.1",
"enzyme": "^2.9.1",
"eslint": "^4.2.0",
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function buildConfig(envConfig) {
const extra = {};
if (isDevelopment()) {
webpackConfig.plugins = [];

webpackConfig.module = webpackConfig.module || {};
webpackConfig.module.rules = webpackConfig.module.rules || [];
} else {
webpackConfig.plugins = [];
webpackConfig.output.libraryTarget = "umd";
Expand Down
Loading

0 comments on commit 29aa7fd

Please sign in to comment.