create-simple-projects

    0.0.7 • Public • Published

    Inspired by:

    mycli

    Usage

    Create a new project based on template.

    npx create-simple-projects

    Or

    npm i create-simple-projects - g && npx csp

    Options

    template

    Select template project, Available options:

    • ts

    npx csp --template ts

    name

    Name for new project.

    npx csp --name test

    Placeholder

    Use ejs as template placeholder. Any package.json files or *.ejs.* files will automatically transform the ejs tags within.

    PROJECT_NAME

    "name": "<%= PROJECT_NAME %>"

    AUTHOR

    "author": {
      "name": "<%= AUTHOR %>"
    }

    KEYWORDS

    KEYWORDS template variable is an array of string.

    npx csp --keywords "react classnames style"
    

    Use in template file.

    xxx.ejs.ts

    const keywords = JSON.parse(<%= JSON.stringify(KEYWORDS); %>);

    Use in package.json

    "keywords": "<%= KEYWORDS.join('", "') %>"
    

    Install

    npm i create-simple-projects

    DownloadsWeekly Downloads

    10

    Version

    0.0.7

    License

    ISC

    Unpacked Size

    202 kB

    Total Files

    33

    Last publish

    Collaborators

    • magicismight