Skip to content

Commit 3cdbbe9

Browse files
committed
Release 3.0.0
1 parent 587d57b commit 3cdbbe9

30 files changed

+3412
-3357
lines changed

Gruntfile.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ module.exports = function (grunt) {
1717
},
1818
pkg: grunt.file.readJSON("package.json"),
1919
build_urls: grunt.file.readJSON("buildconf.json"),
20-
jet_version_token:'2.3.0',
21-
jet_doc_version_token:'230',
22-
version_token:'2.3.0',
23-
current_year_token: '2017'
20+
jet_version_token:'3.0.0',
21+
jet_doc_version_token:'300',
22+
version_token:'3.0.0',
23+
current_year_token: '2017'
2424
}
2525
var configs = require('load-grunt-configs')(grunt, options);
2626
grunt.config.merge(configs);
2727

2828
// Load tasks
29-
grunt.loadTasks("build");
29+
// grunt.loadTasks("build");
3030

3131
grunt.registerTask('build', '', [
3232
'clean:files',

README.md

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

33
## About the tooling API
44
This tooling API contains methods to build and serve Oracle JET web and hybrid mobile apps. It is intended to be used with task running tools such as grunt or gulp. The APIs can also be invoked directly.
55

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

88
## Installation
9-
The oraclejet-tooling API will be automatically installed if you scaffold a web or hybrid mobile app following the [Oracle JET Developers Guide](http://docs.oracle.com/middleware/jet230/jet/).
9+
The oraclejet-tooling API 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/).
1010

1111
## Usage
1212
The oraclejet-tooling API contains a build API that will build the app with dev or release mode, and other options. It also contains a serve API that serves up your app to browser/simulator/device. Please refer to the source code for details on how to invoke and use the API methods.

RELEASENOTES.md

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

3-
### 2.3.0
4-
* No changes - refer to generator-oraclejet RELEASENOTES.md
3+
### 3.0.0
4+
* Replaced bower with npm
5+
* SASS tasks now run in CCA directories also
6+
* Added --destination=server-only option for web apps
7+
* Removed --destination=deviceOrEmulatorName option
8+
* Added ability to cutomize serve tasks such as watching additional files
9+
* Added gap://ready to inserted CSP meta tag for iOS 10 compatibility

config/eslintcustom.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
Copyright (c) 2015, 2017, Oracle and/or its affiliates.
3+
The Universal Permissive License (UPL), Version 1.0
4+
*/
5+
//
6+
// Custom eslint rules file, used to deal with linbreak-style
7+
//
8+
module.exports = {
9+
"installedESLint": true,
10+
"extends": "airbnb-base",
11+
"plugins": [
12+
],
13+
"rules": {
14+
"comma-dangle": "off",
15+
"no-underscore-dangle": "off",
16+
"vars-on-top": "off",
17+
"func-names": "off",
18+
"linebreak-style": ["warn", "unix"], // currently evaluating this rule in the oraclejet-tooling repos.
19+
"no-console" : "off",
20+
"strict" : "off",
21+
"import/no-unresolved" : [2, {ignore: ['oraclejet-tooling']}], // since oraclejet-tooling is defined as a url, we need it in the ignore list.
22+
"no-use-before-define" : ["error", {"functions" : false, "classes" : true}],
23+
"no-plusplus": ["off", {"allowForLoopAfterthoughts": true }] // allow ++ in loops
24+
}
25+
};

hooks/jetAfterPrepare.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,36 @@
33
Copyright (c) 2015, 2017, Oracle and/or its affiliates.
44
The Universal Permissive License (UPL), Version 1.0
55
*/
6+
67
'use strict';
78

89
/**
910
* Jet after_prepare hook.
1011
* Please do not modify.
11-
* In case you need some after_prepare functionality, please follow Cordova documentation and create another hook.
12+
* In case you need some after_prepare functionality,
13+
* please follow Cordova documentation and create another hook.
1214
*/
1315

1416
/**
1517
* # Dependencies
1618
*/
1719

18-
var injector = require("./jetInjector");
20+
const injector = require('./jetInjector');
1921

2022
/**
2123
* # After prepare hook
22-
*
23-
* @public
24+
*
25+
* @public
2426
*/
2527

26-
module.exports = function(context)
27-
{
28-
var platforms = context.opts.platforms;
28+
module.exports = function (context) {
29+
const platforms = context.opts.platforms;
2930

30-
if (platforms)
31-
{
32-
platforms.forEach(function(value)
33-
{
34-
injector.updateIndexHtml(value);
35-
injector.updateConfigXml(value);
36-
}
31+
if (platforms) {
32+
platforms.forEach((value) => {
33+
injector.updateIndexHtml(value);
34+
injector.updateConfigXml(value);
35+
}
3736
);
3837
}
3938
};

0 commit comments

Comments
 (0)