Coder Social home page Coder Social logo

zoux / vue-preset Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 200 KB

💾 用于快速生成项目模版的 vue-cli preset,具备主流项目基础配置、预留配置空间。基于 vue 2 + vue-cli 3 实现

License: MIT License

JavaScript 57.95% Vue 13.43% CSS 28.62%
preset template vue vue-cli

vue-preset's People

Contributors

zoux avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cjjlovedsn

vue-preset's Issues

利用api.render特性来删除文件

api.render(files => {
Object.keys(files)
.filter(path => ['src/', 'tsconfig.json', 'tslint.json'].some(keyword => path.includes(keyword)))
.forEach(path => delete files[path])
})



hello,你好,咨询一下
我希望将之前插件生成的工程模板全部删除,然后把自己的template目录复制进来;和你的实现很相似


我按照你的思路,测试了如下的代码,发现模板拷贝的时候会和已存在的文件进行merge;请问针对类似merge合并的情况有什么解决措施吗
api.render(files => { Object.keys(files).forEach(path => delete files[path]) }) api.render('./template')

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.