Skip to content

Commit

Permalink
Updated the project with the updated themes (better build scripts).
Browse files Browse the repository at this point in the history
  • Loading branch information
jclo committed Feb 12, 2024
1 parent 07e8de7 commit 8a1ac6b
Show file tree
Hide file tree
Showing 61 changed files with 1,272 additions and 954 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:

- name: Coveralls
uses: coverallsapp/github-action@v2
# -- oOo --
# -- oOo --
5 changes: 4 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

npm test
npm run check:coverage
npm run report
npm run report


# -- oOo ---
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
### HEAD

### 2.5.1 (February 12, 2024)

* Updated the project with the updated themes (better build scripts),
* ...


### 2.5.0 (January 27, 2024)

* Updated the themes to comply with html5-boilerplate v9,
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr)
Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (https://www.mobilabs.fr)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion _site-theme-appdoceo/.kasar/theme-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
// This is the theme used to build your website:
theme: {
name: 'appdoceo',
version: '2.2.0', // built from Kasar v2.4.0"
version: '2.2.1', // built from Kasar v2.4.0"
},

// Where is the root of the project:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
*
* Does ...
*
* build.module.template.js module does ...
* build.module.template.js module dooes ...
*
* Private Functions:
* . _xxx does ...
*
*
* Public Static Methods:
* Public Functions:
* . Build executes build:module:template,
*
*
Expand All @@ -22,25 +22,27 @@
/* eslint one-var: 0, semi-style: 0, no-underscore-dangle: 0,
import/no-extraneous-dependencies: 0 */

'use strict';

// -- Node modules

// -- Vendor Modules
const fs = require('fs')
, path = require('path')
;


// -- Local modules
// -- Local Modules
const themeconfig = require('../../theme-config')
, config = require('../../../config')
;


// -- Local constants
// -- Local Constants
const { dist } = config
;


// -- Local variables
// -- Local Variables


// -- Private Functions --------------------------------------------------------
Expand Down Expand Up @@ -85,7 +87,7 @@ function Build(done) {

let pending = PENDING;
/**
* Executes next until completion.
* Executes done until completion.
*/
function next() {
pending -= 1;
Expand Down
88 changes: 47 additions & 41 deletions _site-theme-appdoceo/.kasar/theme/scripts/_build.script.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
/* eslint one-var: 0, semi-style: 0, no-underscore-dangle: 0,
import/no-extraneous-dependencies: 0 */

'use strict';


// -- Vendor Modules
const fs = require('fs')
Expand All @@ -38,18 +40,18 @@ const themeconfig = require('../../theme-config')


// -- Local Constants
const VERSION = '0.0.0-alpha.0'
, opts = {
const VERSION = '0.0.0-alpha.0'
, opts = {
help: [Boolean, false],
version: [String, null],
}
, shortOpts = {
h: ['--help'],
v: ['--version', VERSION],
}
, parsed = nopt(opts, shortOpts, process.argv, 2)
, { base } = themeconfig
, { dist } = config
, parsed = nopt(opts, shortOpts, process.argv, 2)
, { base } = themeconfig
, { dist } = config
;


Expand Down Expand Up @@ -104,51 +106,55 @@ function _xxx(done) {
}


// -- Main ---------------------------------------------------------------------

/**
* Executes the script.
*
* @function ()
* @public
* @param {} -,
* @returns {} -,
* @since 0.0.0
*/
async function run() {
const PENDING = 1;
// -- Public Static Methods ----------------------------------------------------

if (parsed.help) {
_help();
return;
}
const Lib = {

if (parsed.version) {
process.stdout.write(`version: ${parsed.version}\n`);
return;
}
/**
* Executes the script.
*
* @method ()
* @public
* @param {} -,
* @returns {} -,
* @since 0.0.0
*/
async run() {
const PENDING = 1;

if (parsed.help) {
_help();
return;
}

const d1 = new Date();
process.stdout.write('Starting \'\x1b[36mbuild:script:template\x1b[89m\x1b[0m\'...\n');
if (parsed.version) {
process.stdout.write(`version: ${parsed.version}\n`);
return;
}

/**
* Executes done until completion.
*/
let pending = PENDING;
function done() {
pending -= 1;
if (!pending) {
const d2 = new Date() - d1;
process.stdout.write(`Finished '\x1b[36mbuild:script:template\x1b[89m\x1b[0m' after \x1b[35m${d2} ms\x1b[89m\x1b[0m\n`);
const d1 = new Date();
process.stdout.write('Starting \'\x1b[36mbuild:script:template\x1b[89m\x1b[0m\'...\n');

let pending = PENDING;
/**
* Executes done until completion.
*/
function done() {
pending -= 1;
if (!pending) {
const d2 = new Date() - d1;
process.stdout.write(`Finished '\x1b[36mbuild:script:template\x1b[89m\x1b[0m' after \x1b[35m${d2} ms\x1b[89m\x1b[0m\n`);
}
}
}

_xxx(done);
}
_xxx(done);
},
};


// Start script.
run();
// -- Where the script starts --------------------------------------------------
Lib.run();


// -- oOo --
Loading

0 comments on commit 8a1ac6b

Please sign in to comment.