Giter VIP home page Giter VIP logo

cookiecutter-js's Introduction

JavaScript 基础模板创建工具

cookiecutter 是一个 python 写的 wizard 工具,现想引入到 js 项目中来作为个人定制化起手模板的构建工具。工具本身使用起来也是非常简单,详细说明参考 官方文档

Feature

  1. 基础配置文件生成

    • package.json
    • LICENSE
    • README.md
  2. git 相关配置文件生成

    • .gitignore
    • .huskyrc.js
    • .lintstagedrc.js
    • .commitlintrc.js
  3. eslint 相关配置文件生成

    • .eslintrc.js
    • .eslintignore
    • .prettierrc.js
    • .editorconfig
    • .vscode/settings.json
  4. 生成完毕后执行 yarn install

Structure

rwxr-xr-x  3  vincent  staff    96 B    Wed Jan 22 16:59:37 2020  .vscode/
rw-r--r--  1  vincent  staff   397 B    Sun Feb 16 23:34:04 2020  .commitlintrc.js 
rw-r--r--  1  vincent  staff   146 B    Wed Jan 22 16:20:56 2020  .editorconfig 
rw-r--r--  1  vincent  staff    31 B    Wed Jan 22 16:20:56 2020  .eslintignore 
rw-r--r--  1  vincent  staff   322 B    Wed Jan 22 16:20:56 2020  .eslintrc.js 
rw-r--r--  1  vincent  staff    42 B    Wed Jan 22 16:59:37 2020  .gitignore 
rw-r--r--  1  vincent  staff   121 B    Sat Feb 15 13:16:32 2020  .huskyrc.js 
rw-r--r--  1  vincent  staff   158 B    Sat Feb 15 13:05:10 2020  .lintstagedrc.js 
rw-r--r--  1  vincent  staff     1 KiB  Sat Feb 15 12:33:17 2020  .prettierrc.js 
rw-r--r--  1  vincent  staff     1 KiB  Wed Jan 22 16:20:56 2020  LICENSE 
rw-r--r--  1  vincent  staff    34 B    Wed Jan 22 16:59:37 2020  README.md 

Usage

  1. 安装 cookiecutter
$ pip install cookiecutter
  1. 使用模板
$ cookiecutter gh:vincent0700/cookiecutter-js

project_name [project_name]: demo
author [vincent0700 (https://vincentstudio.info)]:
email [[email protected]]:
description [say somthing]: a demo project

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.