起因
最近因为项目需求,需要将原有的一些Swift代码转换成OC代码,因为工作毫无挑战性,所以想写一个Swift to Objective-C 的工具来做一些沉淀
设计
目前暂时的设计是这样的
发现苹果Swift也有 Class/Function definition 级别的工具(就是产生Module-Swift.h),可以借鉴看下
代码仓库
目前代码仓库在这里: 代码仓库
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
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