Skip to content

Commit

Permalink
alem signature feature
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Mar 6, 2024
1 parent 509f6ed commit b8dbb80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const {
mimify,
} = require("./parse.js");
const { read_bos_config } = require("./config");
const pkg = require("../package.json");
const path = require("path");
const fs = require("fs");

Expand Down Expand Up @@ -97,6 +98,12 @@ function process_dist() {
// Mimify
fileBundleBody = mimify(fileBundleBody);

// Add Alem signature
fileBundleBody = `
/** Bundle generated by Alem Library v${pkg.version} - See more here: https://github.com/wpdas/alem */
${fileBundleBody}
`;

// Note: Save unified file
// Note: must save inside a ./src folder. This is the only folder bos-clir-rs recognizes
fs.writeFileSync(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alem",
"description": "Create web3 applications for NEAR BOS with a focus on performance while using concepts that are based on ReactJS.",
"version": "0.0.1-alpha.5",
"version": "0.0.1-alpha.6",
"main": "main.js",
"author": "Wenderson Pires - wendersonpires.near",
"license": "MIT",
Expand Down

0 comments on commit b8dbb80

Please sign in to comment.