Added exports and install script

This commit is contained in:
jpellizzari
2017-01-17 13:40:51 -08:00
parent dee274e438
commit bfefa0902b
5 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@@ -56,3 +56,4 @@ vendor/github.com/ugorji/go/codec/codecgen/bin/*
client/build-external/*
prog/staticui/*
prog/externalui/*
client/dist

View File

@@ -1,4 +1,4 @@
{
"plugins": ["lodash"],
"plugins": ["lodash", "transform-export-extensions"],
"presets": ["es2015", "react"]
}

View File

@@ -1,5 +1,6 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true,

2
client/index.js Normal file
View File

@@ -0,0 +1,2 @@
exports.reducer = require('./dist/reducers/root').default;
exports.Scope = require('./dist/components/app').default;

View File

@@ -5,7 +5,10 @@
"repository": "weaveworks/scope",
"license": "Apache-2.0",
"private": true,
"main": "index.js",
"dependencies": {
"babel-plugin-transform-export-extensions": "^6.8.0",
"babel-plugin-lodash": "^3.2.10",
"babel-polyfill": "6.16.0",
"classnames": "2.2.5",
"d3-array": "1.0.2",
@@ -39,15 +42,16 @@
"reselect": "2.5.4",
"timely": "0.1.0",
"whatwg-fetch": "2.0.1",
"react-addons-perf": "15.4.1",
"xterm": "2.1.0"
},
"devDependencies": {
"autoprefixer": "6.5.3",
"babel-cli": "^6.18.0",
"babel-core": "6.18.2",
"babel-eslint": "7.1.1",
"babel-jest": "17.0.2",
"babel-loader": "6.2.8",
"babel-plugin-lodash": "3.2.10",
"babel-preset-es2015": "6.18.0",
"babel-preset-react": "6.16.0",
"clean-webpack-plugin": "0.1.14",
@@ -67,7 +71,6 @@
"json-loader": "0.5.4",
"node-sass": "3.13.1",
"postcss-loader": "1.2.0",
"react-addons-perf": "15.4.1",
"redux-devtools": "3.3.1",
"redux-devtools-dock-monitor": "1.1.1",
"redux-devtools-log-monitor": "1.1.1",
@@ -88,6 +91,8 @@
"scripts": {
"build": "webpack --config webpack.production.config.js",
"build-external": "EXTERNAL=true webpack --config webpack.production.config.js",
"build-pkg": "babel app/scripts --ignore __tests__ --out-dir dist",
"install": "npm run build-pkg",
"start": "node server.js",
"start-production": "NODE_ENV=production node server.js",
"test": "jest",