diff --git a/setupRuns.js b/setupRuns.js index d09c428..71f3693 100644 --- a/setupRuns.js +++ b/setupRuns.js @@ -59,6 +59,12 @@ sources.forEach(benchmark => { } }) }) + copyFile(join(__dirname, 'fps-emit/dist/fps-emit.min.js'), join(src, 'public/fps-emit.min.js'), e => { + if (e) { + console.log(e) + process.exit(1); + } + }) console.log(`building production version of benchmark ${benchmark}...`) diff --git a/sources/stockticker/config-overrides.js b/sources/stockticker/config-overrides.js index ac75441..91b11ff 100644 --- a/sources/stockticker/config-overrides.js +++ b/sources/stockticker/config-overrides.js @@ -7,6 +7,12 @@ module.exports = function override(config, env) { "react" : "React", "redux" : "Redux", "react-redux" : "ReactRedux", + "fps-emit": "FpsEmit", + } + } + if(env === "development") { + config.externals = { + "fps-emit": "FpsEmit", } } diff --git a/sources/stockticker/package.json b/sources/stockticker/package.json index df04ed6..56c455b 100644 --- a/sources/stockticker/package.json +++ b/sources/stockticker/package.json @@ -4,7 +4,6 @@ "private": true, "dependencies": { "chance": "^1.0.16", - "fps-emit": "file:../../fps-emit", "react": "^16.6.0", "react-dom": "^16.6.0", "react-redux": "^5.1.0", diff --git a/sources/stockticker/public/index.html b/sources/stockticker/public/index.html index 854ed74..c9963e9 100644 --- a/sources/stockticker/public/index.html +++ b/sources/stockticker/public/index.html @@ -45,5 +45,6 @@ + diff --git a/sources/tree-view/config-overrides.js b/sources/tree-view/config-overrides.js index ac75441..91b11ff 100644 --- a/sources/tree-view/config-overrides.js +++ b/sources/tree-view/config-overrides.js @@ -7,6 +7,12 @@ module.exports = function override(config, env) { "react" : "React", "redux" : "Redux", "react-redux" : "ReactRedux", + "fps-emit": "FpsEmit", + } + } + if(env === "development") { + config.externals = { + "fps-emit": "FpsEmit", } } diff --git a/sources/tree-view/package.json b/sources/tree-view/package.json index 7da6470..90c82c6 100644 --- a/sources/tree-view/package.json +++ b/sources/tree-view/package.json @@ -8,7 +8,6 @@ }, "dependencies": { "@acemarke/redux-starter-kit": "0.0.7", - "fps-emit": "file:../../fps-emit", "react": "^16.6.0", "react-dom": "^16.6.0", "react-redux": "^5.0.7", diff --git a/sources/tree-view/public/index.html b/sources/tree-view/public/index.html index 921e963..b8c595c 100644 --- a/sources/tree-view/public/index.html +++ b/sources/tree-view/public/index.html @@ -21,5 +21,6 @@ + diff --git a/sources/twitter-lite/config-overrides.js b/sources/twitter-lite/config-overrides.js index ac75441..91b11ff 100644 --- a/sources/twitter-lite/config-overrides.js +++ b/sources/twitter-lite/config-overrides.js @@ -7,6 +7,12 @@ module.exports = function override(config, env) { "react" : "React", "redux" : "Redux", "react-redux" : "ReactRedux", + "fps-emit": "FpsEmit", + } + } + if(env === "development") { + config.externals = { + "fps-emit": "FpsEmit", } } diff --git a/sources/twitter-lite/package.json b/sources/twitter-lite/package.json index 78a9d90..5d7ba06 100644 --- a/sources/twitter-lite/package.json +++ b/sources/twitter-lite/package.json @@ -3,7 +3,6 @@ "version": "0.1.0", "private": true, "dependencies": { - "fps-emit": "file:../../fps-emit", "react": "^16.6.0", "react-dom": "^16.6.0", "react-redux": "^5.0.7", diff --git a/sources/twitter-lite/public/index.html b/sources/twitter-lite/public/index.html index 4a3c22b..b67a46a 100644 --- a/sources/twitter-lite/public/index.html +++ b/sources/twitter-lite/public/index.html @@ -25,6 +25,7 @@ +