Update dependencies, template file, and docs

* Use git+https prefix in git-based npm dependencies
* Use ejs template for index to fix extraneous slash in path
* Remove outdated documentation
* Remove unused service
* Regenerate shrinkwrap
This commit is contained in:
gconsidine
2017-09-08 15:17:01 -04:00
parent c57c17546e
commit fba8a48d91
12 changed files with 35 additions and 898 deletions

View File

@@ -23,7 +23,7 @@ const STATIC_PATH = path.join(UI_PATH, 'static');
const APP_ENTRY = path.join(SOURCE_PATH, 'app.js');
const VENDOR_ENTRY = path.join(SOURCE_PATH, 'vendor.js');
const INDEX_ENTRY = path.join(CLIENT_PATH, 'index.template.html');
const INDEX_ENTRY = path.join(CLIENT_PATH, 'index.template.ejs');
const INDEX_OUTPUT = path.join(UI_PATH, 'templates/ui/index.html');
const THEME_ENTRY = path.join(LIB_PATH, 'theme', 'index.less');
const OUTPUT = 'js/[name].[hash].js';
@@ -39,7 +39,7 @@ let base = {
},
output: {
path: STATIC_PATH,
publicPath: '{{ STATIC_URL }}',
publicPath: '',
filename: OUTPUT
},
module: {
@@ -162,7 +162,7 @@ let base = {
alwaysWriteToDisk: true,
template: INDEX_ENTRY,
filename: INDEX_OUTPUT,
inject: 'head',
inject: false,
chunks: CHUNKS,
chunksSortMode: (moduleA, moduleB) => {
moduleA.files.sort((fileA, fileB) => fileA.includes('js') ? -1 : 1)

View File

@@ -7,7 +7,6 @@ const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin');
const TARGET_PORT = _.get(process.env, 'npm_package_config_django_port', 8043);
const TARGET_HOST = _.get(process.env, 'npm_package_config_django_host', 'https://localhost');
const TARGET = `https://${TARGET_HOST}:${TARGET_PORT}`;
const STATIC_URL = '/static/';
let development = require('./webpack.development');
@@ -18,8 +17,8 @@ let watch = {
],
devServer: {
contentBase: path.resolve(__dirname, '..', 'static'),
publicPath: STATIC_URL,
clientLogLevel: 'info',
publicPath: '/static/',
host: '127.0.0.1',
port: 3000,
proxy: {