Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dukegod/javascript

all in js
https://github.com/dukegod/javascript

javascript

Last synced: 8 days ago
JSON representation

all in js

Awesome Lists containing this project

README

        

# javascript

### 打包
`build`文件夹中配置`rollup.config.js`
+ cmd: 'cjs'
+ umd: 'umd'

### babel@7

`@bable/node`代替之前的`babel-cli`
+ -p : 执行指定的文件

运行以下命令 + 指定的文件
```js
npm run babel ./a.js
```

babel@7 带来的新特征:

+ babel包都添加`@`前缀
+ 去除复杂的`presets`

### mocha

断言库: `chai`

运行以下命令 + 指定的文件

```js
npm run mocha 1.test.js
```

### 目录说明

+ components: 工具库
+ LeetCode: leetcode
+ algorithms: 算法解析
+ js-patterns: 设计模式实现
+ boook