Skip to content

Commit

Permalink
Renamed .github/.github/workflows/ci.yml -> .github/workflows/ci.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
jclo committed Jan 9, 2024
1 parent 87d4e8b commit 7746826
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
Expand Up @@ -20,3 +20,4 @@ jobs:

- name: Coveralls
uses: coverallsapp/github-action@v2
# -- oOo --
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@
### 1.1.x (January 9, 2024)

* Updated the project with @ES6Kadoo v2 (c8, Github Actions),
* Renamed .github/.github/workflows/ci.yml -> .github/workflows/ci.yml,
* ...


Expand Down
21 changes: 19 additions & 2 deletions bin/es6pakket.js
Expand Up @@ -8,7 +8,7 @@
*
* The MIT License (MIT)
*
* Copyright (c) 2023 Mobilabs <contact@mobilabs.fr> (http://www.mobilabs.fr)
* Copyright (c) 2024 Mobilabs <contact@mobilabs.fr> (http://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 Expand Up @@ -270,7 +270,7 @@ function _addSkeleton(base, app, owner, cright) {
* @returns {} -,
*/
function _duplicate(source, dest) {
const dupFiles = ['.eslintrc', '.travis.yml', 'rmdstore.sh'];
const dupFiles = ['.eslintrc', 'rmdstore.sh'];

for (let i = 0; i < dupFiles.length; i++) {
process.stdout.write(` copied ${dupFiles[i]}\n`);
Expand Down Expand Up @@ -429,6 +429,20 @@ function _addHuskyHook(source, dest, folder) {
shell.cp('-r', `${source}/${folder}/pre-commit`, `${dest}/${folder}/.`);
}

/**
* Adds Github workfow.
*
* @function (arg1, arg2, arg3)
* @private
* @param {String} the source path,
* @param {String} the destination path,
* @param {String} the destination folder,
* @returns {} -,
*/
function _addGithub(source, dest, folder) {
shell.cp('-r', `${source}/${folder}`, `${dest}/.`);
}

/**
* Adds the test files.
*
Expand Down Expand Up @@ -530,6 +544,9 @@ function _populate(options) {
// Copy Husky Hook:
_addHuskyHook(baseboiler, baseapp, husky, app, boilerlib);

// Copy .github/workflows:
_addGithub(baseboiler, baseapp, '.github');

process.stdout.write('Done. Enjoy!\n');
}

Expand Down

0 comments on commit 7746826

Please sign in to comment.