Skip to content

Commit 3239f0c

Browse files
committed
2 parents ec3799b + 684d54c commit 3239f0c

27 files changed

+650
-832
lines changed

.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

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- "0.10"
4+
- "6.7.0"
55
before_install:
6-
- npm install npm@1.4 -g
6+
- npm install npm -g
77
before_script:
88
- npm install -g grunt-cli
99
script:

Gruntfile.coffee

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,24 @@ module.exports = (grunt) ->
4444
CMP_CORE_TS = { }
4545
CMP_CORE_NAME = [ ]
4646
for target in SRC_CORE_CMP
47-
CMP_CORE_NAME.push ("typescript:" + target)
47+
CMP_CORE_NAME.push ("ts:" + target)
4848
CMP_CORE_TS[target] =
49-
options:
50-
target: 'es5'
51-
basePath: 'src/core'
52-
src: "src/core/" + target + ".ts"
53-
dest: "src/core/" + target + ".js"
49+
src: ["src/core/" + target + ".ts"]
50+
out: "src/core/" + target + ".js"
5451

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

6761
# Append Typescript Tasks
68-
ts_config = {}
62+
ts_config =
63+
options:
64+
target: 'es5'
6965
for key,value of CMP_CORE_TS
7066
ts_config[key] = value
7167
for key,value of CMP_KAGEROU_TS
@@ -99,7 +95,7 @@ module.exports = (grunt) ->
9995
'build/CommentCoreLibrary.js': SRC_CORELIB
10096

10197
# Compile TypeScript
102-
typescript: ts_config
98+
ts: ts_config
10399

104100
# Copy
105101
copy:
@@ -169,8 +165,10 @@ module.exports = (grunt) ->
169165
specs: 'compiled_spec/*spec.js'
170166
helpers: 'spec/*helper.js'
171167
vendor: [
172-
'node_modules/jasmine-jquery/vendor/jquery/jquery.js'
168+
'node_modules/jquery/dist/jquery.js'
173169
'node_modules/jasmine-jquery/lib/jasmine-jquery.js'
170+
'node_modules/sinon/pkg/sinon.js'
171+
'node_modules/jasmine-sinon/lib/jasmine-sinon.js'
174172
]
175173
template: require('grunt-template-jasmine-istanbul')
176174
templateOptions:
@@ -182,8 +180,10 @@ module.exports = (grunt) ->
182180
specs: 'compiled_spec/*spec.js'
183181
helpers: 'spec/*helper.js'
184182
vendor: [
185-
'node_modules/jasmine-jquery/vendor/jquery/jquery.js'
183+
'node_modules/jquery/dist/jquery.js'
186184
'node_modules/jasmine-jquery/lib/jasmine-jquery.js'
185+
'node_modules/sinon/pkg/sinon.js'
186+
'node_modules/jasmine-sinon/lib/jasmine-sinon.js'
187187
]
188188
template: require('grunt-template-jasmine-istanbul')
189189
templateOptions:

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.github.com/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.github.com/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)