Skip to content

Commit a938a54

Browse files
authored
Add service logistics stocking locations plugin sample (#223)
1 parent c45c628 commit a938a54

51 files changed

Lines changed: 15823 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/jet_components
2+
/exchange_components
3+
/node_modules
4+
/bower_components
5+
/dist
6+
/web
7+
/staged-themes
8+
/themes
9+
/dist
10+
/.test-dist
11+
/node_modules_partial
12+
/tests/liveview.local.js
13+
/jaftmp@
14+
15+
/hybrid/node_modules
16+
/hybrid/platforms
17+
/hybrid/www/*
18+
19+
!hybrid/plugins
20+
hybrid/plugins/*
21+
!hybrid/plugins/fetch.json
22+
23+
.DS_Store
24+
Thumbs.db
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
set shell := ["zsh", "-cu"]
2+
3+
plugin_label := "stockingLocationsPlugin"
4+
package_zip := "dist/stockingLocationsPlugin.zip"
5+
descriptor_file := "plugin_descriptor.json"
6+
secure_dir := env_var_or_default("HOME", "") + "/.secure"
7+
8+
default:
9+
just --list
10+
11+
build:
12+
npm run build
13+
14+
package: build
15+
mkdir -p dist
16+
rm -f {{package_zip}}
17+
stage_dir=$(mktemp -d /tmp/history-search-package.XXXXXX); \
18+
trap 'rm -rf "$stage_dir"' EXIT; \
19+
jq -r '.src_files[]' {{descriptor_file}} | while read -r file; do \
20+
if [ "$file" = "{{descriptor_file}}" ]; then \
21+
source_path="$file"; \
22+
else \
23+
source_path="web/$file"; \
24+
fi; \
25+
target_path="$stage_dir/$file"; \
26+
mkdir -p "$(dirname "$target_path")"; \
27+
cp "$source_path" "$target_path"; \
28+
done; \
29+
cd "$stage_dir" && zip -rq "$OLDPWD/{{package_zip}}" .
30+
31+
upload env: package
32+
plugin_mgr_credentials="{{secure_dir}}/{{env}}-plugin_mgr.secret"; \
33+
default_credentials="{{secure_dir}}/{{env}}.secret"; \
34+
if [ -f "$plugin_mgr_credentials" ]; then \
35+
credentials="$plugin_mgr_credentials"; \
36+
elif [ -f "$default_credentials" ]; then \
37+
credentials="$default_credentials"; \
38+
else \
39+
echo "No credentials file found for '{{env}}'. Tried:" >&2; \
40+
echo " $plugin_mgr_credentials" >&2; \
41+
echo " $default_credentials" >&2; \
42+
exit 1; \
43+
fi; \
44+
npx pluginmgr upload {{plugin_label}} --credentials "$credentials" --filename {{package_zip}} --descriptorFile {{descriptor_file}}
45+
46+
upload-sunrise:
47+
just upload sunrise0511
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"paths": {
3+
"source": {
4+
"common": "src",
5+
"web": "src-web",
6+
"javascript": "js",
7+
"typescript": "ts",
8+
"styles": "css",
9+
"themes": "themes"
10+
},
11+
"staging": {
12+
"web": "web",
13+
"themes": "staged-themes"
14+
}
15+
},
16+
"unversioned": true,
17+
"defaultBrowser": "chrome",
18+
"sassVer": "9.0.0",
19+
"defaultTheme": "redwood",
20+
"fontUrl": "https://static.oracle.com/cdn/fnd/gallery/2404.0.0/images/iconfont/ojuxIconFont.min.css",
21+
"typescriptLibraries": "typescript@5.4.5 yargs-parser@~13.1.2",
22+
"webpackLibraries": "webpack@5.76.0 @types/node@18.16.3 webpack-dev-server style-loader css-loader sass-loader sass ts-loader@8.4.0 raw-loader noop-loader html-webpack-plugin html-replace-webpack-plugin copy-webpack-plugin @prefresh/webpack @prefresh/babel-plugin webpack-merge compression-webpack-plugin mini-css-extract-plugin clean-webpack-plugin css-fix-url-loader",
23+
"mochaTestingLibraries": "karma mocha sinon chai@4.4.1 coverage karma-chai@0.1.0 karma-coverage@2.2.0 karma-chrome-launcher@3.1.1 karma-mocha@2.0.1 karma-mocha-reporter@2.2.5 karma-requirejs@1.1.0 karma-fixture@0.2.6 karma-sinon@1.0.5 karma-typescript@5.5.4 @types/chai@4.3.4 @types/karma-fixture@0.2.5 @types/mocha@10.0.1 @types/sinon@10.0.13",
24+
"jestTestingLibraries": "jest@29.6.2 @testing-library/preact@3.2.3 @types/jest@29.5.3 jest-environment-jsdom@29.6.2 @oracle/oraclejet-jest-preset@~17.1.0",
25+
"architecture": "mvvm",
26+
"watchInterval": 1000
27+
}

0 commit comments

Comments
 (0)