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

資訊專欄INFORMATION COLUMN

react - 0.14 src 目錄 文件分析

lastSeries / 1067人閱讀

摘要:分析腳本文件分析去除測試文件分析結果去除測試文件,個真是不少啊,有這個看源碼,看見,就知道在哪了

分析腳本
// 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()){
                    // 去除測試文件
                    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);
分析結果

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

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

文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。

轉載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/86232.html

相關文章

  • ReactDOM You Should

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

    mo0n1andin 評論0 收藏0
  • React.js 小書 Lesson14 - 實戰分析:評論功能(一)

    摘要:對于上面這個評論功能,可以粗略地劃分成以下幾部分評論功能的整體用一個叫的組件包含起來。每個評論列表項由獨立的組件負責顯示,這個組件被所使用。下一節中我們將介紹小書實戰分析評論功能二。 React.js 小書 Lesson14 - 實戰分析:評論功能(一) 本文作者:胡子大哈本文原文:http://react.huziketang.com/blog/lesson14 轉載請注明出處,保...

    QiuyueZhong 評論0 收藏0
  • 傻傻分不清的Manifest

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

    printempw 評論0 收藏0
  • react基于webpack和Babel 6上的開發環境搭建

    摘要:可能在項目正式上線的時候才需要發布配置單文件入口版本新建一個和開發環境不同的是,入口和出口。相應的在的源也要進行修改。加載模塊發布配置多文件模式庫最好就不要打包進來。因為一般庫都是不會改動的。所以這里就要進行庫的分離。 react-js開發環境 時間:2016.3.19-12:29作者:三月懶驢基于:react版本:0.14基于:babel版本:6相關代碼:github 開始一個項目 ...

    callmewhy 評論0 收藏0
  • 從零到一,新建webpack工程

    摘要:指定啟用例如上述代碼,就使用和處理了除了以外的。設置當前的為,同樣這個配置也可以寫在中。設置目錄刪除注釋去除空格去除屬性引號復制靜態目錄將所以可能被請求的靜態文件,分別放在目錄下。結語本次從零到一,新建了一個腳手架。 react-sample-javascript 為了實現一個可定制化高的react工程,我們往往會自己搭建一個react工程。所以本文會從零開始搭建一個react腳手架工...

    Code4App 評論0 收藏0

發表評論

0條評論

lastSeries

|高級講師

TA的文章

閱讀更多
最新活動
閱讀需要支付1元查看
<