Skip to content
This repository was archived by the owner on Jan 6, 2018. It is now read-only.

Commit dd3b171

Browse files
committed
Update
1 parent ff68e95 commit dd3b171

File tree

6 files changed

+103
-4
lines changed

6 files changed

+103
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.idea
1+
.idea
2+
node_modules

Gruntfile.js

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
var current_version = '1.0.13';
2+
var new_version = '1.0.14';
3+
4+
module.exports = function(grunt) {
5+
grunt.loadNpmTasks('grunt-replace');
6+
7+
grunt.initConfig({
8+
replace: {
9+
task1: {
10+
options: {
11+
patterns: [
12+
{
13+
match: current_version,
14+
replacement: new_version
15+
}
16+
],
17+
usePrefix: false
18+
},
19+
files: [
20+
{
21+
expand: true,
22+
src: [
23+
'VERSION.md'
24+
]
25+
}
26+
]
27+
},
28+
task2: {
29+
options: {
30+
patterns: [
31+
{
32+
match: 'git checkout ' + current_version,
33+
replacement: 'git checkout ' + new_version
34+
}
35+
],
36+
usePrefix: false
37+
},
38+
files: [
39+
{
40+
expand: true,
41+
src: [
42+
'README.md'
43+
]
44+
}
45+
]
46+
},
47+
task3: {
48+
options: {
49+
patterns: [
50+
{
51+
match: '"version": "' + current_version + '"',
52+
replacement: '"version": "' + new_version + '"'
53+
}
54+
],
55+
usePrefix: false
56+
},
57+
files: [
58+
{
59+
expand: true,
60+
src: [
61+
'package.json'
62+
]
63+
}
64+
]
65+
},
66+
task4: {
67+
options: {
68+
patterns: [
69+
{
70+
match: 'VERSION="' + current_version + '"',
71+
replacement: 'VERSION="' + new_version + '"'
72+
}
73+
],
74+
usePrefix: false
75+
},
76+
files: [
77+
{
78+
expand: true,
79+
src: [
80+
'drupal-compose.sh'
81+
]
82+
}
83+
]
84+
}
85+
}
86+
});
87+
88+
grunt.registerTask('bump', 'replace');
89+
grunt.registerTask('default', 'replace');
90+
};

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Generates general purpose [docker-compose.yml](https://docs.docker.com/compose/y
1616
TMP="$(mktemp -d)" \
1717
&& git clone https://github.com/dockerizedrupal/drupal-compose.git "${TMP}" \
1818
&& cd "${TMP}" \
19-
&& git checkout 1.0.13 \
19+
&& git checkout 1.0.14 \
2020
&& sudo cp "${TMP}/drupal-compose.sh" /usr/local/bin/drupal-compose \
2121
&& sudo chmod +x /usr/local/bin/drupal-compose \
2222
&& cd -

VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.13
1+
1.0.14

drupal-compose.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
VERSION="1.0.13"
3+
VERSION="1.0.14"
44

55
WORKING_DIR="$(pwd)"
66

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "drupal-compose",
3+
"version": "1.0.14",
4+
"dependencies": {
5+
"grunt": "^0.4.5",
6+
"grunt-replace": "^0.11.0"
7+
}
8+
}

0 commit comments

Comments
 (0)