@ianwremmel/create
[![license](https://img.shields.io/github/license/ianwremmel/proj.svg)](https://github.com/ianwremmel/proj/blob/master/LICENSE) [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://
Last updated 2 years ago by ianwremmel .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ianwremmel/create 
SYNC missed versions from official npm registry.

@ianwremmel/proj

license standard-readme compliant

Dependabot badge semantic-release

CircleCI

Rig up projects on GitHub/CircleCI

I got tired of going through the same set of steps to create a repo, tweak package.json, connect circle ci, and whatnot, so, this automates that process according to my preferences.

Install

Since this project is intended for use with npm init, there's generally no need to install it.

  1. (optional) Install the 1Password CLI to (potentiall) avoid some password prompts.

  2. Use with npm init

    npm install -g @ianwremmel/create
    

Usage

In order to avoid some password prompts, create attempts to pull credentials from 1Password. You'll need to set:

  • a 1Password login for github.com (2-Factor Auth is supported)
  • a 1Password password for Circle CI API Token

If you don't set these values, you'll be prompted for them at runtime. Due to timing effects, you may be prompted for multiple GitHub OTPs.

Use just like npm init

If you're relying on 1Password, make sure to run eval $(op signin my) first.

npm init @ianwremmel

You'll be prompted for a few decisions and then the script will do (at least) the following:

  • create a github repository
  • initialize local repository
  • create root commit
  • connect local repo to github repo
  • follow project on circle ci and configure project settings
  • create common project files and install dev dependencies
    • .circleci/config.yml
    • .editorconfig
    • .eslintrc.yml
    • .gitignore
    • .markdownlint
    • .prettierrc
    • .prettierignore
    • .npmrc
    • LICENSE
    • README.md
    • commitlint.config.js
    • package.json
  • generate npm scripts
  • push local commits to github
  • setup branch protection
  • Follow project with dependabot

This project is supposed to be idempotent, but rerunning in an existing project is not well tested. Use at your own risk.

Maintainers

ianwremmel

Contribute

See CONTRIBUTE

License

© MIT

Current Tags

  • 3.0.1                                ...           latest (a year ago)

10 Versions

  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.2.5                                ...           2 years ago
  • 2.2.4                                ...           2 years ago
  • 2.2.3                                ...           2 years ago
  • 2.2.2                                ...           2 years ago
  • 2.2.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |