summivox / thucal2

Tsinghua University curriculum -> iCalendar format (.ics) -> Google Calendar, etc.
http://userscripts.org/scripts/show/159785
22 stars 9 forks source link

遷移到`grunt` #4

Closed MaskRay closed 11 years ago

MaskRay commented 11 years ago

_include.js的生成方式還沒有指明,gruntconcat目標裏暫時使用了['src/_include.js', 'build/thucal2.js']

MaskRay commented 11 years ago

先安装全局的grunt-clinpm i -g grunt-cli。然后在项目根目录下npm i安装grunt依赖。之后用grunt release产生新的userscript

summivox commented 11 years ago

_include.js is concat ["/lib/jquery-1.8.2.min.js", "/lib/moment.min.js", "/lib/FileSaver.min.js"]

这个文件完全就是为了我在vim里手动make方便……

summivox commented 11 years ago

我已经装了,不过这两天不准备搞这个……等补退选快结束的时候集中release一次好了~

MaskRay commented 11 years ago

直接用src: ['lib/jquery-1.8.2.min.js', 'lib/moment.min.js', 'lib/FileSaver.min.js', 'build/thucal2.js']会出问题:

ERROR: Execution of script 'thucal2' failed! moment is not defined
ReferenceError: moment is not defined
summivox commented 11 years ago

rebase on 4a618de and use /lib/moment.min.gm.js instead moment.js does not work with GM sandbox

summivox commented 11 years ago

(manually merged)