Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Sep 23, 2016
0 parents commit bee1cdc
Show file tree
Hide file tree
Showing 8 changed files with 650 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/electrode-webpack-reporter/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
extends:
- "./node_modules/electrode-archetype-njs-module-dev/config/eslint/.eslintrc-node"
138 changes: 138 additions & 0 deletions packages/electrode-webpack-reporter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@

# Created by https://www.gitignore.io/api/gitbook,osx,webstorm,node

### GitBook ###
# Node rules:
## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

## Dependency directory
## Commenting this out is preferred by some people, see
## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
node_modules

# Book build output
_book

# eBook build output
*.epub
*.mobi
*.pdf


### OSX ###
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### WebStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm

*.iml

## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:

# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries
# .idea/shelf

# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml

# Gradle:
# .idea/gradle.xml
# .idea/libraries

# Mongo Explorer plugin:
# .idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties


### Node ###
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

.tmp
13 changes: 13 additions & 0 deletions packages/electrode-webpack-reporter/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2016 WalmartLabs

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
27 changes: 27 additions & 0 deletions packages/electrode-webpack-reporter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Electrode Webpack Reporter

A HTML based reporter for [webpack-dev-server]. Adds a new route `/reporter` to your [webpack-dev-server] HTTP server.

```js
const WebpackReporter = require("electrode-webpack-reporter");

const webpackConfig = {
devServer: {
}
};

const reporter = new WebpackReporter();
reporter.apply(webpackConfig);

//
// optional extra handling
//

reporter.on("report", (reporterOptions) => {
if (reporterOptions.state) {
// ... bundle is VALID
}
});
```

[webpack-dev-server]: https://webpack.github.io/docs/webpack-dev-server.html
1 change: 1 addition & 0 deletions packages/electrode-webpack-reporter/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("electrode-archetype-njs-module-dev")();
Loading

0 comments on commit bee1cdc

Please sign in to comment.