Skip to content

Commit d4e2205

Browse files
committed
Add drush.make file snippets
1 parent 5fd6e6b commit d4e2205

File tree

2 files changed

+128
-0
lines changed

2 files changed

+128
-0
lines changed

plugin/snipMate_drupal.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if has("autocmd")
1414
autocmd BufRead,BufNewFile *.test set filetype=php
1515
autocmd BufRead,BufNewFile *.inc set filetype=php
1616
autocmd BufRead,BufNewFile *.profile set filetype=php
17+
autocmd BufRead,BufNewFile *.make set filetype=dmake
1718
augroup END
1819
endif
1920
" vim:noet:sw=4:ts=4:ft=vim

snippets/dmake.snippets

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
snippet core
2+
api = 2
3+
core = ${1}.x
4+
${2}
5+
#contrib Module, Theme or Profile
6+
snippet p
7+
projects[${1}][subdir] = ${2:contrib}
8+
${3}
9+
10+
#contrib Module, Theme or Profile specified Version
11+
snippet pv
12+
projects[${1:}][subdir] = ${2:contrib}
13+
projects[$1][version] = ${3}
14+
${4}
15+
#contrib Module, Theme or Profile from Git
16+
snippet pg branch
17+
projects[${1:}][subdir] = ${2:contrib}
18+
projects[$1][download][type] = git
19+
projects[$1][download][url] = http://git.drupal.org/project/$1.git
20+
projects[$1][download][branch] = ${3:master}
21+
${4}
22+
snippet pg tag
23+
projects[${1:}][subdir] = ${2:contrib}
24+
projects[$1][download][type] = git
25+
projects[$1][download][url] = http://git.drupal.org/project/$1.git
26+
projects[$1][download][tag] = ${3:}
27+
${4}
28+
snippet pg revision
29+
projects[${1:}][subdir] = ${2:contrib}
30+
projects[$1][download][type] = git
31+
projects[$1][download][url] = http://git.drupal.org/project/$1.git
32+
projects[$1][download][revision] = ${3:}
33+
${4}
34+
#custom Module from Git
35+
snippet cmg branch
36+
projects[${1:}][subdir] = ${2:custom}
37+
projects[$1][type] = module
38+
projects[$1][download][type] = git
39+
projects[$1][download][url] = ${3}/$1.git
40+
projects[$1][download][branch] = ${4:master}
41+
${5}
42+
snippet cmg tag
43+
projects[${1:}][subdir] = ${2:custom}
44+
projects[$1][type] = module
45+
projects[$1][download][type] = git
46+
projects[$1][download][url] = ${3}/$1.git
47+
projects[$1][download][tag] = ${4:}
48+
${5}
49+
snippet cmg revision
50+
projects[${1:}][subdir] = ${2:custom}
51+
projects[$1][type] = module
52+
projects[$1][download][type] = git
53+
projects[$1][download][url] = ${3}/$1.git
54+
projects[$1][download][revision] = ${4:}
55+
${5}
56+
#custom Theme from Git
57+
snippet ctg branch
58+
projects[${1:}][subdir] = ${2:custom}
59+
projects[$1][type] = theme
60+
projects[$1][download][type] = git
61+
projects[$1][download][url] = ${3}/$1.git
62+
projects[$1][download][branch] = ${4:master}
63+
${5}
64+
snippet ctg tag
65+
projects[${1:}][subdir] = ${2:custom}
66+
projects[$1][type] = theme
67+
projects[$1][download][type] = git
68+
projects[$1][download][url] = ${3}/$1.git
69+
projects[$1][download][tag] = ${4:}
70+
${5}
71+
snippet ctg revision
72+
projects[${1:}][subdir] = ${2:custom}
73+
projects[$1][type] = theme
74+
projects[$1][download][type] = git
75+
projects[$1][download][url] = ${3}/$1.git
76+
projects[$1][download][revision] = ${4:}
77+
${5}
78+
#custom Profile from Git
79+
snippet cpg branch
80+
projects[${1:}][subdir] = ${2:custom}
81+
projects[$1][type] = profile
82+
projects[$1][download][type] = git
83+
projects[$1][download][url] = ${3}/$1.git
84+
projects[$1][download][branch] = ${4:master}
85+
${5}
86+
snippet cpg tag
87+
projects[${1:}][subdir] = ${2:custom}
88+
projects[$1][type] = profile
89+
projects[$1][download][type] = git
90+
projects[$1][download][url] = ${3}/$1.git
91+
projects[$1][download][tag] = ${4:}
92+
${5}
93+
snippet cpg revision
94+
projects[${1:}][subdir] = ${2:custom}
95+
projects[$1][type] = profile
96+
projects[$1][download][type] = git
97+
projects[$1][download][url] = ${3}/$1.git
98+
projects[$1][download][revision] = ${4:}
99+
${5}
100+
#custom Feature from Git
101+
snippet cfg branch
102+
projects[${1:}][subdir] = ${2:features}
103+
projects[$1][type] = module
104+
projects[$1][download][type] = git
105+
projects[$1][download][url] = ${3}/$1.git
106+
projects[$1][download][branch] = ${4:master}
107+
${5}
108+
snippet cfg tag
109+
projects[${1:}][subdir] = ${2:features}
110+
projects[$1][type] = module
111+
projects[$1][download][type] = git
112+
projects[$1][download][url] = ${3}/$1.git
113+
projects[$1][download][tag] = ${4:}
114+
${5}
115+
snippet cfg revision
116+
projects[${1:}][subdir] = ${2:features}
117+
projects[$1][type] = module
118+
projects[$1][download][type] = git
119+
projects[$1][download][url] = ${3}/$1.git
120+
projects[$1][download][revision] = ${4:}
121+
${5}
122+
#Libraries
123+
snippet l file
124+
libraries[${1:}][download][type] = file
125+
libraries[$1][download][url] = ${2}
126+
libraries[$1][download][md5] = ${3}
127+
${4}

0 commit comments

Comments
 (0)