From b4bd5601d68d7f939c6bb214ba540a657b8ad065 Mon Sep 17 00:00:00 2001 From: Cymen Vig Date: Wed, 15 Apr 2015 11:53:19 -0700 Subject: [PATCH] Published module now compiled JSX * use 'jsx --harmony' to compile (run `npm run build`) * remove all of the unused files * sourcemaps and other concerns handled by consumer --- README.md | 4 - dist/react-progress.js | 160 +++++++++--------------------------- dist/react-progress.map | 1 - dist/react-progress.min.js | 2 - dist/react-progress.min.map | 1 - index.html | 153 ---------------------------------- index.js | 1 - package.json | 20 ++--- script/build | 8 -- script/build-watch | 2 - script/test | 2 - webpack.config.js | 18 ---- 12 files changed, 44 insertions(+), 328 deletions(-) delete mode 100644 dist/react-progress.map delete mode 100644 dist/react-progress.min.js delete mode 100644 dist/react-progress.min.map delete mode 100644 index.html delete mode 100644 index.js delete mode 100755 script/build delete mode 100755 script/build-watch delete mode 100755 script/test delete mode 100644 webpack.config.js diff --git a/README.md b/README.md index 0b1f718..bd93814 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,6 @@ Youtube style slim progress bar for React npm install react-progress ``` -## Demo - -http://cezary.github.io/react-progress/ - ## Example ```javascript diff --git a/dist/react-progress.js b/dist/react-progress.js index ddf1794..ce8cb61 100644 --- a/dist/react-progress.js +++ b/dist/react-progress.js @@ -1,128 +1,46 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("React")); - else if(typeof define === 'function' && define.amd) - define(["React"], factory); - else if(typeof exports === 'object') - exports["Progress"] = factory(require("React")); - else - root["Progress"] = factory(root["React"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; -/******/ -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.loaded = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ function(module, exports, __webpack_require__) { +var React = require('react'); - "use strict"; - - module.exports = __webpack_require__(1); +function merge(a, b) { + var object = {}; + Object.keys(a).forEach(function(key) { object[key] = a[key]; }); + Object.keys(b).forEach(function(key) { object[key] = b[key]; }); + return object; +} -/***/ }, -/* 1 */ -/***/ function(module, exports, __webpack_require__) { +module.exports = React.createClass({ + displayName: 'Progress', - "use strict"; - - var React = __webpack_require__(2); - - function merge(a, b) { - var object = {}; - Object.keys(a).forEach(function (key) { - object[key] = a[key]; - }); - Object.keys(b).forEach(function (key) { - object[key] = b[key]; - }); - return object; - } - - module.exports = React.createClass({ - displayName: "Progress", - - getDefaultProps: function () { - return { - height: 2, - percent: 0, - speed: 0.4, - style: {} - }; - }, - - render: function () { - var progressStyle = merge({ - display: "inline-block", - position: "fixed", - top: 0, - left: 0, - width: "" + this.props.percent + "%", - maxWidth: "100% !important", - height: "" + this.props.height + "px", - boxShadow: "1px 1px 1px rgba(0,0,0,0.4)", - borderRadius: "0 1px 1px 0", - WebkitTransition: "" + this.props.speed + "s width, " + this.props.speed + "s background-color", - transition: "" + this.props.speed + "s width, " + this.props.speed + "s background-color" - }, this.props.style); - - if (this.props.color && this.props.color !== "rainbow") { - progressStyle.backgroundColor = this.props.style.backgroundColor || this.props.color; - } else { - progressStyle.backgroundImage = this.props.style.backgroundImage || "linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #FF2D55)"; - progressStyle.backgroundSize = this.props.style.backgroundSize || "100vw " + this.props.height + "px"; - } - - return React.createElement("div", { className: "progress", style: progressStyle }); - } - }); + getDefaultProps: function() { + return { + height: 2, + percent: 0, + speed: .4, + style: {} + }; + }, -/***/ }, -/* 2 */ -/***/ function(module, exports, __webpack_require__) { + render: function () { + var progressStyle = merge({ + display: 'inline-block', + position: 'fixed', + top: 0, + left: 0, + width: (this.props.percent + "%"), + maxWidth: '100% !important', + height: (this.props.height + "px"), + boxShadow: '1px 1px 1px rgba(0,0,0,0.4)', + borderRadius: '0 1px 1px 0', + WebkitTransition: (this.props.speed + "s width, " + this.props.speed + "s background-color"), + transition: (this.props.speed + "s width, " + this.props.speed + "s background-color") + }, this.props.style); - module.exports = __WEBPACK_EXTERNAL_MODULE_2__; + if (this.props.color && this.props.color !== 'rainbow') { + progressStyle.backgroundColor = this.props.style.backgroundColor || this.props.color; + } else { + progressStyle.backgroundImage = this.props.style.backgroundImage || 'linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #FF2D55)'; + progressStyle.backgroundSize = this.props.style.backgroundSize || ("100vw " + this.props.height + "px"); + } -/***/ } -/******/ ]) + return React.createElement("div", {className: "progress", style: progressStyle}); + } }); - -//# sourceMappingURL=react-progress.map \ No newline at end of file diff --git a/dist/react-progress.map b/dist/react-progress.map deleted file mode 100644 index bb9ae77..0000000 --- a/dist/react-progress.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 8e9f28190cf411ac9419","webpack:///./index.js","webpack:///./lib/react-progress.js","webpack:///external \"React\""],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,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AA6B;AACxC,mBAAY,EAAE,aAAa;AAC3B,uBAAgB,OAAK,IAAI,CAAC,KAAK,CAAC,KAAK,iBAAY,IAAI,CAAC,KAAK,CAAC,KAAK,uBAAoB;AACrF,iBAAU,OAAK,IAAI,CAAC,KAAK,CAAC,KAAK,iBAAY,IAAI,CAAC,KAAK,CAAC,KAAK,uBAAoB;MAChF,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;;AAErB,SAAI,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,SAAS,EAAE;AACtD,oBAAa,CAAC,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;MACtF,MAAM;AACL,oBAAa,CAAC,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,IAAI,iFAAiF,CAAC;AACtJ,oBAAa,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,eAAa,IAAI,CAAC,KAAK,CAAC,MAAM,OAAI,CAAC;MAClG;;AAED,YAAO,6BAAK,SAAS,EAAC,UAAU,EAAC,KAAK,EAAE,aAAc,GAAO,CAAC;IAC/D;EACF,CAAC,C;;;;;;AC7CF,gD","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"React\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"React\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Progress\"] = factory(require(\"React\"));\n\telse\n\t\troot[\"Progress\"] = factory(root[\"React\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 8e9f28190cf411ac9419\n **/","module.exports = require('./lib/react-progress');\n\n\n\n/** WEBPACK FOOTER **\n ** ./index.js\n **/","var React = require('react');\n\nfunction merge(a, b) {\n var object = {};\n Object.keys(a).forEach(function(key) { object[key] = a[key]; });\n Object.keys(b).forEach(function(key) { object[key] = b[key]; });\n return object;\n}\n\nmodule.exports = React.createClass({\n displayName: 'Progress',\n\n getDefaultProps: function() {\n return {\n height: 2,\n percent: 0,\n speed: .4,\n style: {}\n };\n },\n\n render: function () {\n var progressStyle = merge({\n display: 'inline-block',\n position: 'fixed',\n top: 0,\n left: 0,\n width: `${this.props.percent}%`,\n maxWidth: '100% !important',\n height: `${this.props.height}px`,\n boxShadow: '1px 1px 1px rgba(0,0,0,0.4)',\n borderRadius: '0 1px 1px 0',\n WebkitTransition: `${this.props.speed}s width, ${this.props.speed}s background-color`,\n transition: `${this.props.speed}s width, ${this.props.speed}s background-color`\n }, this.props.style);\n\n if (this.props.color && this.props.color !== 'rainbow') {\n progressStyle.backgroundColor = this.props.style.backgroundColor || this.props.color;\n } else {\n progressStyle.backgroundImage = this.props.style.backgroundImage || 'linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #FF2D55)';\n progressStyle.backgroundSize = this.props.style.backgroundSize || `100vw ${this.props.height}px`;\n }\n\n return
;\n }\n});\n\n\n\n/** WEBPACK FOOTER **\n ** ./lib/react-progress.js\n **/","module.exports = __WEBPACK_EXTERNAL_MODULE_2__;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"React\"\n ** module id = 2\n ** module chunks = 0\n **/"],"sourceRoot":"","file":"./dist/react-progress.js"} \ No newline at end of file diff --git a/dist/react-progress.min.js b/dist/react-progress.min.js deleted file mode 100644 index 01381ea..0000000 --- a/dist/react-progress.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory(require("React")):"function"==typeof define&&define.amd?define(["React"],factory):"object"==typeof exports?exports.Progress=factory(require("React")):root.Progress=factory(root.React)}(this,function(__WEBPACK_EXTERNAL_MODULE_2__){return function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p="",__webpack_require__(0)}([function(module,exports,__webpack_require__){"use strict";module.exports=__webpack_require__(1)},function(module,exports,__webpack_require__){"use strict";function merge(a,b){var object={};return Object.keys(a).forEach(function(key){object[key]=a[key]}),Object.keys(b).forEach(function(key){object[key]=b[key]}),object}var React=__webpack_require__(2);module.exports=React.createClass({displayName:"Progress",getDefaultProps:function(){return{height:2,percent:0,speed:.4,style:{}}},render:function(){var progressStyle=merge({display:"inline-block",position:"fixed",top:0,left:0,width:""+this.props.percent+"%",maxWidth:"100% !important",height:""+this.props.height+"px",boxShadow:"1px 1px 1px rgba(0,0,0,0.4)",borderRadius:"0 1px 1px 0",WebkitTransition:""+this.props.speed+"s width, "+this.props.speed+"s background-color",transition:""+this.props.speed+"s width, "+this.props.speed+"s background-color"},this.props.style);return this.props.color&&"rainbow"!==this.props.color?progressStyle.backgroundColor=this.props.style.backgroundColor||this.props.color:(progressStyle.backgroundImage=this.props.style.backgroundImage||"linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #FF2D55)",progressStyle.backgroundSize=this.props.style.backgroundSize||"100vw "+this.props.height+"px"),React.createElement("div",{className:"progress",style:progressStyle})}})},function(module){module.exports=__WEBPACK_EXTERNAL_MODULE_2__}])}); -//# sourceMappingURL=react-progress.min.map \ No newline at end of file diff --git a/dist/react-progress.min.map b/dist/react-progress.min.map deleted file mode 100644 index a37f941..0000000 --- a/dist/react-progress.min.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dist/react-progress.min.js","sources":["dist/react-progress.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_2__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","merge","a","b","object","Object","keys","forEach","key","React","createClass","displayName","getDefaultProps","height","percent","speed","style","render","progressStyle","display","position","top","left","width","props","maxWidth","boxShadow","borderRadius","WebkitTransition","transition","color","backgroundColor","backgroundImage","backgroundSize","createElement","className"],"mappings":"CAAA,SAA2CA,KAAMC,SAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,QAAQG,QAAQ,UACR,kBAAXC,SAAyBA,OAAOC,IAC9CD,QAAQ,SAAUJ,SACQ,gBAAZC,SACdA,QAAkB,SAAID,QAAQG,QAAQ,UAEtCJ,KAAe,SAAIC,QAAQD,KAAY,QACtCO,KAAM,SAASC,+BAClB,MAAgB,UAAUC,SAKhB,QAASC,qBAAoBC,UAG5B,GAAGC,iBAAiBD,UACnB,MAAOC,kBAAiBD,UAAUT,OAGnC,IAAIC,QAASS,iBAAiBD,WAC7BT,WACAW,GAAIF,SACJG,QAAQ,EAUT,OANAL,SAAQE,UAAUI,KAAKZ,OAA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,eAAiB5C,KAAKmC,MAAMR,MAAMiB,gBAAkB,SAAW5C,KAAKmC,MAAMX,OAAS,MAG5FJ,MAAMyB,cAAc,OAASC,UAAW,WAAYnB,MAAOE,oBAMjE,SAASjC,QAEdA,OAAOD,QAAUM"} \ No newline at end of file diff --git a/index.html b/index.html deleted file mode 100644 index e97913f..0000000 --- a/index.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - React Progress - - - - - - - - - diff --git a/index.js b/index.js deleted file mode 100644 index 24ccb9e..0000000 --- a/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./lib/react-progress'); diff --git a/package.json b/package.json index eff78c6..44e966b 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,10 @@ { "name": "react-progress", - "version": "0.0.2", + "version": "0.0.3", "description": "Youtube style progress bar for React", - "main": "lib/react-progress.js", + "main": "dist/react-progress.js", "scripts": { - "test": "script/test --browsers Firefox --single-run", - "start": "script/build" - }, - "browserify": { - "transform": [ - "reactify" - ] + "build": "./node_modules/react-tools/bin/jsx --harmony lib/react-progress.js > dist/react-progress.js" }, "repository": { "type": "git", @@ -28,13 +22,9 @@ }, "homepage": "https://github.com/cezary/react-progress", "peerDependencies": { - "react": "^0.12.1" + "react": ">= 0.12.0 < 0.14.0" }, "devDependencies": { - "6to5-loader": "^2.0.0", - "reactify": "^0.17.1", - "uglify-js": "^2.4.15", - "webpack": "^1.4.13", - "webpack-dev-server": "^1.6.6" + "react-tools": "^0.13.1" } } diff --git a/script/build b/script/build deleted file mode 100755 index 408026f..0000000 --- a/script/build +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -webpack --devtool source-map - -node_modules/.bin/uglifyjs dist/react-progress.js \ - --output dist/react-progress.min.js \ - --source-map dist/react-progress.min.map \ - --source-map-url react-progress.min.map \ - --compress warnings=false diff --git a/script/build-watch b/script/build-watch deleted file mode 100755 index 0b76a30..0000000 --- a/script/build-watch +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -webpack --watch --devtool inline-source-map diff --git a/script/test b/script/test deleted file mode 100755 index 332ffda..0000000 --- a/script/test +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -node_modules/.bin/karma start "$@" diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index ec9619f..0000000 --- a/webpack.config.js +++ /dev/null @@ -1,18 +0,0 @@ -module.exports = { - entry: './index.js', - output: { - filename: './dist/react-progress.js', - sourceMapFilename: './dist/react-progress.map', - library: 'Progress', - libraryTarget: 'umd' - }, - externals: { - 'react': 'React', - 'react/addons': 'React' - }, - module: { - loaders: [ - {test: /\.js$/, loader: '6to5-loader'} - ] - } -};