What are Archetypes

Last updated 2 months ago

Archetypes are npm modules that contain the typical standard stuff you would have to add to every new project you create. They encapsulate boilerplates for centralizing your project configurations, workflows, and dependencies.

Unlike a generator which copies the typical standard stuff into your project, archetypes keep those as part of your project's dependencies, so any updates, fixes, new additions can be acquired by simply updating your dependencies on the archetypes.

Archetypes help to solve the problem of updating module boilerplates, by providing a single source of truth, that all of your projects consume.

For example, after developing hundreds of modules such as React components, if you change your build script, you can change it once in the archetype, and then all projects can update their archetype dependency and get the new build script.

Electrode archetypes are a way for every electrode module to share common scripts, workflows, dependencies and best practices that can be updated in real time.

Electrode offers these archetypes for different types of projects:

These archetypes offer rich feature sets that make developing powerful applications with NodeJS and ReactJS simple and easy, allowing you to focus on what matters to you. To explore the features they offer, continue reading this Gitbook.