Boilerplate for setting up webpack 4 configuration with awesome-typescript-loader for es6 modules, react + redux for views and state, Istanbul for code coverage and mocha + chai + enzyme for testing.
Download cookiecutter
to a global python path
$ pip install cookiecutter
In your project directory run
$ cookiecutter https://github.com/DerekCL/cookiecutter-typescript-webpack.git
Answer the prompts then cd
into your newly created project directory.
Install npm packages
$ npm install
Start the server
$ npm start
Open up http://localhost:8080 in your browser.
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 run the test suite
$ npm test
You should also create a new git repo and push it to github
$ git init
$ git add .
$ git commit -m "Init"
$ git remote add origin git@github.com:DerekCL/project_name.git
$ git push -u origin master
project_name
: Your Project Namerepo_name
: Name of this projects git repositoryrepo_owner
: Your github usernamestatic_root
: Path to where this projects source code lives, or path to static files directory if integrating into an existing projectproduction_output_path
: Path where your compiled bundles should goauthor_name
: Your Namedescription
: A short description of the project for theREADME.md
fileversion
: Project version numbercss_extension
: [sass
,less
,none
] - useless
orsass
to preprocess styles.
Accepting pull requests!
Clone the project:
$ git clone git@github.com:DerekCL/cookiecutter-typescript-webpack.git
Install python and npm dependencies:
$ pip install -r requirements.txt && npm install
Run build tests:
$ make test