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

Commit 6dfa1f9

Browse files
committed
Release 6.2.0
1 parent f4f9507 commit 6dfa1f9

File tree

18 files changed

+62
-34
lines changed

18 files changed

+62
-34
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @oracle/generator-oraclejet 6.1.0
1+
# @oracle/generator-oraclejet 6.2.0
22

33
## About the generator
44
This Yeoman generator for Oracle JET lets you quickly set up a project for use as a web application or hybrid mobile application for Android, iOS or Windows 10.

RELEASENOTES.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
## Release Notes for generator-oraclejet ##
22

3-
### 6.1.0
4-
* No changes
5-
6-
### 6.0.0
3+
### 6.2.0
74
* No changes
85

96
### 5.2.0

common/hookRunner.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,27 @@ module.exports = {
2929
}
3030
};
3131

32+
module.exports = {
33+
runAfterComponentCreateHook() {
34+
return new Promise((resolve, reject) => {
35+
// Get hooks config
36+
const hooksConfig = _getHooksConfigObj();
37+
// Get after_app_prepare hook's path
38+
const hookPath = hooksConfig.after_component_create;
39+
if (hookPath && fs.existsSync(path.resolve(hookPath))) {
40+
const hook = require(path.resolve(hookPath)); // eslint-disable-line
41+
// Execute hook
42+
hook()
43+
.then(() => resolve())
44+
.catch(err => reject(err));
45+
} else {
46+
console.warn('Hook \'after_component_create\' not defined.');
47+
resolve();
48+
}
49+
});
50+
}
51+
};
52+
3253
/**
3354
* ## _getHooksConfigObj
3455
* Reads the hooks.json file

common/template/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const _WEB = 'web';
1717

1818
const BLANK_TEMPLATE = blankTemplate.BLANK_TEMPLATE;
1919

20-
const _TEMPLATES_NPM_URL = '@oracle/oraclejet-templates@~6.1.0';
20+
const _TEMPLATES_NPM_URL = '@oracle/oraclejet-templates@~6.2.0';
2121

2222
const _TEMPLATES = [BLANK_TEMPLATE, 'basic', 'navbar', 'navdrawer'];
2323

generators/add-component/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
33
The Universal Permissive License (UPL), Version 1.0
44
*/
5-
/**
6-
Copyright (c) 2015, 2017, Oracle and/or its affiliates.
7-
The Universal Permissive License (UPL), Version 1.0
8-
*/
9-
105
'use strict';
116

127
const generators = require('yeoman-generator');
138
const common = require('../../common');
149
const commonComponent = require('../../common/component');
10+
const commonHookRunner = require('../../common/hookRunner');
1511
const commonMessages = require('../../common/messages');
1612
const commonTest = require('../../common/test');
1713
const fs2 = require('fs');
@@ -48,6 +44,7 @@ const OracleJetAddComponentGenerator = generators.Base.extend(
4844
this.options.component = this.componentName;
4945
commonComponent.writeComponentTemplate(this)
5046
.then(commonTest.writeTestTemplate)
47+
.then(commonHookRunner.runAfterComponentCreateHook)
5148
.then(() => {
5249
done();
5350
})

generators/app/templates/blank/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<meta name="apple-mobile-web-app-title" content="Oracle JET">
3333

3434
<!-- injector:theme -->
35-
<link rel="stylesheet" href="css/libs/oj/v6.1.0/alta/oj-alta-min.css" id="css" />
35+
<link rel="stylesheet" href="css/libs/oj/v6.2.0/alta/oj-alta-min.css" id="css" />
3636
<!-- endinjector -->
3737

3838
</head>

generators/app/templates/blank/js/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ requirejs.config(
2424
'promise': 'libs/es6-promise/es6-promise',
2525
'hammerjs': 'libs/hammer/hammer-2.0.8',
2626
'ojdnd': 'libs/dnd-polyfill/dnd-polyfill-1.0.0',
27-
'ojs': 'libs/oj/v6.1.0/debug',
28-
'ojL10n': 'libs/oj/v6.1.0/ojL10n',
29-
'ojtranslations': 'libs/oj/v6.1.0/resources',
27+
'ojs': 'libs/oj/v6.2.0/debug',
28+
'ojL10n': 'libs/oj/v6.2.0/ojL10n',
29+
'ojtranslations': 'libs/oj/v6.2.0/resources',
3030
'text': 'libs/require/text',
3131
'signals': 'libs/js-signals/signals',
3232
'customElements': 'libs/webcomponents/custom-elements.min',

generators/app/templates/blank/js/path_mapping.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"use": "local",
44

55
"cdns": {
6-
"jet": "https://static.oracle.com/cdn/jet/v6.1.0/default/js",
7-
"3rdparty": "https://static.oracle.com/cdn/jet/v6.1.0/3rdparty"
6+
"jet": "https://static.oracle.com/cdn/jet/v6.2.0/default/js",
7+
"3rdparty": "https://static.oracle.com/cdn/jet/v6.2.0/3rdparty"
88
},
99

1010
"libs": {

generators/app/templates/common/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "1.0.0",
44
"description": "An Oracle JavaScript Extension Toolkit(JET) web app",
55
"dependencies": {
6-
"@oracle/oraclejet": "~6.1.0"
6+
"@oracle/oraclejet": "~6.2.0"
77
},
88
"devDependencies": {
99
"grunt": "^1.0.1",
10-
"@oracle/grunt-oraclejet": "~6.1.0",
10+
"@oracle/grunt-oraclejet": "~6.2.0",
1111
"load-grunt-config": "0.19.2",
12-
"@oracle/oraclejet-tooling": "~6.1.0",
12+
"@oracle/oraclejet-tooling": "~6.2.0",
1313
"qunit-reporter-junit": "^1.1.1",
1414
"qunit": "^2.4.1"
1515
},

generators/hybrid/templates/blank/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<link rel="icon" href="css/images/favicon.ico" type="image/x-icon" />
3131

3232
<!-- injector:theme -->
33-
<link rel="stylesheet" href="css/libs/oj/v6.1.0/alta/oj-alta-min.css" id="css" />
33+
<link rel="stylesheet" href="css/libs/oj/v6.2.0/alta/oj-alta-min.css" id="css" />
3434
<!-- endinjector -->
3535

3636
</head>

0 commit comments

Comments
 (0)