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

Commit f4f9507

Browse files
committed
Release 6.1.0
1 parent 2fa0469 commit f4f9507

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+184
-83
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to generator-oraclejet
22

3-
*Copyright (c) 2014, 2018 Oracle and/or its affiliates
3+
*Copyright (c) 2014, 2019 Oracle and/or its affiliates
44
The Universal Permissive License (UPL), Version 1.0*
55

66
**Pull requests are currently not being accepted for the Oracle JET project.**

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
Copyright (c) 2015, 2018, Oracle and/or its affiliates.
2+
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
33
The Universal Permissive License (UPL), Version 1.0
44
*/
55
module.exports = function (grunt) {

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717

1818

1919
```
20-
Copyright (c) 2014, 2018 Oracle and/or its affiliates
20+
Copyright (c) 2014, 2019 Oracle and/or its affiliates
2121
The Universal Permissive License (UPL), Version 1.0
2222
2323
Subject to the condition set forth below, permission is hereby granted to any person obtaining

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @oracle/generator-oraclejet 6.0.0
1+
# @oracle/generator-oraclejet 6.1.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.
@@ -14,5 +14,5 @@ Oracle JET is an open source project. Pull Requests are currently not being acc
1414
for details.
1515

1616
## [License](https://github.com/oracle/generator-oraclejet/tree/master/LICENSE.md)
17-
Copyright (c) 2014, 2018 Oracle and/or its affiliates
17+
Copyright (c) 2014, 2019 Oracle and/or its affiliates
1818
The Universal Permissive License (UPL), Version 1.0

RELEASENOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Release Notes for generator-oraclejet ##
22

3+
### 6.1.0
4+
* No changes
5+
36
### 6.0.0
47
* No changes
58

common/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
Copyright (c) 2015, 2018, Oracle and/or its affiliates.
2+
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
33
The Universal Permissive License (UPL), Version 1.0
44
*/
55
'use strict';

common/hookRunner.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
3+
The Universal Permissive License (UPL), Version 1.0
4+
*/
5+
'use strict';
6+
7+
const CONSTANTS = require('../util/constants');
8+
const fs = require('fs');
9+
const path = require('path');
10+
11+
module.exports = {
12+
runAfterAppCreateHook() {
13+
return new Promise((resolve, reject) => {
14+
// Get hooks config
15+
const hooksConfig = _getHooksConfigObj();
16+
// Get after_app_prepare hook's path
17+
const hookPath = hooksConfig.after_app_create;
18+
if (hookPath && fs.existsSync(path.resolve(hookPath))) {
19+
const hook = require(path.resolve(hookPath)); // eslint-disable-line
20+
// Execute hook
21+
hook()
22+
.then(() => resolve())
23+
.catch(err => reject(err));
24+
} else {
25+
console.warn('Hook \'after_app_create\' not defined.');
26+
resolve();
27+
}
28+
});
29+
}
30+
};
31+
32+
/**
33+
* ## _getHooksConfigObj
34+
* Reads the hooks.json file
35+
*
36+
* @private
37+
*/
38+
function _getHooksConfigObj() {
39+
const configFilePath = path.resolve(CONSTANTS.PATH_TO_HOOKS_CONFIG);
40+
if (fs.existsSync(configFilePath)) {
41+
const configFileContent = fs.readFileSync(configFilePath, 'utf8');
42+
let configFileContentAsJson = {};
43+
try {
44+
configFileContentAsJson = JSON.parse(configFileContent);
45+
// If came to here, then valid json
46+
} catch (e) {
47+
console.error(`\x1b[31mError: File '${configFilePath}' is not of type 'json'.\x1b[0m`);
48+
process.exit(1);
49+
}
50+
return configFileContentAsJson.hooks || {};
51+
}
52+
return {};
53+
}

common/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
Copyright (c) 2015, 2018, Oracle and/or its affiliates.
2+
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
33
The Universal Permissive License (UPL), Version 1.0
44
*/
55
'use strict';

common/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
Copyright (c) 2015, 2018, Oracle and/or its affiliates.
2+
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
33
The Universal Permissive License (UPL), Version 1.0
44
*/
55
'use strict';

common/restore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
Copyright (c) 2015, 2018, Oracle and/or its affiliates.
2+
Copyright (c) 2015, 2019, Oracle and/or its affiliates.
33
The Universal Permissive License (UPL), Version 1.0
44
*/
55
'use strict';

0 commit comments

Comments
 (0)