@pumpn/template
v1.5.3
Published
the basic repository template for pumpn code projects
Downloads
14
Maintainers
Readme
This is the main template repository for our projects and the origin of every other template, which is why it shouldn't be used directly for end products. It includes the basic structure and important, so-called dotfiles.
At the moment it includes more specific files (a rollup configuration for example), but those will be removed once we reach 2.0.0 and have a separate repository for them.
"Unordered" lists in this document are ordered by priority from top to bottom, but aren't markdown ordered lists because they don't signify fixed sequences of steps.
This document uses emoji suffixes in some cases to possibly speed up your setup process by highlighting options you may or may not want to take into consideration:
- The suffix 💎 marks a recommended option or extra-step.
- The suffix 🤡 marks a possible but not recommended option.
- The suffixes 🍎 (macOS), 🪟 (Windows and WSL) and 🐧 (Linux) mark information or installation steps unique to specific platforms.
Getting Started
Prerequisites
If you're a developer, you'll presumably have those or working alternatives, feel free to skip to the Installation section. This guide expects you have Windows, or a Unix or Unix-like operating system (macOS for example) and a modern browser installed. This project should work on every imaginable modern system configuration, but your best bet would be to use a well established and popular one.
Homebrew 🍎
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- macOS 🍎
Homebrew 💎
brew install git
Installing Git through Xcode, which was a dozen gigabytes large and took an hour to setup last time I checked, is a classic Pyrrhic victory. If you already have Xcode, I guess it's fine to use "their" Git though.
- Windows 🪟
- Linux 🐧
- macOS 🍎
Install through nvm 💎
macOS, Linux & WSL 💎
Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
Install the latest Node.js
nvm install node
Windows 🪟
Install nvm-windows
Install the latest Node.js
nvm install latest
Installation
Get the template
Create a new repository from template 💎
Click "Use this template"
Fill in the details, check "Include all branches" and click "Create repository from template"
Clone your new repository
git clone https://github.com/username/my-new-repository.git
Create a new repository by cloning 🤡
This completely defeats the purpose of the GitHub template feature, because normal clones (and forks) copy the whole commit history (and other things) but not all branches, which normally isn't what you want when creating a new project based on a boilerplate. Read more here.
Clone this repository into a new folder
git clone https://github.com/pumpncode/template.git my-new-repository
Set it up
Go into your new repository folder
cd my-new-repository
Install the dependencies
npm install
Usage
Because this is a template, the usage depends on what your new project will do. Once everything is installed, you can try running the scripts in the package.json, these make use of every other feature of this template.
helloWorld
This is a hello world function.
Examples
console.log(helloWorld()); // logs "Hello World!"
Returns string "Hello World!".
Roadmap
See the current projects and the open issues for a list of proposed features and known issues.
Contributing
Any contributions you make are greatly appreciated.
See contributing.md for ways to get started.
This project has a code of conduct. By interacting with this repository you agree to follow its terms.
Contact
Pumpn Code - [email protected]
Nano Miratus - @nnmrts - [email protected]
Project Link: https://github.com/pumpncode/template
Acknowledgments
Contributors
| Name | Website | GitHub | Twitter | | ---------------- | ------------------------ | ----------------- | ----------------- | | Nano Miratus | https://pumpn.net/ | @nnmrts | @nnmrts |