Skip to content
This repository was archived by the owner on Jul 2, 2020. It is now read-only.

Commit 1482e79

Browse files
committed
Release 3.1.0
1 parent b4ef6e0 commit 1482e79

File tree

7 files changed

+32
-15
lines changed

7 files changed

+32
-15
lines changed

Gruntfile.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ module.exports = function (grunt) {
1616
src : "build/*.js"
1717
},
1818
pkg: grunt.file.readJSON("package.json"),
19-
tooling_project: 'Tooling_V3.0.0',
19+
tooling_project: 'Tooling_V3.1.0',
2020
build_urls: grunt.file.readJSON("buildconf.json"),
21-
jet_version_token:'3.0.0',
22-
jet_doc_version_token:'300',
23-
version_token:'3.0.0',
24-
tooling_project_token:'Tooling_V3.0.0',
21+
jet_version_token:'3.1.0',
22+
jet_doc_version_token:'310',
23+
version_token:'3.1.0',
24+
tooling_project_token:'Tooling_V3.1.0',
2525
current_year_token: '2017'
2626
}
2727
var configs = require('load-grunt-configs')(grunt, options);

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# grunt-oraclejet 3.0.0
1+
# grunt-oraclejet 3.1.0
22

33
## About the module
44
This module contains build and serve tasks for Oracle JET web and hybrid mobile applications.
55

66
This is an open source project maintained by Oracle Corp.
77

88
## Installation
9-
The grunt-oraclejet module will be automatically installed if you scaffold a web or hybrid mobile app following the [Oracle JET Developers Guide](http://docs.oracle.com/middleware/jet300/jet/).
9+
The grunt-oraclejet module will be automatically installed if you scaffold a web or hybrid mobile app following the [Oracle JET Developers Guide](http://docs.oracle.com/middleware/jet310/jet/).
1010

1111
### Manual installation
1212
This plugin requires Grunt `~1.0.1`

RELEASENOTES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
## Release Notes for grunt-oraclejet ##
22

3+
### 3.1.0
4+
* No changes
5+
36
### 3.0.0
47
* No changes
8+
9+
### 2.3.0
10+
* No changes
11+
12+
### 2.2.0
13+
* No changes

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grunt-oraclejet",
33
"description": "Build and serve tasks for Oracle JET web and mobile applications",
4-
"version": "3.0.0",
4+
"version": "3.1.0",
55
"license": "UPL-1.0",
66
"homepage": "http://oraclejet.org",
77
"main": "tasks/build.js",
@@ -19,7 +19,7 @@
1919
},
2020
"dependencies":
2121
{
22-
"oraclejet-tooling": "~3.0.0"
22+
"oraclejet-tooling": "~3.1.0"
2323
},
2424
"devDependencies": {
2525
"eslint": "^3.11.0",
@@ -33,5 +33,5 @@
3333
"keywords": [
3434
"gruntplugin"
3535
],
36-
"jetdocversion": "300"
36+
"jetdocversion": "310"
3737
}

tasks/oraclejet-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function (grunt) {
1717

1818
const done = grunt.task.current.async();
1919
const platform = utils.validatePlatform(grunt.option('platform'), grunt);
20-
const options = grunt.config('oraclejet-build');
20+
const options = grunt.config('oraclejet-build') || {};
2121
const buildType = target || 'dev';
2222
options.buildType = buildType;
2323
options.buildConfig = grunt.option('build-config');

tasks/oraclejet-serve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ module.exports = (grunt) => {
9898

9999
const serveOptions = {};
100100
const platform = utils.validatePlatform(grunt.option('platform'), grunt);
101-
serveOptions.buildOptions = grunt.config('oraclejet-build');
101+
serveOptions.buildOptions = grunt.config('oraclejet-build') || {};
102102
serveOptions.buildType = buildType;
103103
serveOptions.buildConfig = grunt.option('build-config');
104104
serveOptions.build = grunt.option('build');

tasks/utils.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,18 @@ utils.validatePlatform = (platform, gruntAsArg) => {
203203
};
204204

205205
utils.validateServeOptions = (serveOptions, targetKey, platform) => {
206-
if (platform === 'web') {
207-
return Object.assign({}, serveOptions[targetKey], serveOptions.web[targetKey]);
206+
let customOptions = {};
207+
208+
if (serveOptions) {
209+
if (platform === 'web' && serveOptions.web[targetKey]) {
210+
customOptions = Object.assign({}, serveOptions[targetKey], serveOptions.web[targetKey]);
211+
} else if (platform === 'hybrid' && serveOptions.hybrid[targetKey]) {
212+
customOptions = Object.assign({}, serveOptions[targetKey], serveOptions.hybrid[targetKey]);
213+
} else if (serveOptions[targetKey]) {
214+
customOptions = Object.assign({}, serveOptions[targetKey]);
215+
}
208216
}
209-
return Object.assign({}, serveOptions[targetKey], serveOptions.hybrid[targetKey]);
217+
return customOptions;
210218
};
211219

212220
utils.validateThemes = (themeString) => {

0 commit comments

Comments
 (0)