Appendix A. Setting up the project
Before you write any code, you need to have an NPM project set up. In this appendix, I’ll help you create and configure a project to write the code for your framework.
I understand you might not typically configure an NPM project from scratch with a bundler, a linter, and a test library yourself, as most frameworks come with a CLI tool (like, for example create-react-app or angular-cli) which does the scaffolding and generating the boilerplate code structure for you. So I’ll give you two options to create your project:
- Use the CLI tool I created for this book. With a single command, you can create a project where you can start writing your code right away.
- Configure the project yourself, from scratch. It’s more laborious, but you get to learn how to configure the project.
If you want to get started quickly with the book and can’t wait to write your awesome frontend framework, I recommend you use the CLI tool. In this case, you need to read section Section A8. But if you are the kind of developer who enjoys configuring everything from scratch, you can follow the steps to configure the project yourself in section Section A9.