JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q9659F
  • License ISC

Programimg patterns of Javascript

Package Exports

  • jx-pattern

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jx-pattern) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jx-pattern

工具链

  • pre-commit, or [husky]
  • lint-staged, 把 Lint 挪到本地,并且每次提交只检查本次提交所修改的文件

知识点

npm install -g dts-gen   // 先全局安装dts-gen
npm install -g yargs     // 然后在全局安装你需要生产声明文件的库
npm i dtsmake -g   // 先全局安装dtsmake
npm i tern --save-dev

dts-gen -m yargs         // 执行命令生成文件
dtsmake -s ./path/to/sourcefile.js

其他

http://www.typescriptlang.org/docs/handbook/declaration-files/by-example.html http://www.typescriptlang.org/docs/handbook/declaration-files/templates.html