Skip to content

Commit

Permalink
UPDATED: Publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
SagnikGanguly96 committed Jan 5, 2023
1 parent 9ceeed0 commit 79b48b4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,23 @@ The documentation for **_SGNUIKit_** is available at [sgnuikit.lib.sgnetworks.eu
using **_JavaScript_** which be found at [freecodecamp.org/news](https://www.freecodecamp.org/news/build-a-pwa-from-scratch-with-html-css-and-javascript/).

## KNOWN BUGS

No known bugs till the release.

## UPCOMING FEATURES

There are many features are staged to be implemented in the upcoming releases. The currently planned features awaiting to be implemented are:

1.
- [ ] BottomSheets (like Android Material Design)
- [ ] BottomSheets (like Android Material Design)
2.
- [x] Windows (like desktop windows)
- [x] Windows (like desktop windows)
3.
- [ ] File (Image) upload preview (crop)
- [ ] File (Image) upload preview (crop)
4.
- [x] Drag & Drop Panels/Cards
- [x] Drag & Drop Panels/Cards
5.
- [ ] Themes
- [ ] Themes
6. And many more...

## CONTRIBUTING
Expand Down
7 changes: 6 additions & 1 deletion build/publish.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 SGNetworks. All rights reserved.
* Copyright (c) 2022-2023 SGNetworks. All rights reserved.
*
* The software is an exclusive copyright of "SGNetworks" and is provided as is exclusively with only "USAGE" access. "Modification", "Alteration", "Re-distribution" is completely prohibited.
* VIOLATING THE ABOVE TERMS IS A PUNISHABLE OFFENSE WHICH MAY LEAD TO LEGAL CONSEQUENCES.
Expand All @@ -15,6 +15,7 @@ const vinfo = {
"patch": config.version.patch,
"code": 0,
"version": `${config.version.major}.${config.version.minor}.${config.version.patch}`,
"flavor": "",
"timestamp": ts,
};
let cdnVInfo;
Expand Down Expand Up @@ -50,6 +51,10 @@ const copyRecursiveSync = function(src, dest) {
}
};

if(config.args.flavor === "free" || config.args.flavor === "pro") {
vinfo.flavor = config.args.flavor;
}

console.info("Creating version info: " + "%cversion.json" + " in " + "%c/dist/" + "...", "font-weight: bold; font-style: italic", "font-weight: bold; font-style: italic");
fs.writeFileSync("dist/version.json", JSON.stringify(vinfo));

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
},
"scripts": {
"prebuild": "node .\\build\\clean.js --dir src",
"Build (Free)": "npm run prebuild & webpack --env flavor=free --stats-modules-space 999 & npm run postbuild & node .\\build\\release.js --flavor free",
"Build (Pro)": "npm run prebuild & webpack --env flavor=pro --stats-modules-space 999 & npm run postbuild & node .\\build\\release.js --flavor pro",
"Build (Free)": "npm run prebuild & webpack --env flavor=free --stats-modules-space 999 & npm run postbuild --flavor free & node .\\build\\release.js --flavor free",
"Build (Pro)": "npm run prebuild & webpack --env flavor=pro --stats-modules-space 999 & npm run postbuild --flavor pro & node .\\build\\release.js --flavor pro",
"postbuild": "node .\\build\\publish.js",
"start": "node .\\demos\\run.js"
}
Expand Down

0 comments on commit 79b48b4

Please sign in to comment.