Giter VIP home page Giter VIP logo

create-project-template's Introduction

create-project-template

📄 Help you create your project template file.

Install

// use npm
npm install create-project-template -save-dev

// use yarn
yarn add create-project-template --dev

Quick use

// index.js
const createTemplate = require('create-project-template')

createTemplate()

Command:

// Default create feature folder.
node index.js [feature-file]

Path config

You can configure your template file path and input path by calling the use method.

Import create-project-template

const createTemplate = require('create-project-template')

// use config
createTemplate.use({
  sourcePath: 'src/components',
  templatePath: 'template'
})

createTemplate()

Quick command

Add quick command in package.json:

"scripts": {
  "file": "node test.js"
}

Execute on the command line:

// use npm
npm run file feature
// use yarn
yarn file feature

Replacing

Replacing them with kebabCase、camelCase strings.

<div class="$kebabCase$">
  <h1>$camelCase$</h1>
</div>
$kebabCase$-table.vue

You can add strings of $camelCase$, $kebabCase$ to the template file. After running the script, the strings are replaced by camelCase and kebabCase.

Update records

  • 2018-12-08 🎉 v1.0.0 create-project-template.
  • 2018-12-12 ✨ v1.0.2 You can add strings of $camelCase$, $kebabCase$ to the template file. After running the script, the strings are replaced by camelCase and kebabCase.

LICENSE

MIT

create-project-template's People

Contributors

zxs-1024 avatar

Stargazers

 avatar Victor Teo avatar

Watchers

James Cloos avatar  avatar atzcl avatar

create-project-template's Issues

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.