mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 10:11:03 +00:00
Added exports and install script
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -56,3 +56,4 @@ vendor/github.com/ugorji/go/codec/codecgen/bin/*
|
||||
client/build-external/*
|
||||
prog/staticui/*
|
||||
prog/externalui/*
|
||||
client/dist
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"plugins": ["lodash"],
|
||||
"plugins": ["lodash", "transform-export-extensions"],
|
||||
"presets": ["es2015", "react"]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"extends": "airbnb",
|
||||
"parser": "babel-eslint",
|
||||
"env": {
|
||||
"browser": true,
|
||||
"jest": true,
|
||||
|
||||
2
client/index.js
Normal file
2
client/index.js
Normal file
@@ -0,0 +1,2 @@
|
||||
exports.reducer = require('./dist/reducers/root').default;
|
||||
exports.Scope = require('./dist/components/app').default;
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user