Skip to content

Commit 8665c11

Browse files
committed
Release 6.0.0
1 parent f5f524b commit 8665c11

21 files changed

+217
-1227
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @oracle/ojet-cli 5.2.0
1+
# @oracle/ojet-cli 6.0.0
22

33
## About the module
44
This module contains a command line interface for Oracle JET web and hybrid mobile application development.
@@ -64,7 +64,7 @@ Or view help on adding a plugin:
6464
ojet help add plugin
6565
```
6666

67-
For more information on the Oracle JET CLI, refer to the [Oracle JET Developers Guide](http://www.oracle.com/pls/topic/lookup?ctx=jet520&id=homepage).
67+
For more information on the Oracle JET CLI, refer to the [Oracle JET Developers Guide](http://www.oracle.com/pls/topic/lookup?ctx=jet600&id=homepage).
6868

6969
## [Contributing](https://github.com/oracle/ojet-cli/tree/master/CONTRIBUTING.md)
7070
Oracle JET is an open source project. Pull Requests are currently not being accepted. See [CONTRIBUTING](https://github.com/oracle/ojet-cli/tree/master/CONTRIBUTING.md) for details.

RELEASENOTES.md

Lines changed: 57 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,57 @@
1-
## Release Notes for ojet-cli ##
2-
3-
### 5.2.0
4-
* Cordova 8 may cause very slow performance during build and serve. You may wish to consider downgrading to Cordova 7 if this is an issue.
5-
6-
### 5.1.0
7-
When using Cordova-Android 7.0.0+, users may encounter an error like:
8-
9-
ENOENT: no such file or directory, open ‘App\hybrid\platforms\android\res\xml\config.xml’
10-
11-
This is because Cordova changed the Android project file structure, and some third-party plugins/tools are not updated yet.
12-
The error is harmless. Users can also choose to downgrade to Cordova-Android 6.4.0 to completely avoid the issue.
13-
14-
More information is in the Cordova-Android 7.0.0 release note:
15-
16-
https://cordova.apache.org/announcements/2017/12/04/cordova-android-7.0.0.html
17-
18-
### 5.0.0
19-
* The main-release-paths.json file has been replaced by the path-mapping.json file in templates used to scaffold applications
20-
* As a continued effort toward abstraction of direct library calls in the JET CLI, the direct use of yeoman and grunt will be removed in the JET v7.0.0 release. A new hooks API will be provided to allow for customization of tasks.
21-
22-
### 4.2.0
23-
* No changes
24-
25-
### 4.1.0
26-
* If JET images are altered, they will be repackaged into the JET sprite files
27-
28-
### 4.0.0
29-
* Moved module into @oracle scope, changing the name to @oracle/ojet-cli
30-
* Added 'ojet create component' to scaffold a composite component based on a template
31-
* Due to a [known issue](https://github.com/phonegap/ios-deploy/issues/292) in the ios-deploy module, serving an app to an iOS device may fail to launch the app with error code 253. Try upgrading to ios-deploy@1.9.2, restarting your device and reconnecting the USB cable. Otherwise, launch the app manually.
32-
* Due to a [known issue](https://github.com/phonegap/ios-deploy/issues/275) in the ios-deploy module, serving an app to an iOS device may fail to launch the app with error code 1. Try signing the app with developer credentials rather than distribution credentials. Otherwise, launch the app manually.
33-
* Updated the help descriptions
34-
35-
### 3.2.0
36-
* Changed 'ojet add theme' to 'ojet create theme' for consistency
37-
* Added 'ojet clean' to clean build output from an app
38-
* Added 'ojet strip' to strip all non source-code from an app
39-
* Updated the help descriptions
40-
41-
### 3.1.0
42-
* Changed the syntax to specify the command first, such as 'ojet list plugins' rather than 'ojet plugins list'
43-
* Updated the help descriptions
44-
45-
### 3.0.0
46-
* Initial release
1+
## Release Notes for ojet-cli ##
2+
3+
### 6.0.0
4+
5+
* Deprecation of "ojet add sass" command. JET is moving to the use of CSS variables for theming, and as a result, will remove the use of SASS in a future release.
6+
* On Cordova v7 or v8: A change to the Android Cordova platform location of its config.xml file may result in an "platform.json not found" or "config.xml not found" error messages when you install the latest Cordova version. This will not prevent you from running ojet serve android, but messages returned by ojet serve may appear different from a previous version of Cordova.
7+
* The current ojet-cli supports 'ojet add windows' but not with a version. It will install the windows version that comes with the installed Cordova.
8+
9+
If you need a specific version, do the following:
10+
11+
1. cd hybrid
12+
2. cordova platform add windows@latest
13+
14+
### 5.2.0
15+
* Cordova 8 may cause very slow performance during build and serve. You may wish to consider downgrading to Cordova 7 if this is an issue.
16+
17+
### 5.1.0
18+
When using Cordova-Android 7.0.0+, users may encounter an error like:
19+
20+
ENOENT: no such file or directory, open ‘App\hybrid\platforms\android\res\xml\config.xml’
21+
22+
This is because Cordova changed the Android project file structure, and some third-party plugins/tools are not updated yet.
23+
The error is harmless. Users can also choose to downgrade to Cordova-Android 6.4.0 to completely avoid the issue.
24+
25+
More information is in the Cordova-Android 7.0.0 release note:
26+
27+
https://cordova.apache.org/announcements/2017/12/04/cordova-android-7.0.0.html
28+
29+
### 5.0.0
30+
* The main-release-paths.json file has been replaced by the path-mapping.json file in templates used to scaffold applications
31+
* As a continued effort toward abstraction of direct library calls in the JET CLI, the direct use of yeoman and grunt will be removed in the JET v7.0.0 release. A new hooks API will be provided to allow for customization of tasks.
32+
33+
### 4.2.0
34+
* No changes
35+
36+
### 4.1.0
37+
* If JET images are altered, they will be repackaged into the JET sprite files
38+
39+
### 4.0.0
40+
* Moved module into @oracle scope, changing the name to @oracle/ojet-cli
41+
* Added 'ojet create component' to scaffold a composite component based on a template
42+
* Due to a [known issue](https://github.com/phonegap/ios-deploy/issues/292) in the ios-deploy module, serving an app to an iOS device may fail to launch the app with error code 253. Try upgrading to ios-deploy@1.9.2, restarting your device and reconnecting the USB cable. Otherwise, launch the app manually.
43+
* Due to a [known issue](https://github.com/phonegap/ios-deploy/issues/275) in the ios-deploy module, serving an app to an iOS device may fail to launch the app with error code 1. Try signing the app with developer credentials rather than distribution credentials. Otherwise, launch the app manually.
44+
* Updated the help descriptions
45+
46+
### 3.2.0
47+
* Changed 'ojet add theme' to 'ojet create theme' for consistency
48+
* Added 'ojet clean' to clean build output from an app
49+
* Added 'ojet strip' to strip all non source-code from an app
50+
* Updated the help descriptions
51+
52+
### 3.1.0
53+
* Changed the syntax to specify the command first, such as 'ojet list plugins' rather than 'ojet plugins list'
54+
* Updated the help descriptions
55+
56+
### 3.0.0
57+
* Initial release

config.js

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,17 @@ const config = {
133133
'ojet build app android --release',
134134
'ojet build ios --device --build-config=./buildConfig.json --theme=myCustomTheme',
135135
'ojet build web --theme=alta:android',
136-
'ojet build windows --platform-options "--archs=\\"x86 x64 arm\\""'
136+
'ojet build windows --platform-options="--archs=\\"x86 x64 arm\\""'
137+
]
138+
},
139+
component: {
140+
description: 'Builds an optimized component for the specified component name',
141+
parameters: 'component name',
142+
examples: [
143+
'ojet build component demo-card'
137144
]
138145
}
139-
},
146+
}
140147
},
141148
clean: {
142149
description: 'Cleans build output from a JET app',
@@ -216,6 +223,12 @@ const config = {
216223
parameters: '<component-name>',
217224
examples: ['ojet create component demo-card']
218225
},
226+
pack: {
227+
aliases: ['packs'],
228+
description: 'Creates a pack with the specified name in an existing app, or creates a pack with a shell app',
229+
parameters: '<pack-name>',
230+
examples: ['ojet create pack component demo-pack']
231+
},
219232
theme: {
220233
aliases: ['themes'],
221234
description: 'Creates a custom theme with the specified name',
@@ -274,6 +287,9 @@ const config = {
274287
description: 'Specify the pack name',
275288
parameters: '<pack_name>'
276289
},
290+
release: {
291+
description: 'Whether to publish the specified component with a release build'
292+
}
277293
},
278294
examples: [
279295
'ojet publish component flipcard'
@@ -347,6 +363,11 @@ const config = {
347363
exchange: {
348364
description: 'Searches for a component in the exchange based on the specified keyword',
349365
parameters: '<keyword>',
366+
options: {
367+
versions: {
368+
description: 'Lists all available versions'
369+
}
370+
},
350371
examples: [
351372
'ojet search exchange flip-card',
352373
'ojet search exchange flip-card dv-gantt'
@@ -420,13 +441,13 @@ const config = {
420441
destination: {
421442
description: 'Specify the destination for serving the app',
422443
parameters: 'device[:<device_name>]|emulator[:<emulator_name>]|' + // eslint-disable-line
423-
newLine + ' browser[:chrome|:firefox|:edge|:ie|:opera|:safari]|server-only',
444+
newLine + ' browser[:chrome|:firefox|:edge|:ie|:safari]|server-only',
424445
default: 'emulator' + // eslint-disable-line
425446
newLine + 'Default browser: chrome'
426447
},
427448
browser: {
428449
description: 'Shortcut for --destination=browser',
429-
parameters: '[chrome|firefox|edge|ie|opera|safari]',
450+
parameters: '[chrome|firefox|edge|ie|safari]',
430451
default: 'chrome'
431452
},
432453
device: {

lib/scopes/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const path = require('path');
1515
const env = require('yeoman-environment').createEnv();
1616

1717
// Oracle
18+
const config = require('../../config');
1819
const CONSTANTS = require('../utils.constants');
19-
const component = require('./component');
2020
const paths = require('../utils.paths');
2121
const pckg = require('../../package.json');
2222
const tooling = require('../tooling');
@@ -142,7 +142,9 @@ function _addComponents() {
142142
Object.keys(composites).forEach((key) => {
143143
components.push(`${key}@${composites[key]}`);
144144
});
145-
return component.add(components);
145+
146+
const toolingModule = utils.loadTooling();
147+
return toolingModule.add(config.tasks.add.scopes.component.name, components);
146148
}
147149

148150
/**

lib/scopes/catalog.js

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)