1.0.0 • Published 5 years ago

templategood v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

TEMPLATEGOOD

Why is that? In the past days I developed a Lit-Element template in order to help people to start using Lit-Element with Redux and Saga integration. There are plenty of tutorial of Redux on React but none on Lit-element, and that's why I wanted to create something easy to build and easy to launch. Everything went very well and I published it on github and then I thought: "If I would create an npm package it would be very great!". Unfortunately creating a npm package of that kind wasn't so easy (even because it was my really first package) so, as soon as I've finished it I told myself "Now you have to create something that could help people create their own templates" and here we are. TEMPLATEGOOD.

HOW IT WORKS

Let's assume you have just created a cool template in React or whatever and you decide to publish it on npm. With this package you just need to:

npm install --global templategood
cd to/your/folder
templategood <name-of-template>

now the script will create a new folder which contains this structure

node_modules
template
  ...list of your files and folder
clihandler
generator
index.js
LICENSE
README.md
package.json

IN DETAILS

Template folder contains everything that was present in your previous folder form which you wanted to create the template.

node_modules is the list of all dependencies needed to make this works

the javascript files handles the logic of this package

package.json contains the details of your newly created template. You should check it out and change something before publish it.

WHAT'S NEXT?

Now you have your npm package ready to be published. Easy as that!

GITHUB

This is my first try on something like that, it could contains bugs or worse. If you find this idea cool, then check the github folder and help me create something that could really help other developers