From 1615269a7b2729661dbb73f921b88abbb63c5023 Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 21 Sep 2017 09:25:39 -0700 Subject: [PATCH] Browser stuff --- static/main.jsx | 2 ++ static/package.json | 6 ++++-- static/yarn.lock | 13 ++++++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/static/main.jsx b/static/main.jsx index dbdaacd..0d41e1c 100644 --- a/static/main.jsx +++ b/static/main.jsx @@ -17,6 +17,7 @@ class CodeArea extends React.Component { } submit(event) { + /* console.log("This", this.state.value); const options = { url: `${serverAddress}/input`, @@ -27,6 +28,7 @@ class CodeArea extends React.Component { console.log("resp", response); console.log("body", body); }); + */ } render() { diff --git a/static/package.json b/static/package.json index 87f8f16..3bd9e41 100644 --- a/static/package.json +++ b/static/package.json @@ -11,7 +11,8 @@ "browserify": "^14.4.0", "react": "^15.6.1", "react-dom": "^15.6.1", - "request": "^2.82.0" + "request": "^2.82.0", + "uglify-js": "^3.1.1" }, "babel": { "presets": [ @@ -20,6 +21,7 @@ ] }, "scripts": { - "build": "browserify main.jsx -t babelify -o bundle.js" + "build": "browserify main.jsx -t babelify -o bundle.js", + "build-minify": "browserify main.jsx -t babelify | uglifyjs > bundle.js" } } diff --git a/static/yarn.lock b/static/yarn.lock index 586f0b4..317e77d 100644 --- a/static/yarn.lock +++ b/static/yarn.lock @@ -783,6 +783,10 @@ combined-stream@^1.0.5, combined-stream@~1.0.5: dependencies: delayed-stream "~1.0.0" +commander@~2.11.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" + concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" @@ -1727,7 +1731,7 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" -source-map@^0.5.6, source-map@~0.5.3: +source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" @@ -1869,6 +1873,13 @@ ua-parser-js@^0.7.9: version "0.7.14" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.14.tgz#110d53fa4c3f326c121292bbeac904d2e03387ca" +uglify-js@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.1.1.tgz#e7144307281a1bc38a9a20715090b546c9f44791" + dependencies: + commander "~2.11.0" + source-map "~0.5.1" + umd@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/umd/-/umd-3.0.1.tgz#8ae556e11011f63c2596708a8837259f01b3d60e"