Skip to content

Commit b6e5c9f

Browse files
feat: add the link to Deployment doc
1 parent 9d2f587 commit b6e5c9f

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Oracle CX Commerce webpack plugin
1+
# [Oracle CX Commerce](https://cloud.oracle.com/en_US/commerce-cloud "Oracle Commerce Cloud") webpack plugin
22

33
## Usage
44

@@ -36,3 +36,8 @@ Transfer all files to the given Commerce Cloud administration interface from the
3636
cd platform/
3737
npx dcu -k $APP_KEY -n $APP_NODE -x .
3838
```
39+
40+
## Related
41+
* [create-occ-react-app](https://github.com/oracle-commerce-cloud/create-occ-react-app "occ-react-scripts") and [occ-react-scripts](https://www.npmjs.com/package/occ-react-scripts "occ-react-scripts")
42+
* [occ-react-components.ts](https://github.com/oracle-commerce-cloud/occ-react-components.ts "occ-react-components.ts")
43+
* [Design-Code-Utility](https://www.npmjs.com/package/@oraclecc/dcu "dcu")

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ WebpackOnBuildPlugin.prototype.apply = function(compiler) {
5454
const targetDir = `${testFolder}/${file}/js`;
5555
const widgetName = file.toLowerCase();
5656
const widgetConfig = await leadWidgetConfig(widgetName).catch((e) => ({}));
57-
let output = outputFiles.find((fileName) => fileName.includes(`${widgetConfig.javascript}.widget`));
57+
let output = outputFiles.find((fileName) => fileName.includes(`${widgetConfig.javascript}`));
5858
fs.rmdirSync(targetDir, { recursive: true });
5959
if (!output) {
6060
console.log(' ', logSymbols.error, `/widget${FgGreen}/${file}/${Reset}js/${widgetConfig.javascript}.js`);
@@ -65,8 +65,9 @@ WebpackOnBuildPlugin.prototype.apply = function(compiler) {
6565
fs.createReadStream(output).pipe(fs.createWriteStream(`${targetDir}/${widgetConfig.javascript}.js`));
6666
}),
6767
);
68-
console.log("\nThe " + FgCyan + platformFolderName + Reset + " folder is ready to be deployed.\n");
68+
console.log("\nThe " + FgCyan + platformFolderName + Reset + " folder is ready to be deployed.");
6969
console.log("Find out more about deployment here:\n");
70+
console.log(FgYellow, "https://bit.ly/2YSc5vH\n", Reset);
7071
});
7172
});
7273
};

package.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
11
{
22
"name": "occ-webpack-plugin",
33
"description": "Oracle CX Commerce webpack plugin",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"main": "index.js",
66
"repository": "https://github.com/oracle-commerce-cloud/occ-webpack-build-plugin.git",
77
"author": "aboulmane <anassboulmane@gmail.com>",
88
"license": "MIT",
99
"dependencies": {
1010
"log-symbols": "^4.0.0"
11-
}
11+
},
12+
"tags": [
13+
"webpack",
14+
"oracle-commerce-cloud",
15+
"DesignCodeUtility",
16+
"commerce-cloud",
17+
"oracle",
18+
"occ",
19+
"cli",
20+
"dcu"
21+
],
22+
"keywords": [
23+
"webpack",
24+
"oracle-commerce-cloud",
25+
"DesignCodeUtility",
26+
"commerce-cloud",
27+
"oracle",
28+
"occ",
29+
"cli",
30+
"dcu"
31+
]
1232
}

0 commit comments

Comments
 (0)