# 2019.08.22 - 今天是每日时报陪你的第 232 天
[新闻] 看了 Yarn Berry 才知道,原来 Yarn 也支持 Plugin,比如, plugin-npm-cli:https://github.com/yarnpkg/berry (opens new window)
[新闻] 昨天才知道微软也出了一个持续集成服务 Azure Pipelines,名字很有意思并不是叫 CI、CD 之类的,而是叫 Pipelines,我认为这个名字比较合理:https://docs.microsoft.com/zh-cn/azure/devops/pipelines/languages/javascript?view=azure-devops (opens new window)
[文章] 使用 BEM 规范来组织 CSS 代码:https://en.bem.info/methodology/quick-start/ (opens new window)
[类库] 如果在 Babel 7 中使用 Jest 会安装 @babel/core 以及 babel-core 这两个包;这款 babel-7-jest 就能很好的解决这个问题:https://github.com/Sneezoo/babel-7-jest (opens new window)
[类库] preload-it 是一个预加载工具,源码就几行很简单:https://github.com/andreupifarre/preload-it (opens new window)
[资源] 全栈技术思维导图:https://github.com/caiyongji/full-stack-mind-map (opens new window)
# 配图 - 全栈技术思维导图
# 示例 - 全栈技术思维导图
"jest": {
"transform": {
".js$": "babel-7-jest"
}
}
# 示例 - Azure Pipelines
# 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'