Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from alibaba/dev
更新到 1.9.0 (update 默认不清理 lockfile) & 其他
- Loading branch information
Showing
26 changed files
with
1,127 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
init: | ||
- name: tnpm-install | ||
- name: pkginfo | ||
|
||
dev: | ||
- name: $local | ||
location: ./lib/index.js | ||
|
||
#中间工程并非要发布到 CDN | ||
#不放到 aliyun group 下也不会发到 CND | ||
#只是中间件的版本管理是基于 tag 的,恰好使用 | ||
publish: | ||
- name: shell | ||
script: | ||
- tnpm pu | ||
- name: ./lib/index.js | ||
puppeteer: | ||
version: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
registry: https://registry.npm.taobao.org | ||
server: https://query.aliyun.com/rest/dc.service.cli?team=general&conf= |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import assert from 'assert'; | ||
import { launch, Browser } from 'puppeteer'; | ||
|
||
describe('demo test', function () { | ||
|
||
let browser: Browser; | ||
beforeEach(async function () { | ||
browser = await launch({ | ||
headless: true, | ||
slowMo: 0, | ||
defaultViewport: { | ||
width: 1000, | ||
height: 600, | ||
} | ||
}); | ||
}); | ||
|
||
it('check title', async function () { | ||
const page = await browser.newPage(); | ||
browser | ||
await page.goto('https:/www.baidu.com/'); | ||
const title = await page.title(); | ||
assert.equal(title, '百度一下,你就知道'); | ||
}); | ||
|
||
}); |
Oops, something went wrong.