国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專(zhuān)欄INFORMATION COLUMN

react - 0.14 src 目錄 文件分析

lastSeries / 1058人閱讀

摘要:分析腳本文件分析去除測(cè)試文件分析結(jié)果去除測(cè)試文件,個(gè)真是不少啊,有這個(gè)看源碼,看見(jiàn),就知道在哪了

分析腳本
// react 文件分析

var fs = require("fs"), path = require("path");
function log(){
    console.log.apply(console, arguments);
}
var rootPath = "/to/you/path/react-0.14-stable/src";
function readFilePath(dir){
    fs.readdir(dir, function(e, files){
        var arrayPath = [];
        files.forEach(function(file){
            var filePath = path.resolve(dir + "/" + file);
            arrayPath.push(filePath);
        });
        arrayPath.forEach(function(file){
            fs.stat(file, function(e, stats){
                if(stats && stats.isDirectory()){
                    // 去除測(cè)試文件
                    if(file.indexOf("__tests__") === -1 && file.indexOf("test") === -1){
                        readFilePath(file);
                    }
                }else if(stats && stats.isFile()){
                    var data = file.split(rootPath + "/")[1] + "
";
                    fs.appendFile("files.txt", data, function (err) {
                        log("write success");
                    });
                }
            });
        });
    });
}
readFilePath(rootPath);
分析結(jié)果

React.js
package.json
ReactVersion.js
isomorphic/ReactIsomorphic.js
addons/ReactComponentWithPureRenderMixin.js
addons/ReactFragment.js
addons/ReactWithAddons.js
addons/renderSubtreeIntoContainer.js
addons/shallowCompare.js
addons/update.js
isomorphic/children/ReactChildren.js
isomorphic/children/onlyChild.js
isomorphic/children/sliceChildren.js
isomorphic/deprecated/OrderedMap.js
isomorphic/deprecated/ReactPropTransferer.js
isomorphic/deprecated/cloneWithProps.js
addons/link/LinkedStateMixin.js
addons/link/ReactLink.js
addons/transitions/ReactCSSTransitionGroup.js
addons/transitions/ReactCSSTransitionGroupChild.js
addons/transitions/ReactTransitionChildMapping.js
addons/transitions/ReactTransitionEvents.js
addons/transitions/ReactTransitionGroup.js
renderers/dom/ReactDOM.js
renderers/dom/ReactDOMServer.js
shared/stubs/Object.assign.js
shared/utils/CallbackQueue.js
shared/utils/PooledClass.js
shared/utils/ReactErrorUtils.js
shared/utils/Transaction.js
shared/utils/accumulate.js
shared/utils/accumulateInto.js
shared/utils/adler32.js
shared/utils/canDefineProperty.js
shared/utils/deprecated.js
shared/utils/escapeTextContentForBrowser.js
shared/utils/flattenChildren.js
shared/utils/forEachAccumulated.js
shared/utils/getIteratorFn.js
shared/utils/isTextInputElement.js
shared/utils/quoteAttributeValueForBrowser.js
shared/utils/traverseAllChildren.js
isomorphic/classic/class/ReactClass.js
isomorphic/classic/element/ReactDOMFactories.js
isomorphic/classic/element/ReactCurrentOwner.js
isomorphic/classic/element/ReactElement.js
isomorphic/classic/element/ReactElementValidator.js
isomorphic/classic/types/ReactPropTypeLocationNames.js
isomorphic/classic/types/ReactPropTypes.js
isomorphic/classic/types/ReactPropTypeLocations.js
isomorphic/modern/class/ReactDOM.d.ts
isomorphic/modern/class/React.d.ts
isomorphic/modern/class/ReactComponent.js
isomorphic/modern/class/ReactNoopUpdateQueue.js
renderers/dom/client/ClientReactRootIndex.js
renderers/dom/client/ReactBrowserEventEmitter.js
renderers/dom/client/ReactDOMIDOperations.js
renderers/dom/client/ReactDOMSelection.js
renderers/dom/client/ReactEventListener.js
renderers/dom/client/ReactInputSelection.js
renderers/dom/client/ReactMount.js
renderers/dom/client/ReactReconcileTransaction.js
renderers/dom/client/findDOMNode.js
renderers/dom/client/validateDOMNesting.js
renderers/dom/server/ReactMarkupChecksum.js
renderers/dom/server/ReactServerBatchingStrategy.js
renderers/dom/server/ReactServerRendering.js
renderers/dom/server/ReactServerRenderingTransaction.js
renderers/dom/server/ServerReactRootIndex.js
renderers/dom/shared/CSSPropertyOperations.js
renderers/dom/shared/CSSProperty.js
renderers/dom/shared/DOMPropertyOperations.js
renderers/dom/shared/DOMProperty.js
renderers/dom/shared/Danger.js
renderers/dom/shared/HTMLDOMPropertyConfig.js
renderers/dom/shared/ReactBrowserComponentMixin.js
renderers/dom/shared/ReactComponentBrowserEnvironment.js
renderers/dom/shared/ReactDOMComponent.js
renderers/dom/shared/ReactDOMFeatureFlags.js
renderers/dom/shared/ReactDOMTextComponent.js
renderers/dom/shared/ReactDefaultInjection.js
renderers/dom/shared/ReactInjection.js
renderers/dom/shared/SVGDOMPropertyConfig.js
renderers/dom/shared/dangerousStyleValue.js
renderers/shared/event/EventConstants.js
renderers/shared/event/EventPluginRegistry.js
renderers/shared/event/EventPluginHub.js
renderers/shared/event/EventPluginUtils.js
renderers/shared/event/EventPropagators.js
renderers/shared/reconciler/ReactChildReconciler.js
renderers/shared/reconciler/ReactComponentEnvironment.js
renderers/shared/reconciler/ReactCompositeComponent.js
renderers/shared/reconciler/ReactDefaultBatchingStrategy.js
renderers/shared/reconciler/ReactEmptyComponent.js
renderers/shared/reconciler/ReactEmptyComponentRegistry.js
renderers/shared/reconciler/ReactInstanceHandles.js
renderers/shared/reconciler/ReactEventEmitterMixin.js
renderers/shared/reconciler/ReactInstanceMap.js
renderers/shared/reconciler/ReactMultiChild.js
renderers/shared/reconciler/ReactMultiChildUpdateTypes.js
renderers/shared/reconciler/ReactNativeComponent.js
renderers/shared/reconciler/ReactOwner.js
renderers/shared/reconciler/ReactReconciler.js
renderers/shared/reconciler/ReactRef.js
renderers/shared/reconciler/ReactStateSetters.js
renderers/shared/reconciler/ReactRootIndex.js
renderers/shared/reconciler/ReactUpdateQueue.js
renderers/shared/reconciler/ReactUpdates.js
renderers/shared/reconciler/instantiateReactComponent.js
renderers/shared/reconciler/shouldUpdateReactComponent.js
shared/vendor/third_party/webcomponents.js
renderers/dom/client/eventPlugins/BeforeInputEventPlugin.js
renderers/dom/client/eventPlugins/ChangeEventPlugin.js
renderers/dom/client/eventPlugins/DefaultEventPluginOrder.js
renderers/dom/client/eventPlugins/EnterLeaveEventPlugin.js
renderers/dom/client/eventPlugins/FallbackCompositionState.js
renderers/dom/client/eventPlugins/SelectEventPlugin.js
renderers/dom/client/eventPlugins/SimpleEventPlugin.js
renderers/dom/client/eventPlugins/TapEventPlugin.js
renderers/dom/client/syntheticEvents/SyntheticClipboardEvent.js
renderers/dom/client/syntheticEvents/SyntheticCompositionEvent.js
renderers/dom/client/syntheticEvents/SyntheticDragEvent.js
renderers/dom/client/syntheticEvents/SyntheticEvent.js
renderers/dom/client/syntheticEvents/SyntheticFocusEvent.js
renderers/dom/client/syntheticEvents/SyntheticInputEvent.js
renderers/dom/client/syntheticEvents/SyntheticKeyboardEvent.js
renderers/dom/client/syntheticEvents/SyntheticMouseEvent.js
renderers/dom/client/syntheticEvents/SyntheticTouchEvent.js
renderers/dom/client/syntheticEvents/SyntheticUIEvent.js
renderers/dom/client/syntheticEvents/SyntheticWheelEvent.js
renderers/dom/client/utils/DOMChildrenOperations.js
renderers/dom/client/utils/ViewportMetrics.js
renderers/dom/client/utils/getEventCharCode.js
renderers/dom/client/utils/getEventKey.js
renderers/dom/client/utils/getEventModifierState.js
renderers/dom/client/utils/getEventTarget.js
renderers/dom/client/utils/getNodeForCharacterOffset.js
renderers/dom/client/utils/isEventSupported.js
renderers/dom/client/utils/getTextContentAccessor.js
renderers/dom/client/utils/setInnerHTML.js
renderers/dom/client/utils/setTextContent.js
renderers/dom/client/wrappers/AutoFocusUtils.js
renderers/dom/client/wrappers/LinkedValueUtils.js
renderers/dom/client/wrappers/ReactDOMButton.js
renderers/dom/client/wrappers/ReactDOMInput.js
renderers/dom/client/wrappers/ReactDOMOption.js
renderers/dom/client/wrappers/ReactDOMSelect.js
renderers/dom/client/wrappers/ReactDOMTextarea.js
renderers/shared/event/eventPlugins/ResponderEventPlugin.js
renderers/shared/event/eventPlugins/ResponderSyntheticEvent.js
renderers/shared/event/eventPlugins/ResponderTouchHistoryStore.js

去除測(cè)試文件,151個(gè)真是不少啊,有這個(gè)看react 源碼,看見(jiàn) require(‘xx’), 就知道在哪了

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://specialneedsforspecialkids.com/yun/86232.html

相關(guān)文章

  • ReactDOM You Should

    摘要:并不是組件中的任何地方都能夠使用獲取結(jié)構(gòu),只對(duì)掛載后的組件生效。組件的一個(gè)特殊屬性,接受一個(gè)回調(diào)函數(shù)作為參數(shù)。反之,則表示卸載失敗。再看一下這段代碼這個(gè)回調(diào)函數(shù)其實(shí)是沒(méi)有參數(shù)的,但是,當(dāng)方法變成異步方法之后,說(shuō)不定就會(huì)向其注入一些參數(shù)了。 在react的組件的開(kāi)發(fā)過(guò)程中,一般來(lái)說(shuō),我們并不會(huì)真正的去操作dom。只有在頂層組件的渲染的過(guò)程中,我們借助ReactDOM.render()方法...

    mo0n1andin 評(píng)論0 收藏0
  • React.js 小書(shū) Lesson14 - 實(shí)戰(zhàn)分析:評(píng)論功能(一)

    摘要:對(duì)于上面這個(gè)評(píng)論功能,可以粗略地劃分成以下幾部分評(píng)論功能的整體用一個(gè)叫的組件包含起來(lái)。每個(gè)評(píng)論列表項(xiàng)由獨(dú)立的組件負(fù)責(zé)顯示,這個(gè)組件被所使用。下一節(jié)中我們將介紹小書(shū)實(shí)戰(zhàn)分析評(píng)論功能二。 React.js 小書(shū) Lesson14 - 實(shí)戰(zhàn)分析:評(píng)論功能(一) 本文作者:胡子大哈本文原文:http://react.huziketang.com/blog/lesson14 轉(zhuǎn)載請(qǐng)注明出處,保...

    QiuyueZhong 評(píng)論0 收藏0
  • 傻傻分不清的Manifest

    摘要:的英文含義是名單種技術(shù)的確都是把當(dāng)做清單使用緩存清單清單打包資源路徑清單打包清單只不過(guò)是在不同的場(chǎng)景中使用特定的清單來(lái)完成某些功能所以,學(xué)好英文是多么重要,這樣才不會(huì)傻傻分不清到底是干啥的 在前端,說(shuō)到manifest,其實(shí)是有歧義的,就我了解的情況來(lái)說(shuō),manifest可以指代下列含義: html標(biāo)簽的manifest屬性: 離線緩存(目前已被廢棄) PWA: 將Web應(yīng)用程序...

    printempw 評(píng)論0 收藏0
  • react基于webpack和Babel 6上的開(kāi)發(fā)環(huán)境搭建

    摘要:可能在項(xiàng)目正式上線的時(shí)候才需要發(fā)布配置單文件入口版本新建一個(gè)和開(kāi)發(fā)環(huán)境不同的是,入口和出口。相應(yīng)的在的源也要進(jìn)行修改。加載模塊發(fā)布配置多文件模式庫(kù)最好就不要打包進(jìn)來(lái)。因?yàn)橐话銕?kù)都是不會(huì)改動(dòng)的。所以這里就要進(jìn)行庫(kù)的分離。 react-js開(kāi)發(fā)環(huán)境 時(shí)間:2016.3.19-12:29作者:三月懶驢基于:react版本:0.14基于:babel版本:6相關(guān)代碼:github 開(kāi)始一個(gè)項(xiàng)目 ...

    callmewhy 評(píng)論0 收藏0
  • 從零到一,新建webpack工程

    摘要:指定啟用例如上述代碼,就使用和處理了除了以外的。設(shè)置當(dāng)前的為,同樣這個(gè)配置也可以寫(xiě)在中。設(shè)置目錄刪除注釋去除空格去除屬性引號(hào)復(fù)制靜態(tài)目錄將所以可能被請(qǐng)求的靜態(tài)文件,分別放在目錄下。結(jié)語(yǔ)本次從零到一,新建了一個(gè)腳手架。 react-sample-javascript 為了實(shí)現(xiàn)一個(gè)可定制化高的react工程,我們往往會(huì)自己搭建一個(gè)react工程。所以本文會(huì)從零開(kāi)始搭建一個(gè)react腳手架工...

    Code4App 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<