Skip to content

Commit

Permalink
添加CI
Browse files Browse the repository at this point in the history
  • Loading branch information
meepobrother committed May 3, 2019
1 parent 537fbc4 commit 27de5a9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 752 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: javascript
sudo: false
node_js:
- "10"
cache:
directories:
- node_modules
script: npm run build:lib
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
"preview:android": "tns preview",
"platform:native": "ts-node -r tsconfig-paths/register packages/nger-cli/lib/bin.ts build lib -n nger-platform-native",
"platform:ios": "ts-node -r tsconfig-paths/register packages/nger-cli/lib/bin.ts build lib -n nger-platform-ios",
"platform:android": "ts-node -r tsconfig-paths/register packages/nger-cli/lib/bin.ts build lib -n nger-platform-android"
"platform:android": "ts-node -r tsconfig-paths/register packages/nger-cli/lib/bin.ts build lib -n nger-platform-android",
"build:lib": "ts-node -r tsconfig-paths/register packages/nger-cli/lib/bin.ts lib"
}
}
6 changes: 5 additions & 1 deletion packages/nger-platform-weapp/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { createPlatformFactory, platformCore, Http, Sdk } from 'nger-core'
import { NgerWeappHttp } from './http'
declare const wx: any;
// 微信端的SDK不用实现
// 微信端的SDK不用实现
// 微信端的SDK不用实现
// 微信端的SDK不用实现
export default createPlatformFactory(platformCore, 'weapp', [{
provide: Http,
useClass: NgerWeappHttp,
deps: []
}, {
provide: Sdk,
useValue: wx
}])
}]);
Loading

0 comments on commit 27de5a9

Please sign in to comment.