Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_46011646
wechaty
提交
41b978bd
W
wechaty
项目概览
weixin_46011646
/
wechaty
与 Fork 源项目一致
Fork自
wechaty / wechaty
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
wechaty
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
41b978bd
编写于
6月 12, 2019
作者:
Huan (李卓桓)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove useless files
上级
21ff9ca2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
117 deletion
+0
-117
scripts/development-release.ts
scripts/development-release.ts
+0
-20
scripts/package-publish-config-tag-next.ts
scripts/package-publish-config-tag-next.ts
+0
-20
scripts/pre-push.sh
scripts/pre-push.sh
+0
-56
tslint.json
tslint.json
+0
-21
未找到文件。
scripts/development-release.ts
已删除
100755 → 0
浏览文件 @
21ff9ca2
#!/usr/bin/env ts-node
/**
* Author: Huan LI <zixia@zixia.net>
* https://github.com/zixia
* License: Apache-2.0
*/
import
readPkgUp
from
'
read-pkg-up
'
import
{
minor
}
from
'
semver
'
const
pkg
=
readPkgUp
.
sync
({
cwd
:
__dirname
})
!
.
package
export
const
VERSION
=
pkg
.
version
if
(
minor
(
VERSION
)
%
2
===
0
)
{
// production release
console
.
log
(
`
${
VERSION
}
is production release`
)
process
.
exit
(
1
)
// exit 1 for not development
}
// development release
console
.
log
(
`
${
VERSION
}
is development release`
)
process
.
exit
(
0
)
scripts/package-publish-config-tag-next.ts
已删除
100755 → 0
浏览文件 @
21ff9ca2
#!/usr/bin/env ts-node
import
*
as
fs
from
'
fs
'
import
*
as
path
from
'
path
'
import
readPkgUp
from
'
read-pkg-up
'
const
PACKAGE_JSON
=
path
.
join
(
__dirname
,
'
../package.json
'
)
const
pkg
=
readPkgUp
.
sync
({
cwd
:
__dirname
})
!
.
package
// pkg.publishConfig.tag = 'next'
pkg
.
publishConfig
=
{
access
:
'
public
'
,
...
pkg
.
publishConfig
,
tag
:
'
next
'
,
}
fs
.
writeFileSync
(
PACKAGE_JSON
,
JSON
.
stringify
(
pkg
,
null
,
2
))
// console.log(JSON.stringify(pkg, null, 2))
console
.
log
(
'
set package.json:publicConfig.tag to next.
'
)
scripts/pre-push.sh
已删除
100755 → 0
浏览文件 @
21ff9ca2
#!/bin/bash
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-commit".
set
-e
[
-n
"
$NO_HOOK
"
]
&&
exit
0
[
-n
"
$HUAN_INNER_PRE_HOOK
"
]
&&
{
# http://stackoverflow.com/a/21334985/1123955
exit
0
}
npm run lint
[
-z
"
$CYGWIN
"
]
&&
{
# git rebase
rm
-f
package-lock.json
npm version patch
--no-package-lock
HUAN_INNER_PRE_HOOK
=
1 git push
cat
<<
'
_STR_
'
____ _ _ ____ _
/ ___(_) |_ | _
\
_ _ ___| |__
| | _| | __| | |_) | | | / __| '_
\
| |_| | | |_ | __/| |_|
\_
_
\
| | |
\_
___|_|
\_
_| |_|
\_
_,_|___/_| |_|
____ _ _
/ ___| _ _ ___ ___ ___ ___ __| | |
\_
__
\|
| | |/ __/ __/ _
\/
_
\/
_` | |
___) | |_| | (_| (_| __/ __/ (_| |_|
|____/
\_
_,_|
\_
__
\_
__
\_
__|
\_
__|
\_
_,_(_)
_STR_
echo
echo
echo
echo
" ### Npm verion bumped and pushed by inner push inside hook pre-push ###"
echo
" ------- vvvvvvv outer push will be canceled, never mind vvvvvvv -------"
echo
echo
echo
exit
127
}
# must run this after the above `test` ([ -z ...]),
# or will whow a error: error: failed to push some refs to 'git@github.com:Chatie/wechaty.git'
echo
"PRE-PUSH HOOK PASSED"
echo
tslint.json
已删除
100644 → 0
浏览文件 @
21ff9ca2
{
"rulesDirectory"
:
[
"node_modules/@wwwouter/tslint-contrib"
],
"extends"
:
[
"tslint:recommended"
,
"tslint-config-standard"
],
"rules"
:
{
"interface-name"
:
[
true
,
"never-prefix"
],
"trailing-comma"
:
true
,
"import-spacing"
:
false
,
"no-multi-spaces"
:
false
,
"no-console"
:
false
,
"space-within-parens"
:
false
,
"arrow-parens"
:
false
,
"max-line-length"
:
false
,
"unified-signatures"
:
false
,
"ter-indent"
:
false
,
"member-ordering"
:
false
,
"no-promise-as-boolean"
:
true
,
"typedef-whitespace"
:
false
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录