Skip to content

Commit

Permalink
adding new submoduleSync task to ensure submodule updates are sync’…
Browse files Browse the repository at this point in the history
…d between developers, bump GUI-source package
  • Loading branch information
jonnystening committed Jul 18, 2018
1 parent e0c4d50 commit 495e808
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
39 changes: 39 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,30 @@ module.exports = function(grunt) {
});


//------------------------------------------------------------------------------------------------------------------------------------------------------------
// Custom grunt task to synchronize submodules' remote URL configuration setting to the value specified in .gitmodules.
// Running this ensures submodule updates are sync'd between developers
//------------------------------------------------------------------------------------------------------------------------------------------------------------
grunt.registerTask('submoduleSync', 'Git sync the submodules.', function() {

var exec = {};

// Running git submodule sync
grunt.verbose.writeln( 'Running git submodule sync' );
exec[ 'submodule-sync' ] = { //SYNC
options: {
stderr: false,
stdout: true,
},
command: 'git submodule sync',
};

//running tasks
grunt.config.set('exec', exec);
grunt.task.run('exec:submodule-sync');
});


//------------------------------------------------------------------------------------------------------------------------------------------------------------
// Custom grunt task to create a page for all modules
//------------------------------------------------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -586,6 +610,15 @@ module.exports = function(grunt) {
text: ' copying tests',
},

submoduleSync: {
options: {
font: 'simple',
maxLength: 30,
colors: ['magenta'],
},
text: ' syncing submodules',
},

finished: {
text: 'finished',
},
Expand Down Expand Up @@ -635,6 +668,9 @@ module.exports = function(grunt) {
grunt.registerTask('default', [ //build index and gui.json
'font:title',

'font:submoduleSync',
'submoduleSync',

'font:cleanDocs',
'clean:docs',

Expand All @@ -651,6 +687,9 @@ module.exports = function(grunt) {
grunt.registerTask('all', [ //build index, gui.json and _sandbox
'font:title',

'font:submoduleSync',
'submoduleSync',

'font:cleanDocs',
'clean:docs',

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ The `module.json` file that is then compiled into the GUI.json file is the engin

> We are trying to make as little changes to the overall build as possible.
* v1.0.5 - Added new `submoduleSync` task to ensure submodule updates are sync’d between developers
* v1.0.4 - Send stress test pages to `/docs` directory
* v1.0.3 - Clean `_sandbox` icon output pre build and update `._template` files
* v1.0.2 - Automated branding with the `.guiconfig` file
Expand All @@ -272,7 +273,7 @@ The `module.json` file that is then compiled into the GUI.json file is the engin

### License

Copyright (c) 2017 Westpac. Licensed under the [GNU GPLv2](https://raw.githubusercontent.com/WestpacCXTeam/GUI-source/master/LICENSE).
Copyright (c) 2018 Westpac. Licensed under the [GNU GPLv2](https://raw.githubusercontent.com/WestpacCXTeam/GUI-source/master/LICENSE).

**[:point_up: back to top](#content)**

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "GUI-source",
"version": "1.0.4",
"version": "1.0.5",
"private": true,
"devDependencies": {
"chalk": "^2.0.1",
Expand Down

0 comments on commit 495e808

Please sign in to comment.