Skip to content

Commit de119d3

Browse files
committed
Merge branch 'master' into dev-cssonly
2 parents eb8bf0d + 1ae2994 commit de119d3

24 files changed

Lines changed: 508 additions & 926 deletions

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@
44

55
# Ignore Node Modules
66
/node_modules/*
7+
8+
# Ignore CI
79
/compiled_spec/*
810
/coverage/*
11+
12+
# Ignore tscache
13+
.tscache

Gruntfile.coffee

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,24 @@ module.exports = (grunt) ->
4646
CMP_CORE_TS = { }
4747
CMP_CORE_NAME = [ ]
4848
for target in SRC_CORE_CMP
49-
CMP_CORE_NAME.push ("typescript:" + target)
49+
CMP_CORE_NAME.push ("ts:" + target)
5050
CMP_CORE_TS[target] =
51-
options:
52-
target: 'es5'
53-
basePath: 'src/core'
54-
src: "src/core/" + target + ".ts"
55-
dest: "src/core/" + target + ".js"
51+
src: ["src/core/" + target + ".ts"]
52+
out: "src/core/" + target + ".js"
5653

5754
# Dynamically generate the kagerou ts targets
5855
CMP_KAGEROU_TS = { }
5956
CMP_KAGEROU_NAME = [ ]
6057
for target,src of SRC_SCRIPTING_KAGEROU
61-
CMP_KAGEROU_NAME.push ('typescript:kagerou_engine_' + target)
58+
CMP_KAGEROU_NAME.push ('ts:kagerou_engine_' + target)
6259
CMP_KAGEROU_TS['kagerou_engine_' + target] =
63-
options:
64-
target: 'es5'
65-
basePath: src.split('/')[0..-1].join('/')
6660
src: src
67-
dest: 'build/scripting/api/' + src.split('/').pop().split('.')[0] + '.js'
61+
out: 'build/scripting/api/' + src.split('/').pop().split('.')[0] + '.js'
6862

6963
# Append Typescript Tasks
70-
ts_config = {}
64+
ts_config =
65+
options:
66+
target: 'es5'
7167
for key,value of CMP_CORE_TS
7268
ts_config[key] = value
7369
for key,value of CMP_KAGEROU_TS
@@ -101,7 +97,7 @@ module.exports = (grunt) ->
10197
'build/CommentCoreLibrary.js': SRC_CORELIB
10298

10399
# Compile TypeScript
104-
typescript: ts_config
100+
ts: ts_config
105101

106102
# Copy
107103
copy:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ inside their own projects (whether web based or not) are encouraged to learn
1616
from and extend from the CommentCoreLibrary.
1717

1818
## Testing
19-
We have a live demo [here](http://jabbany.me/CommentCoreLibrary/demo).
19+
We have a live demo [here](http://jabbany.github.io/CommentCoreLibrary/demo).
2020
Feel free to [open tickets](CONTRIBUTING.md) if this demo test has bugs.
2121

2222
## License
@@ -66,7 +66,7 @@ implementation of a video player with CommentCoreLibrary.
6666
高级弹幕效果 (5) 基础格式解析 (6) 代码弹幕支持。
6767

6868
## 测试
69-
你可以在[这里](http://jabbany.me/CommentCoreLibrary/demo) 访问到测试页面。
69+
你可以在[这里](http://jabbany.github.io/CommentCoreLibrary/demo) 访问到测试页面。
7070
我们欢迎各种[BUG报告](CONTRIBUTING.md)
7171

7272
## 许可

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "comment-core-library",
3-
"version": "0.9.2",
3+
"version": "0.9.3",
44
"main": ["build/CommentCoreLibrary.js","build/style.css"],
55
"ignore": [
66
"test/**/*",

0 commit comments

Comments
 (0)