-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pull master into Feature_Mediatheque_VIL97
- Loading branch information
Showing
72 changed files
with
1,505 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,4 +64,6 @@ test.html | |
docker-compose.build.yml | ||
docker-compose.bdd.yml | ||
|
||
*.http | ||
*.http | ||
|
||
.husky/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.27 KB
.yarn/cache/make-cancellable-promise-npm-1.3.2-6612d27c4e-d4dcad8211.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* eslint-disable no-console */ | ||
import fs from 'fs'; | ||
|
||
function checkHuskyFolder() { | ||
const pathHuskyDir = './.husky'; | ||
const huskyFolderExists = fs.existsSync(pathHuskyDir); | ||
if (!huskyFolderExists) { | ||
// eslint-disable-next-line no-undef | ||
const msg = 'You must run the following command first command\n- npx husky init && node ./prepareHusky.mjs'; | ||
// console.log('Husky pre-push setup created!!'); | ||
throw msg; | ||
} else { | ||
fs.unlink(pathHuskyDir + '/pre-commit', (err) => { | ||
// eslint-disable-next-line no-undef | ||
if (err) console.log('No pre-commit file found'); | ||
}); | ||
fs.writeFile(`${pathHuskyDir}/pre-push`, 'yarn build', { ovewrite: true }, function (err) { | ||
if (err) throw err; | ||
// eslint-disable-next-line no-undef | ||
console.log('Husky setup Ok!'); | ||
}); | ||
} | ||
} | ||
|
||
checkHuskyFolder(); |
Oops, something went wrong.