Javascript and Python Web Engineer
I write code.
Boilerplate for webpack 2, babel, react + redux + hmr, and karma. Can be inserted into existing django projects.
Javascript and Python Web Engineer
I write code.
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
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...
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 an option to cookiecutter.json for creating a minimal version of this project
The package.json
, says ISC
, however, the setup.py
says, BSD
?
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
On install, I saw:
npm WARN deprecated [email protected]: abandoned project, please use case-sensitive-paths-webpack-plugin instead
npm WARN deprecated [email protected]: ๐ Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! ```
Since config files were turned into functions, can move a lot of the options into the ./config.webpack.js
file.
Thinking either jest or karma.
Want to use enzyme in the example test.
Use counter component for example test.
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
Running karma with webpack and phantomJS has some large dependencies, should be able to opt out of this.
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:
$ cookiecutter [email protected]:hzdg/cookiecutter-webpack.git
project_name
) is default and create a new git repository and commit everything.$ cd project_name/
$ git init
$ git add .
$ git commit -m 'Init'
npm-check-updates
tool to update package.json
to latest dependencies$ ncu -uat
cookiecutter-webpack/{{cookiecutter.repo_name}}/package.json
file with new dependencies.$ git diff
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).
oops...
Make Ava + power assert + enzyme
as an optional testing configuration.
Karma + mocha + expect + react-test-utils
is current default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.