Adding build script to package.json

This commit is contained in:
David Jay
2016-11-02 15:45:52 -07:00
parent 8f48f62b02
commit e805573bd4
3 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -8,7 +8,7 @@ module.exports = {
devtool: 'source-map',
entry: [
'babel-polyfill',
'./src/app'
path.join(__dirname, 'src', 'app')
],
output: {
path: path.join(__dirname, '..', '..','dist', 'coral-embed-stream'),
@@ -23,13 +23,13 @@ module.exports = {
},
plugins: [
new Copy([{
from: './index.html'
from: path.join(__dirname, 'index.html')
},
{
from: './style/default.css'
from: path.join(__dirname, 'style', 'default.css')
},
{
from: './public/',
from: path.join(__dirname, 'public'),
to: './'
},
{
+1
View File
@@ -6,6 +6,7 @@
"scripts": {
"lint": "eslint .",
"start": "./bin/www",
"build": "webpack --config ./client/coral-embed-stream/webpack.config.js",
"embed-start": "node client/coral-embed-stream/dev-server.js"
},
"repository": {
+1 -1
View File
@@ -3,7 +3,7 @@ const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
console.log('asset_id, should be assetTest', req.query.asset_id)
console.log('Stream endpoint has been hit with asset_id ', req.query.asset_id)
res.setHeader('Content-Type', 'application/json');
res.send(JSON.stringify([
{