Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cookiecutter-webpack
Advanced tools
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.
Download cookiecutter
to a global python path
$ pip install cookiecutter
In your project directory run
$ cookiecutter git@github.com:hzdg/cookiecutter-webpack.git
Answer the prompts then cd
into your newly created project directory.
Install npm packages
$ npm install
Start the server
$ npm start
You will have a React / Redux counter app running with redux dev-tools. See the generated README.md
for an explanation of the react / redux project structure.
You can chain this into an existing cookiecutter project by installing via the projects ./hooks/post_gen_project.py
file or just installing it via the command line.
Here is a django project post hook example that chains this through a django cookiecutter project.
from cookiecutter.main import cookiecutter
cookiecutter(
'git@github.com:hzdg/cookiecutter-webpack.git',
replay=False, overwrite_if_exists=True, output_dir='../',
checkout=None, no_input=True, extra_context={
'project_name': '{{ cookiecutter.project_name }}',
'repo_name': '{{ cookiecutter.repo_name }}',
'repo_owner': 'hzdg',
'static_root': '{{ cookiecutter.project_dir }}/static/{{ cookiecutter.project_dir }}',
'local_output_path': '{{ cookiecutter.project_dir }}/static/{{ cookiecutter.project_dir }}/bundles/',
'production_output_path': '{{ cookiecutter.project_dir }}/static/{{ cookiecutter.project_dir }}/dist/',
'author_name': '{{ cookiecutter.author_name }}',
'email': '{{ cookiecutter.email }}',
'description': '{{ cookiecutter.description }}',
'version': '{{ cookiecutter.version }}',
'existing_project': 'y'
})
The flag existing_project
will move/remove some files and dependencies and also add supporting configurations for a django project.
Just make sure you use the --overwrite-if-exists
[ or -f
] flag so cookiecutter can work within your existing project structure. You will also probably want to point to your existing projects parent directory and make sure you use the same repo_name
as the project directory so your package.json
files are installed at the project root.
cookiecutter -f -output-dir ../ git@github.com:hzdg/cookiecutter-webpack.git
Accepting pull requests!
Clone the project:
$ git clone git@github.com:hzdg/cookiecutter-webpack.git
Install python and npm dependencies:
$ pip install -r requirements.txt && npm install
Run build tests:
$ npm test
All enhancements and patches to Cookiecutter Django will be documented in this file. This project adheres to Semantic Versioning.
./config/
directory (@goldhand)FAQs
Boilerplate for setting up webpack 2 configuration with hot reloading, babel for es6 modules, react + redux.
We found that cookiecutter-webpack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.