Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
UPDATE: 修改npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlq committed Aug 17, 2016
1 parent 159e357 commit a6b56d2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 40 deletions.
11 changes: 1 addition & 10 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
})();

;
exports.Upload = _Upload3.default;
13 changes: 1 addition & 12 deletions lib/utils/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
})();

;
};
17 changes: 1 addition & 16 deletions lib/utils/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
})();

;
};
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": {
Expand Down

0 comments on commit a6b56d2

Please sign in to comment.