From a6b56d2bf8b67c21f3d0998360559466bf30825b Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 17 Aug 2016 20:52:25 +0800 Subject: [PATCH] =?UTF-8?q?UPDATE:=20=E4=BF=AE=E6=94=B9npm=20scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/index.js | 11 +---------- lib/utils/dom.js | 13 +------------ lib/utils/system.js | 17 +---------------- package.json | 6 ++++-- 4 files changed, 7 insertions(+), 40 deletions(-) diff --git a/lib/index.js b/lib/index.js index 759cb68c3..ee9d8f883 100644 --- a/lib/index.js +++ b/lib/index.js @@ -236,13 +236,4 @@ exports.InlineSelect = _InlineSelect3.default; exports.Alert = _Alert3.default; exports.Split = _Split3.default; exports.Container = _Container3.default; -exports.Upload = _Upload3.default; -; - -(function () { - if (typeof __REACT_HOT_LOADER__ === 'undefined') { - return; - } -})(); - -; \ No newline at end of file +exports.Upload = _Upload3.default; \ No newline at end of file diff --git a/lib/utils/dom.js b/lib/utils/dom.js index a3d8655be..e91539a1d 100644 --- a/lib/utils/dom.js +++ b/lib/utils/dom.js @@ -19,15 +19,4 @@ var isDescendentNode = exports.isDescendentNode = function isDescendentNode(ance parentNode = parentNode.parentNode; } return false; -}; -; - -(function () { - if (typeof __REACT_HOT_LOADER__ === 'undefined') { - return; - } - - __REACT_HOT_LOADER__.register(isDescendentNode, "isDescendentNode", "src/scripts/utils/dom.js"); -})(); - -; \ No newline at end of file +}; \ No newline at end of file diff --git a/lib/utils/system.js b/lib/utils/system.js index 1bc12d8f7..9f88cc88b 100644 --- a/lib/utils/system.js +++ b/lib/utils/system.js @@ -48,19 +48,4 @@ var unmanager = exports.unmanager = function unmanager(component) { document.body._popLayers = document.body._popLayers.filter(function (item) { return item !== component; }); -}; -; - -(function () { - if (typeof __REACT_HOT_LOADER__ === 'undefined') { - return; - } - - __REACT_HOT_LOADER__.register(init, 'init', 'src/scripts/utils/system.js'); - - __REACT_HOT_LOADER__.register(manager, 'manager', 'src/scripts/utils/system.js'); - - __REACT_HOT_LOADER__.register(unmanager, 'unmanager', 'src/scripts/utils/system.js'); -})(); - -; \ No newline at end of file +}; \ No newline at end of file diff --git a/package.json b/package.json index 84c449ba1..62b591613 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "impression-react", - "version": "0.2.1", + "version": "0.2.2", "author": "peter.shenlq", "description": "An enterprise-class UI design language and React-based implementation.", "main": "./lib/index.js", @@ -17,7 +17,9 @@ "compilejs": "node_modules/babel-cli/bin/babel.js src/scripts --out-dir lib", "compilescss": "sass src/styles/index.scss lib/index.css", "compileminscss": "sass --style compressed src/styles/index.scss lib/index.min.css", - "deploy": "npm run eslint && npm run scsslint && npm run clean && npm run compilejs && npm run compilescss && npm run compileminscss && npm run copy && npm publish" + "prebuild": "npm run eslint && npm run scsslint && npm run clean", + "build": "npm run compilejs && npm run compilescss && npm run compileminscss", + "postbuild": "npm run copy && npm publish" }, "homepage": "https://github.com/shenlq/impression", "dependencies": {