背景
最近在研究一个ngptcommit命令行工具,然后想通过Rollup
+Typescript
去编译的时候,发现对Rollup
和Typescript
的编译配置有点陌生,所以希望通过本文能够对其有个系统的认知。
本文主要是项目编译基础知识,明白其为什么要这么配置,同时能够将项目完整跑起来。
参考项目地址为:node-gptcommit。
more >>
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia-plus根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true
Java出身,喜欢前端进行转岗,主攻全栈发展,技术有:Vue、React、Nodejs、Java等。
加我好友,多个朋友交流也不错~