New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@cdjs/js-math

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cdjs/js-math

A simple math calculation library for JavaScript and Node.js

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
14
250%
Maintainers
1
Weekly downloads
 
Created
Source

构建 Webpack + TypeScript JS 库开发框架

Webpack 相关

  • webpack
  • webpack-cli
  • webpack-merge
  • webpack-dev-server: 启动开发环境,在 webpack.dev.config.js 中配置
  • html-webpack-plugin: 输入到页面,在 webpack.base.config.js 中配置
  • clean-webpack-plugin: 用于在下一次打包时清除之前打包的文件,3.0.0 注意导入方式和传参

TypeScript 相关

  • typescript
  • ts-loader: 用于加载 ts 文件
    • transpileOnly true失去类型检查 false 降低编译速度
  • fork-ts-checker-webpack-plugin: 在 transpileOnly: true 时配置,开启一个独立的进程进行类型检查 Webpack 文档

Babel

测试

npx ts-jest config:init: 生成 jest 配置文件

  • jest
  • @types/jest
  • ts-jest: 测试用例中可以进行类型检查

jest.config.js中新增preset: 'ts-jest', testEnvironment: 'node'

eslint

  • eslint
  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser

"lint": "eslint src --ext .js,.ts"

Keywords

Javascipt

FAQs

Package last updated on 15 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts