Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cookiecutter-webpack

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cookiecutter-webpack - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

{{cookiecutter.repo_name}}/{{cookiecutter.static_root}}/__tests__/counter/component-test.js

11

{{cookiecutter.repo_name}}/config/webpack.base.config.js

@@ -7,2 +7,11 @@ const

const HTML_WEBPACK_OPTIONS = {
main: {
title: '{{ cookiecutter.project_name }}',
template: '{{ cookiecutter.static_root }}/templates/default.ejs',
inject: false,
appMountId: 'main',
},
};
module.exports = (opts) => {

@@ -23,3 +32,3 @@

plugins: [
new HtmlWebpackPlugin(opts.htmlWebpackOptions.main),
new HtmlWebpackPlugin(HTML_WEBPACK_OPTIONS.main),
// shared stuff between chuncks

@@ -26,0 +35,0 @@ new webpack.optimize.CommonsChunkPlugin({

@@ -7,3 +7,3 @@ {

"scripts": {
"test": "./node_modules/.bin/mocha --compilers js:babel-register {{ cookiecutter.static_root }}/**/__tests__/**/*test*.js",
"test": "NODE_ENV=test ./node_modules/karma/bin/karma start --single-run --browsers PhantomJS",
"webpack": "NODE_ENV=production ./node_modules/.bin/webpack --progress",

@@ -51,6 +51,17 @@ "build": "npm run webpack",

"html-webpack-plugin": "^2.19.0",
"less": "^2.7.1",
"jasmine-core": "^2.4.1",
"karma": "^0.13.22",
"karma-babel-preprocessor": "^6.0.1",
"karma-browserify": "^5.0.5",
"karma-chrome-launcher": "^1.0.1",
"karma-mocha": "^1.0.1",
"karma-phantomjs-launcher": "^1.0.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "goldhand/karma-webpack",{# TODO: update when karma-webpack supports webpack 2.1.0-betas #}
"less": "^2.6.1",
"less-loader": "^2.2.3",
"mocha": "^2.5.3",
"phantomjs-prebuilt": "^2.1.7",
"react": "^15.1.0",
"react-addons-test-utils": "^15.1.0",
"react-dom": "^15.1.0",

@@ -70,3 +81,4 @@ "react-redux": "^4.4.5",

"url-loader": "^0.5.7",
"webpack": "^2.1.0-beta.12",
"watchify": "^3.7.0",
"webpack": "^2.1.0-beta.13",
{% if cookiecutter.existing_project == 'y' -%}

@@ -73,0 +85,0 @@ "webpack-bundle-tracker": "0.0.93",

@@ -18,2 +18,16 @@ {{ cookiecutter.project_name }}

Open up http://localhost:8080 in your browser.
Basic Usage
-----------
### Running tests
This project uses [`karma`][karma] for running tests with [`mocha`][mocha] for the test framework and @mjackson's [`expect`][expect] library for assertions and test doubles.
$ npm test
This will run all tests in the [`./{{ cookiecutter.static_root }}/__tests__`][test-dir] directory.
---------------------------------

@@ -59,3 +73,3 @@

### Settings
There are two setting configurations: _Local_ and _Production_. Both of these settings inherit from the _Base_ settings.
There are two setting configurations: _Local_ and _Production_. Both of these settings inherit from the _Base_ settings. The main _Router_ will determine which setting is being requested based on the `NODE_ENV`: `[production, local, test]`.

@@ -99,1 +113,9 @@ #### Router `./webpack.config.js`

changeMonitorKey="ctrl-m"
<!-- references -->
[karma]: https://github.com/karma-runner/karma
[mocha]: https://github.com/mochajs/mocha
[expect]: https://github.com/mjackson/expect
[test-dir]: /{{ cookiecutter.static_root }}/__tests__/

8

{{cookiecutter.repo_name}}/webpack.config.js

@@ -17,10 +17,2 @@ /**

cdnPath: JSON.stringify(process.env.CDN_PATH),
htmlWebpackOptions: {
main: {
title: '{{ cookiecutter.project_name }}',
template: '{{ cookiecutter.static_root }}/templates/default.ejs',
inject: false,
appMountId: 'main',
},
},
};

@@ -27,0 +19,0 @@

{
"name": "cookiecutter-webpack",
"version": "0.2.0",
"version": "0.3.0",
"description": "Boilerplate for setting up webpack 2 configuration with hot reloading, babel for es6 modules, react + redux.",

@@ -5,0 +5,0 @@ "directories": {

Cookiecutter-webpack
====================
Boilerplate for setting up webpack 2 configuration with hot reloading, babel for es6 modules, react + redux.
Boilerplate for setting up webpack 2 configuration with hot reloading, babel for es6 modules, react + redux for views and state, and karma + mocha + expect for testing.

@@ -6,0 +6,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc