This repository was archived by the owner on Jan 6, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +103
-4
lines changed Expand file tree Collapse file tree 6 files changed +103
-4
lines changed Original file line number Diff line number Diff line change 1- .idea
1+ .idea
2+ node_modules
Original file line number Diff line number Diff line change 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+ } ;
Original file line number Diff line number Diff 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 -
Original file line number Diff line number Diff line change 1- 1.0.13
1+ 1.0.14
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- VERSION=" 1.0.13 "
3+ VERSION=" 1.0.14 "
44
55WORKING_DIR=" $( pwd) "
66
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments