Skip to content

Commit

Permalink
feat: 新增8.22号日报
Browse files Browse the repository at this point in the history
  • Loading branch information
wubaiqing committed Aug 22, 2019
1 parent 4fc1ed2 commit 18378a5
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions docs/2019/08/22.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
### 2019.08.22 - 今天是每日时报陪你的第 232 天

[新闻] 看了 Yarn Berry 才知道,原来 Yarn 也支持 Plugin,比如, plugin-npm-cli:<https://github.com/yarnpkg/berry>

[新闻] 昨天才知道微软也出了一个持续集成服务 Azure Pipelines,名字很有意思并不是叫 CI、CD 之类的,而是叫 Pipelines,我认为这个名字比较合理:<https://docs.microsoft.com/zh-cn/azure/devops/pipelines/languages/javascript?view=azure-devops>

[文章] 使用 BEM 规范来组织 CSS 代码:<https://en.bem.info/methodology/quick-start/>

[类库] 如果在 Babel 7 中使用 Jest 会安装 @babel/core 以及 babel-core 这两个包;这款 babel-7-jest 就能很好的解决这个问题:<https://github.com/Sneezoo/babel-7-jest>

[类库] preload-it 是一个预加载工具,源码就几行很简单:<https://github.com/andreupifarre/preload-it>

[资源] 全栈技术思维导图:<https://github.com/caiyongji/full-stack-mind-map>

### 配图 - 全栈技术思维导图
![](https://raw.githubusercontent.com/caiyongji/full-stack-mind-map/master/img/fullstack.png)

### 示例 - 全栈技术思维导图
```json
"jest": {
"transform": {
".js$": "babel-7-jest"
}
}
```

### 示例 - Azure Pipelines
```yml
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
- master

pool:
vmImage: 'ubuntu-latest'

strategy:
matrix:
node_8_x:
node_version: 8.x
node_10_x:
node_version: 10.x

steps:
- task: PublishTestResults@1
inputs:
versionSpec: $(node_version)

- script: |
npm install -g yarn
yarn install
yarn lint:md
yarn lint:js
yarn test
displayName: 'yarn lint, and yarn test'
```

### 今日图 - 这年头谁都不容易啊
![](http://qn.40zhe.com/16cb217ed4d1971f)

0 comments on commit 18378a5

Please sign in to comment.