1.0.0 • Published 4 years ago

faner v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

faner

在微信小程序中生成文件依赖树

支持

  • js/ts
  • scss/sass

安装

npm install faner
// or
yarn add faner

使用

--mini\n
---pages 
----index 
-----index.js (import demo.js)
-----demo.js 
-----index.scss
---app.js (import app.js)
---common.js 
---app.scss 
const faner = require('faner')

const res = faner('miniprogram root dir')

console.log(res)

// {
//   "path/src/app.js": [
//     "path/src/commom.js"
//   ],
//   "path/src/commom.js": [],
//   "path/src/app.scss": [
//     "path/src/vars.scss"
//   ],
//   "path/src/vars.scss": [],
//   "path/src/pages/index/demo.js": [],
//   "path/src/pages/index/index.js": [
//     "path/src/pages/index/demo.js"
//   ],
//   "path/src/pages/index/index.scss": []
// }
1.0.0

4 years ago