Giter Site home page Giter Site logo

goldhand / cookiecutter-webpack Goto Github PK

View Code? Open in Web Editor NEW
93.0 10.0 16.0 75 KB

Boilerplate for webpack 2, babel, react + redux + hmr, and karma. Can be inserted into existing django projects.

JavaScript 51.76% Python 32.77% CSS 0.34% HTML 12.32% Makefile 2.81%
cookiecutter cookiecutter-webpack react redux webpack2 webpack mocha karma babel hmr

cookiecutter-webpack's Introduction

cookiecutter-webpack's People

Contributors

goldhand avatar imexlava avatar jiunwei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cookiecutter-webpack's Issues

Need to specify 'ejs-loader' instead of 'ejs'.

After npm test

    BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
                     You need to specify 'ejs-loader' instead of 'ejs'.

I'm using webpack 2.1.0-beta.28

Add cookiecutter-django build test

Similar to the $ make testbuild but using cookiecutter-django.

Would need to point to the cookiecutter-webpack source from the cookiecutter-django packages somehow though...

Sagas?

Hey,
I just went though the whole saga of the sagas setup. Perhaps you might want to make sagas or thunk optional extras?

Also, most people are going to need "babel-polyfill" in which case i went the babel-runtime route as it seemed the lest invasive in future development efforts.

Also, hit a weird bug with the dev tools that you seemed to have solved, which i was surprised to not see here?

Add minimal option

Add an option to cookiecutter.json for creating a minimal version of this project

Cannot generate cookiecutter-webpack on windows

Hi all,

I failed running cookiecutter-webpack on windows, here is the error message:
D:\temps>cookiecutter [email protected]:hzdg/cookiecutter-webpack.git
Cloning into 'cookiecutter-webpack'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Traceback (most recent call last):
File "c:\anaconda2\envs\klinik\lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "c:\anaconda2\envs\klinik\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Anaconda2\envs\klinik\Scripts\cookiecutter.exe__main
.py", line 9, in
File "c:\anaconda2\envs\klinik\lib\site-packages\click\core.py", line 716, in call
return self.main(_args, *_kwargs)
File "c:\anaconda2\envs\klinik\lib\site-packages\click\core.py", line 696, in main
rv = self.invoke(ctx)
File "c:\anaconda2\envs\klinik\lib\site-packages\click\core.py", line 889, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "c:\anaconda2\envs\klinik\lib\site-packages\click\core.py", line 534, in invoke
return callback(_args, **kwargs)
File "c:\anaconda2\envs\klinik\lib\site-packages\cookiecutter\cli.py", line 106, in main
config_file=user_config
File "c:\anaconda2\envs\klinik\lib\site-packages\cookiecutter\main.py", line 107, in cookiecutter
no_input=no_input
File "c:\anaconda2\envs\klinik\lib\site-packages\cookiecutter\vcs.py", line 119, in clone
subprocess.check_call([repo_type, 'clone', repo_url], cwd=clone_to_dir)
File "c:\anaconda2\envs\klinik\lib\subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '[u'git', u'clone', u'[email protected]:hzdg/cookiecutter-webpack.git']' returned non-zero exit status 128

D:\temps>cookiecutter --version
Cookiecutter 1.4.0 from c:\anaconda2\envs\klinik\lib\site-packages (Python 2.7)

D:\temps>git --version
git version 2.5.0.windows.1

Any suggestion ?

thankyou

Refactor configs

Since config files were turned into functions, can move a lot of the options into the ./config.webpack.js file.

Error installing npm packages

Hello, I'm running "run install" and get error:

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants webpack@1 || ^2.1.0-beta
npm ERR! peerinvalid Peer [email protected] wants webpack@*
npm ERR! peerinvalid Peer [email protected] wants webpack@^1.12.6 || ^2.1.0-beta
npm ERR! peerinvalid Peer [email protected] wants webpack@^2.1.0-beta
npm ERR! peerinvalid Peer [email protected] wants webpack@^1.1.0 || ^2 || ^2.1.0-beta

npm ERR! Please include the following file with any support request:
npm ERR! /Users/dgorobets/anons/npm-debug.log

Make karma optional

Running karma with webpack and phantomJS has some large dependencies, should be able to opt out of this.

Automate dependency update

Currently using npm-check-updates to check for dependecy updates and comparing the diff. Would be super nice to automate this process somehow...

Documenting current process:

  1. Create a cookiecutter-webpack project with default options (would be nice to test all options).
$ cookiecutter [email protected]:hzdg/cookiecutter-webpack.git
  1. enter new project (project_name) is default and create a new git repository and commit everything.
$ cd project_name/
$ git init
$ git add .
$ git commit -m 'Init'
  1. Run npm-check-updates tool to update package.json to latest dependencies
$ ncu -uat
  1. Compare diff and update cookiecutter-webpack/{{cookiecutter.repo_name}}/package.json file with new dependencies.
$ git diff

[Discussion] Effectively using react-router with a django project

Are there any models for effectively using react router in a django project?

There are two routers in a cookiecutter-django/cookiecutter-webpack project currently, the django urls and react-router. Should these both exist together or should one be removed?

The two together currently don't exist well as explained here cookiecutter/cookiecutter-django#637
The redirect in the routes.js could be removed to allow django urls to work but I think the webpack install should be moved to home template and shouldn't exist on the base template. (This allows both routes to work).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.