- Create a new GitHub repository without a readme
- Open Terminal
- Create a bare clone of this repository
$ git clone --bare git@github.com:ClearC2/package-template.git
- Mirror push to your new repository
$ cd package-template.git
$ git push --mirror <your new package git URI created in step 1>
- Remove the temporary local repository you created in step 3
$ cd ..
$ rm -rf package-template.git
-
Change your
package.jsonto conform to your new package instead ofpackage-template. This includes:- name
- description
- keywords
- repository URL
- bugs URL
- homepage URL
-
Change the
README.mdto to conform to your package. This includes:- title
- deleting the
Creating a New Package From the Templatesection
-
Change the
aliassection in theexample/webpack.config.jsfile to resolve your new package name (i.e. changepackage-templateto your package name) -
Change the import statement in
example/src/App.jsto use this new alias instead ofpackage-template -
Commit your changes to the
package.json,README.md,example/webpack.config.js, andexample/src/App.js, and push them up to GitHub. Your package is now ready for development
- Add Mocha/Chai/Enzyme/Istanbul test framework