You’ll need to have Node >= 8 on your local development machine (but it’s not required on the server). Install create-guten-block globally on your system. # Results into 5.6.0 - make sure you have npm >= 5.2 installed. # Results into v9.4.0 - make sure you have Node >= 8 installed. You can verify the install by opening your terminal app and typing… node -v This will install both Node.js and npm, i.e., node package manager - the command line interface of Node.js. In case you are an absolute beginner to the world of Node.js, JavaScript, and npm packages - all you need to do is go to the Node’s site download + install Node on your system. If you don’t have Node.js + npm installed then read this step, otherwise jump to the Step #1 below. We keep cgb-scripts up to date while you go ahead and create the next best WordPress themes and plugins.ĭid I tell you to star it at GitHub for updates and to show appreciation or to report back any issues you face? Hmm… lemme think?! This package is the only dependency in your projects. Then there’s the fact that you have to maintain and constantly update your configuration with all the new tools and growth in the JavaScript community - that’s not an easy thing to do.Ĭreate-guten-block hides all this configuration away in an optimized package that we call cgb-scripts. before you - even start writing - a Hello World Gutenberg block. Well, it’s really hard to configure things like Webpack, React, ES 6/7/8/Next, ESLint, Babel, etc. Run a single command, and all the configuration and build dependencies will be moved directly into your project, so you can pick up right where you left off. No Lock-In: You can eject to a custom setup at any time.A reasonably good configuration of both development and production builds is handled for you so you can focus on writing code. No Configuration Required: You don’t need to configure anything.It uses Webpack, Babel, ESLint, and other amazing projects, but provides a cohesive curated experience on top of them. One Dependency: There is just one build dependency.If your project needs more customization, you can “eject” and customize it, but then you will need to maintain this configuration. The tradeoff is that these tools are preconfigured to work in a specific way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |