Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9fbe44f

Browse files
committed
add grunt-umd
1 parent4e7cc46 commit9fbe44f

File tree

6 files changed

+1023
-973
lines changed

6 files changed

+1023
-973
lines changed

‎Gruntfile.coffee‎

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,37 @@ module.exports = (grunt) ->
2323
coffee:
2424
withMaps:
2525
options:
26+
bare:true
2627
sourceMap:true
2728
files:
2829
'src/<%= pkg.name %>.js':'src/<%= pkg.name %>.coffee'
2930
withoutMaps:
3031
options:
32+
bare:true
3133
sourceMap:false
3234
files:
3335
'dist/<%= pkg.name %>.js':'src/<%= pkg.name %>.coffee'
3436

3537
watch:
3638
scripts:
3739
files: ['src/*.coffee']
38-
tasks: ['coffee']
40+
tasks: ['coffee','umd']
41+
42+
umd:
43+
options:
44+
template:'umd'
45+
deps:
46+
'default': ['$']
47+
amd: ['jquery']
48+
cjs: ['jquery']
49+
global:
50+
items: ['jQuery']
51+
prefix:''
52+
src:
53+
src:'src/<%= pkg.name %>.js'
54+
dist:
55+
src:'dist/<%= pkg.name %>.js'
56+
3957

4058
'json-replace':
4159
options:
@@ -53,8 +71,9 @@ module.exports = (grunt) ->
5371
grunt.loadNpmTasks'grunt-contrib-jasmine'
5472
grunt.loadNpmTasks'grunt-json-replace'
5573
grunt.loadNpmTasks'grunt-contrib-watch'
74+
grunt.loadNpmTasks'grunt-umd'
5675

5776
grunt.registerTask'update-version','json-replace'
5877

59-
grunt.registerTask'default', ['coffee','jasmine','update-version','uglify','watch']
60-
grunt.registerTask'test', ['coffee','jasmine']
78+
grunt.registerTask'default', ['coffee','umd','jasmine','update-version','uglify','watch']
79+
grunt.registerTask'test', ['coffee','umd','jasmine']

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp