Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from th0r/lerna
Setup Lerna monorepo, splitting reporter to new package
- Loading branch information
Showing
81 changed files
with
10,881 additions
and
4,654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# node_modules in sub-packages | ||
packages/*/node_modules | ||
|
||
# Generated code | ||
lib | ||
public | ||
packages/*/lib | ||
packages/reporter-treemap/reporter/public | ||
|
||
# Vendor code | ||
reporter/client/vendor | ||
packages/reporter-treemap/reporter/client/vendor | ||
|
||
# Test fixtures | ||
test/bundles | ||
test/webpack.config.js | ||
packages/*/test/bundles | ||
packages/*/test/webpack.config.js | ||
|
||
# Test results | ||
test/output | ||
packages/*/test/output | ||
|
||
samples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
lib | ||
public | ||
# node_modules in sub-packages | ||
packages/*/node_modules | ||
|
||
# Generated code | ||
packages/*/lib | ||
packages/reporter-treemap/reporter/public | ||
|
||
# Vendor code | ||
packages/reporter-treemap/reporter/client/vendor | ||
|
||
# Test fixtures | ||
packages/*/test/bundles | ||
packages/*/test/webpack.config.js | ||
|
||
# Test results | ||
packages/*/test/output | ||
|
||
samples | ||
|
||
node_modules | ||
npm-debug.log | ||
lerna-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"lerna": "2.0.0", | ||
"npmClient": "yarn", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "3.0.0-alpha.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,15 @@ | ||
{ | ||
"name": "webpack-bundle-analyzer", | ||
"version": "2.8.3", | ||
"description": "Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap", | ||
"author": "Yury Grunin <grunin.ya@ya.ru>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/th0r/webpack-bundle-analyzer", | ||
"changelog": "https://github.com/th0r/webpack-bundle-analyzer/blob/master/CHANGELOG.md", | ||
"bugs": { | ||
"url": "https://github.com/th0r/webpack-bundle-analyzer/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/th0r/webpack-bundle-analyzer.git" | ||
}, | ||
"main": "lib/index.js", | ||
"bin": "lib/bin/analyzer.js", | ||
"engines": { | ||
"node": ">= 4" | ||
}, | ||
"private": true, | ||
"scripts": { | ||
"start": "gulp watch", | ||
"build": "gulp build", | ||
"npm-publish": "npm run lint && npm run build && npm test && npm publish", | ||
"lint": "eslint --ext js,jsx .", | ||
"test": "mocha --compilers js:babel-core/register", | ||
"test-dev": "mocha --watch --compilers js:babel-core/register" | ||
}, | ||
"files": [ | ||
"lib", | ||
"reporter/public", | ||
"reporter/views", | ||
"src" | ||
], | ||
"dependencies": { | ||
"acorn": "^5.1.1", | ||
"chalk": "^1.1.3", | ||
"commander": "^2.9.0", | ||
"ejs": "^2.5.6", | ||
"express": "^4.15.2", | ||
"filesize": "^3.5.9", | ||
"gzip-size": "^3.0.0", | ||
"lodash": "^4.17.4", | ||
"mkdirp": "^0.5.1", | ||
"opener": "^1.4.3", | ||
"ws": "^2.3.1" | ||
"bootstrap": "lerna bootstrap", | ||
"build": "lerna run build --stream", | ||
"test": "lerna run test", | ||
"lint": "eslint --ext js,jsx ." | ||
}, | ||
"devDependencies": { | ||
"babel-core": "6.24.1", | ||
"babel-eslint": "7.2.3", | ||
"babel-loader": "7.0.0", | ||
"babel-plugin-transform-class-properties": "6.24.1", | ||
"babel-plugin-transform-object-rest-spread": "6.23.0", | ||
"babel-plugin-transform-react-jsx": "6.24.1", | ||
"babel-preset-env": "1.4.0", | ||
"chai": "3.5.0", | ||
"chai-subset": "1.5.0", | ||
"classnames": "2.2.5", | ||
"css-loader": "0.28.1", | ||
"del": "2.2.2", | ||
"eslint": "3.19.0", | ||
"eslint-plugin-react": "7.0.0", | ||
"exports-loader": "0.6.4", | ||
"gulp": "3.9.1", | ||
"gulp-babel": "6.1.2", | ||
"gulp-plumber": "1.1.0", | ||
"gulp-util": "3.0.8", | ||
"gulp-watch": "4.3.11", | ||
"mocha": "3.3.0", | ||
"nightmare": "2.10.0", | ||
"preact": "8.1.0", | ||
"sinon": "2.2.0", | ||
"stream-combiner2": "1.1.1", | ||
"style-loader": "0.17.0", | ||
"webpack": "2.5.1", | ||
"webpack-dev-server": "2.4.5" | ||
}, | ||
"keywords": [ | ||
"webpack", | ||
"bundle", | ||
"analyzer", | ||
"modules", | ||
"size", | ||
"interactive", | ||
"chart", | ||
"treemap", | ||
"zoomable", | ||
"zoom" | ||
] | ||
"lerna": "2.0.0" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is the treemap reporter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"name": "@webpack-bundle-analyzer/reporter-treemap", | ||
"version": "3.0.0-alpha.0", | ||
"description": "Reporter for webpack-bundle-analyzer that represents bundle content as convenient interactive zoomable treemap", | ||
"author": "Yury Grunin <grunin.ya@ya.ru>", | ||
"contributors": [ | ||
"Yury Grunin <grunin.ya@ya.ru>", | ||
"Vesa Laakso <laakso.vesa@gmail.com> (http://vesalaakso.com)" | ||
], | ||
"license": "MIT", | ||
"homepage": "https://github.com/webpack-bundle-analyzer/reporter-treemap", | ||
"changelog": "https://github.com/webpack-bundle-analyzer/reporter-treemap/blob/master/CHANGELOG.md", | ||
"bugs": { | ||
"url": "https://github.com/webpack-bundle-analyzer/reporter-treemap/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/webpack-bundle-analyzer/reporter-treemap.git" | ||
}, | ||
"main": "lib/index.js", | ||
"engines": { | ||
"node": ">= 4" | ||
}, | ||
"scripts": { | ||
"start": "gulp watch", | ||
"build": "gulp build", | ||
"npm-publish": "npm run build && npm publish" | ||
}, | ||
"files": [ | ||
"lib", | ||
"reporter/public", | ||
"reporter/views", | ||
"src" | ||
], | ||
"dependencies": { | ||
"chalk": "^1.1.3", | ||
"ejs": "^2.5.6", | ||
"express": "^4.15.2", | ||
"mkdirp": "^0.5.1", | ||
"opener": "^1.4.3", | ||
"ws": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "6.24.1", | ||
"babel-loader": "7.0.0", | ||
"babel-plugin-transform-class-properties": "6.24.1", | ||
"babel-plugin-transform-object-rest-spread": "6.23.0", | ||
"babel-plugin-transform-react-jsx": "6.24.1", | ||
"babel-preset-env": "1.4.0", | ||
"classnames": "2.2.5", | ||
"commander": "2.9.0", | ||
"css-loader": "0.28.1", | ||
"del": "2.2.2", | ||
"exports-loader": "0.6.4", | ||
"filesize": "3.5.9", | ||
"gulp": "3.9.1", | ||
"gulp-babel": "6.1.2", | ||
"gulp-plumber": "1.1.0", | ||
"gulp-util": "3.0.8", | ||
"gulp-watch": "4.3.11", | ||
"preact": "8.1.0", | ||
"stream-combiner2": "1.1.1", | ||
"style-loader": "0.17.0", | ||
"webpack": "2.5.1" | ||
}, | ||
"keywords": [ | ||
"webpack", | ||
"bundle", | ||
"analyzer", | ||
"modules", | ||
"size", | ||
"interactive", | ||
"chart", | ||
"treemap", | ||
"zoomable", | ||
"zoom" | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
reporter/client/.eslintrc.json → ...er-treemap/reporter/client/.eslintrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const viewer = require('./viewer'); | ||
|
||
module.exports = { | ||
generateReport, | ||
createReporter | ||
}; | ||
|
||
function generateReport(stats, opts) { | ||
return viewer.generateReport(stats, opts); | ||
} | ||
|
||
function createReporter(initialChartData, opts) { | ||
const server = viewer.startServer(initialChartData, opts); | ||
return server.then(({ updateChartData }) => ({ | ||
updateData: newData => { | ||
updateChartData(newData); | ||
} | ||
})); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.