- 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.json
to conform to your new package instead ofpackage-template
. This includes:- name
- description
- keywords
- repository URL
- bugs URL
- homepage URL
-
Change the
README.md
to to conform to your package. This includes:- title
- deleting the
Creating a New Package From the Template
section
-
Change the
alias
section in theexample/webpack.config.js
file to resolve your new package name (i.e. changepackage-template
to your package name) -
Change the import statement in
example/src/App.js
to 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