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

Commit b4ef6e0

Browse files
committed
Release 3.0.0
1 parent 1389c31 commit b4ef6e0

File tree

10 files changed

+244
-277
lines changed

10 files changed

+244
-277
lines changed

Gruntfile.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,17 @@ module.exports = function (grunt) {
1616
src : "build/*.js"
1717
},
1818
pkg: grunt.file.readJSON("package.json"),
19-
tooling_project: 'Tooling_V2.3.0',
19+
tooling_project: 'Tooling_V3.0.0',
2020
build_urls: grunt.file.readJSON("buildconf.json"),
21-
jet_version_token:'2.3.0',
22-
jet_doc_version_token:'230',
23-
version_token:'2.3.0',
24-
tooling_project_token:'Tooling_V2.3.0',
25-
current_year_token: '2017'
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',
25+
current_year_token: '2017'
2626
}
2727
var configs = require('load-grunt-configs')(grunt, options);
2828
grunt.config.merge(configs);
2929

30-
// Load tasks
31-
grunt.loadTasks("build");
32-
3330
grunt.registerTask('build', '', [
3431
'clean:files',
3532
'copy-files'

README.md

Lines changed: 97 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,98 @@
1-
# grunt-oraclejet 2.3.0
2-
3-
## About the module
4-
This module contains build and serve tasks for Oracle JET web and hybrid mobile applications.
5-
6-
This is an open source project maintained by Oracle Corp.
7-
8-
## 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/jet230/jet/).
10-
11-
### Manual installation
12-
This plugin requires Grunt `~1.0.1`
13-
14-
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
15-
16-
```shell
17-
npm install grunt-oraclejet --save-dev
18-
```
19-
20-
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
21-
22-
```js
23-
grunt.loadNpmTasks('grunt-oraclejet');
24-
```
25-
26-
## Usage
27-
28-
### Overview
29-
In your project's Gruntfile, add a section named `oraclejet` to the data object passed into `grunt.initConfig()`.
30-
31-
```js
32-
grunt.initConfig({
33-
oraclejet: {
34-
options: {
35-
// Task-specific options go here.
36-
},
37-
your_target: {
38-
// Target-specific file lists and/or options go here.
39-
},
40-
},
41-
});
42-
```
43-
44-
### Options
45-
46-
#### options.separator
47-
Type: `String`
48-
Default value: `', '`
49-
50-
A string value that is used to do something with whatever.
51-
52-
#### options.punctuation
53-
Type: `String`
54-
Default value: `'.'`
55-
56-
A string value that is used to do something else with whatever else.
57-
58-
### Usage Examples
59-
60-
#### Default Options
61-
In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`
62-
63-
```js
64-
grunt.initConfig({
65-
oraclejet: {
66-
options: {},
67-
files: {
68-
'dest/default_options': ['src/testing', 'src/123'],
69-
},
70-
},
71-
});
72-
```
73-
74-
#### Custom Options
75-
In this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`
76-
77-
```js
78-
grunt.initConfig({
79-
oraclejet: {
80-
options: {
81-
separator: ': ',
82-
punctuation: ' !!!',
83-
},
84-
files: {
85-
'dest/default_options': ['src/testing', 'src/123'],
86-
},
87-
},
88-
});
89-
```
90-
91-
## [Contributing](https://github.com/oracle/grunt-oraclejet/tree/master/CONTRIBUTING.md)
92-
Oracle JET is an open source project. Pull Requests are currently not being accepted. See
93-
[CONTRIBUTING](https://github.com/oracle/grunt-oraclejet/tree/master/CONTRIBUTING.md)
94-
for details.
95-
96-
## [License](https://github.com/oracle/grunt-oraclejet/tree/master/LICENSE.md)
97-
Copyright (c) 2014, 2017 Oracle and/or its affiliates
1+
# grunt-oraclejet 3.0.0
2+
3+
## About the module
4+
This module contains build and serve tasks for Oracle JET web and hybrid mobile applications.
5+
6+
This is an open source project maintained by Oracle Corp.
7+
8+
## 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/).
10+
11+
### Manual installation
12+
This plugin requires Grunt `~1.0.1`
13+
14+
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
15+
16+
```shell
17+
npm install grunt-oraclejet --save-dev
18+
```
19+
20+
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
21+
22+
```js
23+
grunt.loadNpmTasks('grunt-oraclejet');
24+
```
25+
26+
## Usage
27+
28+
### Overview
29+
In your project's Gruntfile, add a section named `oraclejet` to the data object passed into `grunt.initConfig()`.
30+
31+
```js
32+
grunt.initConfig({
33+
oraclejet: {
34+
options: {
35+
// Task-specific options go here.
36+
},
37+
your_target: {
38+
// Target-specific file lists and/or options go here.
39+
},
40+
},
41+
});
42+
```
43+
44+
### Options
45+
46+
#### options.separator
47+
Type: `String`
48+
Default value: `', '`
49+
50+
A string value that is used to do something with whatever.
51+
52+
#### options.punctuation
53+
Type: `String`
54+
Default value: `'.'`
55+
56+
A string value that is used to do something else with whatever else.
57+
58+
### Usage Examples
59+
60+
#### Default Options
61+
In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`
62+
63+
```js
64+
grunt.initConfig({
65+
oraclejet: {
66+
options: {},
67+
files: {
68+
'dest/default_options': ['src/testing', 'src/123'],
69+
},
70+
},
71+
});
72+
```
73+
74+
#### Custom Options
75+
In this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`
76+
77+
```js
78+
grunt.initConfig({
79+
oraclejet: {
80+
options: {
81+
separator: ': ',
82+
punctuation: ' !!!',
83+
},
84+
files: {
85+
'dest/default_options': ['src/testing', 'src/123'],
86+
},
87+
},
88+
});
89+
```
90+
91+
## [Contributing](https://github.com/oracle/grunt-oraclejet/tree/master/CONTRIBUTING.md)
92+
Oracle JET is an open source project. Pull Requests are currently not being accepted. See
93+
[CONTRIBUTING](https://github.com/oracle/grunt-oraclejet/tree/master/CONTRIBUTING.md)
94+
for details.
95+
96+
## [License](https://github.com/oracle/grunt-oraclejet/tree/master/LICENSE.md)
97+
Copyright (c) 2014, 2017 Oracle and/or its affiliates
9898
The Universal Permissive License (UPL), Version 1.0

RELEASENOTES.md

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

3-
### 2.3.0
4-
* No changes - refer to generator-oraclejet RELEASENOTES.md
3+
### 3.0.0
4+
* No changes

doc/help.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Grunt serve options
7575
--destination ........ Specify the destination for serving the app
7676
[device[:<device-name>], emulator[:<emulator-name>],
7777
browser[:chrome, firefox, edge, ie, opera, safari],
78-
server-only, <device-or-emulator-name>]
78+
server-only]
7979
Default: emulator
8080
Default browser: chrome
8181
--browser ............ Shortcut for --destination=browser

package.json

Lines changed: 5 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": "2.3.0",
4+
"version": "3.0.0",
55
"license": "UPL-1.0",
66
"homepage": "http://oraclejet.org",
77
"main": "tasks/build.js",
@@ -19,9 +19,11 @@
1919
},
2020
"dependencies":
2121
{
22-
"oraclejet-tooling": "~2.3.0"
22+
"oraclejet-tooling": "~3.0.0"
2323
},
2424
"devDependencies": {
25+
"eslint": "^3.11.0",
26+
"grunt-eslint": "^19.0.0",
2527
"grunt": "^1.0.1",
2628
"grunt-contrib-clean": "^1.0.0",
2729
"grunt-contrib-copy": "^1.0.0",
@@ -31,5 +33,5 @@
3133
"keywords": [
3234
"gruntplugin"
3335
],
34-
"jetdocversion": "230"
36+
"jetdocversion": "300"
3537
}

tasks/configs.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ module.exports = {
2727
'oraclejet-serve': {
2828
supportedFlags: [
2929
'build',
30-
'build-config',
31-
'browser',
30+
'build-config',
31+
'browser',
3232
'destination',
3333
'device',
3434
'emulator',
@@ -42,20 +42,20 @@ module.exports = {
4242
'sass',
4343
'no-sass',
4444
'platform-options'
45-
],
45+
],
4646
deprecations: [{
4747
flag: 'buildConfig',
4848
replacement: 'build-config',
4949
note: '2.1.0'
50-
},{
50+
}, {
5151
flag: 'disableLiveReload',
5252
replacement: 'livereload',
5353
note: '2.1.0'
54-
},{
54+
}, {
5555
flag: 'livereloadPort',
5656
replacement: 'livereload-port',
5757
note: '2.1.0'
58-
},{
58+
}, {
5959
flag: 'serverPort',
6060
replacement: 'server-port',
6161
note: '2.1.0'

tasks/help.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ const path = require('path');
1818
* @public
1919
*/
2020

21-
module.exports = (grunt) =>
22-
{
23-
grunt.registerTask('help', 'Displays help page', () => {
21+
module.exports = (grunt) => {
22+
grunt.registerTask('help', 'Displays help page for each of the build and serve tasks.', () => {
2423
const file = path.join(__dirname, '..', 'doc', 'help.txt');
2524
console.log(fs.readFileSync(file).toString('utf8'));
26-
});
25+
});
2726
};

0 commit comments

Comments
 (0)