Skip to content

Commit

Permalink
chore(build): add build id
Browse files Browse the repository at this point in the history
  • Loading branch information
jfactory-es committed Nov 3, 2024
1 parent 2b4b887 commit 99a1c8a
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion dist/cjs-devel/index.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jFactory-devel v1.8.0-alpha.2 2024-11-03
* jFactory-devel v1.8.0-alpha.2+build.1730675680538
* https://github.com/jfactory-es/jfactory
* (c) 2019-2024 Stephane Plazis <sp.jfactory@gmail.com>
* License: https://raw.githubusercontent.com/jfactory-es/jfactory/master/LICENSE.md
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs-devel/jFactory-env.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
*/

const JFACTORY_NAME = "jFactory-devel";
const JFACTORY_VER = "1.8.0-alpha.2";
const JFACTORY_VER = "1.8.0-alpha.2+build.1730675680538";
const JFACTORY_DEV = true; // Developer Mode
const JFACTORY_MOD = "cjs" ?? "raw";

Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/index.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jFactory v1.8.0-alpha.2 2024-11-03
* jFactory v1.8.0-alpha.2+build.1730675680538
* https://github.com/jfactory-es/jfactory
* (c) 2019-2024 Stephane Plazis <sp.jfactory@gmail.com>
* License: https://raw.githubusercontent.com/jfactory-es/jfactory/master/LICENSE.md
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/jFactory-env.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
*/

const JFACTORY_NAME = "jFactory";
const JFACTORY_VER = "1.8.0-alpha.2";
const JFACTORY_VER = "1.8.0+build.1730675680538";
const JFACTORY_DEV = false; // Developer Mode
const JFACTORY_MOD = "cjs" ?? "raw";

Expand Down
2 changes: 1 addition & 1 deletion dist/es-devel/index.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jFactory-devel v1.8.0-alpha.2 2024-11-03
* jFactory-devel v1.8.0-alpha.2+build.1730675680538
* https://github.com/jfactory-es/jfactory
* (c) 2019-2024 Stephane Plazis <sp.jfactory@gmail.com>
* License: https://raw.githubusercontent.com/jfactory-es/jfactory/master/LICENSE.md
Expand Down
2 changes: 1 addition & 1 deletion dist/es-devel/jFactory-env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

const JFACTORY_NAME = "jFactory-devel";
const JFACTORY_VER = "1.8.0-alpha.2";
const JFACTORY_VER = "1.8.0-alpha.2+build.1730675680538";
const JFACTORY_DEV = true; // Developer Mode
const JFACTORY_MOD = "es" ?? "raw";

Expand Down
2 changes: 1 addition & 1 deletion dist/es/index.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jFactory v1.8.0-alpha.2 2024-11-03
* jFactory v1.8.0-alpha.2+build.1730675680538
* https://github.com/jfactory-es/jfactory
* (c) 2019-2024 Stephane Plazis <sp.jfactory@gmail.com>
* License: https://raw.githubusercontent.com/jfactory-es/jfactory/master/LICENSE.md
Expand Down
2 changes: 1 addition & 1 deletion dist/es/jFactory-env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

const JFACTORY_NAME = "jFactory";
const JFACTORY_VER = "1.8.0-alpha.2";
const JFACTORY_VER = "1.8.0-alpha.2+build.1730675680538";
const JFACTORY_DEV = false; // Developer Mode
const JFACTORY_MOD = "es" ?? "raw";

Expand Down
2 changes: 1 addition & 1 deletion dist/index-loader.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jFactory v1.8.0-alpha.2 2024-11-03
* jFactory v1.8.0-alpha.2+build.1730675680538
* https://github.com/jfactory-es/jfactory
* (c) 2019-2024 Stephane Plazis <sp.jfactory@gmail.com>
* License: https://raw.githubusercontent.com/jfactory-es/jfactory/master/LICENSE.md
Expand Down
2 changes: 1 addition & 1 deletion dist/index-loader.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jFactory v1.8.0-alpha.2 2024-11-03
* jFactory v1.8.0-alpha.2+build.1730675680538
* https://github.com/jfactory-es/jfactory
* (c) 2019-2024 Stephane Plazis <sp.jfactory@gmail.com>
* License: https://raw.githubusercontent.com/jfactory-es/jfactory/master/LICENSE.md
Expand Down
4 changes: 2 additions & 2 deletions dist/umd/jFactory-devel.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/umd/jFactory-devel.umd.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/umd/jFactory.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/jFactory.umd.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions scripts/build/rollup.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const project = {
homepage: packageJson.homepage,
copyrightYear: packageJson['x-copyrightYear'],
license: packageJson['x-licenseUrl'],
buildId: new Date().toISOString().slice(0, 10)
buildId: new Date().getTime()
};

function injectOutputFormat() {
Expand Down Expand Up @@ -150,7 +150,7 @@ function getComputedValues(devel = false) {
return {
...stringify({
'env("JFACTORY_ENV_NAME")': devel ? project.develName : project.prodName,
'env("JFACTORY_ENV_VER")': project.version,
'env("JFACTORY_ENV_VER")': project.version + '+build.' + project.buildId,
'env("JFACTORY_ENV_DEV")': devel
}),
$JFACTORY_NAME: devel ? project.develName : project.prodName,
Expand Down
2 changes: 1 addition & 1 deletion src/tpl/banner.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* $JFACTORY_NAME v$JFACTORY_VER $JFACTORY_BUILD_ID
* $JFACTORY_NAME v$JFACTORY_VER+build.$JFACTORY_BUILD_ID
* $JFACTORY_HOMEPAGE
* (c) $JFACTORY_COPYRIGHT_YEAR $JFACTORY_AUTHOR
* License: $JFACTORY_LICENSE
Expand Down

0 comments on commit 99a1c8a

Please sign in to comment.