-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d2053e
commit bc7e486
Showing
37 changed files
with
802 additions
and
1,179 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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
node_modules | ||
jetpack_vendor | ||
vendor | ||
build | ||
test | ||
bin | ||
.plugin | ||
/node_modules | ||
/vendor | ||
/assets | ||
/tests | ||
/jetpack_vendor | ||
/build | ||
/artifacts | ||
/test-results | ||
/playwright-report | ||
/playwright | ||
/.plugin | ||
**/test/** | ||
playwright.config.js |
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,26 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "17.0.2" | ||
} | ||
}, | ||
"extends": ["plugin:@wordpress/eslint-plugin/recommended"], | ||
"rules": { | ||
"react/prop-types": "off", | ||
"jsdoc/check-tag-names": "off", | ||
"jsx-a11y/label-has-associated-control": "off", | ||
"jsx-a11y/click-events-have-key-events": "off", | ||
"jsx-a11y/no-noninteractive-element-interactions": "off", | ||
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off", | ||
"jsx-a11y/no-static-element-interactions": "off", | ||
"jsx-a11y/anchor-has-content": "off", | ||
"jsx-a11y/anchor-is-valid": "off", | ||
"import/no-unresolved": "off", | ||
"@wordpress/i18n-translator-comments": "off", | ||
"no-nested-ternary": "off" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
# git add -A | ||
|
||
case `uname` in | ||
*CYGWIN*|*MINGW*|*MSYS*) | ||
npx.cmd lint-staged # bug on Windows/Github Desktop: add `.cmd` extension fixes it | ||
;; | ||
*) | ||
npx lint-staged | ||
;; | ||
esac |
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,24 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
# Install browsers for PlayWright tests | ||
#npx playwright install | ||
# Execute tests | ||
#npm run test | ||
#./vendor/bin/phpunit phpunit | ||
|
||
# # Check if the push includes a tag | ||
# while read local_ref local_sha remote_ref remote_sha; do | ||
# if [[ $remote_ref == refs/tags/* ]]; then | ||
# # This is a tag push, perform necessary actions | ||
# folder="build" | ||
# if [ ! -d "$folder" ]; then | ||
# echo "Error: $folder folder does not exist" | ||
# exit 1 | ||
# fi | ||
# # Add the compiled code | ||
# git add build/ -f | ||
# # Amend the tag to include the latest commit | ||
# git tag -f --allow-empty -a "${remote_ref#refs/tags/}" -m "Release: ${remote_ref#refs/tags/}" ${remote_sha} | ||
# fi | ||
# done |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
# Ignore artifacts: | ||
node_modules | ||
jetpack_vendor | ||
vendor | ||
build | ||
test | ||
bin | ||
.plugin | ||
/node_modules | ||
/vendor | ||
/assets | ||
/tests | ||
/jetpack_vendor | ||
/build | ||
/artifacts | ||
/test-results | ||
/playwright-report | ||
/playwright | ||
/.plugin | ||
**/test/** | ||
playwright.config.js |
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,17 @@ | ||
const fs = require('fs'); | ||
const { | ||
copyFileFromTo, | ||
consoleSuccess, | ||
consoleError, | ||
} = require('./helpers/functions'); | ||
|
||
//Get arguments | ||
const myArgs = process.argv.slice(2); | ||
|
||
//Foreach arguments/folders | ||
try { | ||
copyFileFromTo(myArgs[0], myArgs[1]); | ||
consoleSuccess('File copied successfully'); | ||
} catch (e) { | ||
consoleError('Can not copy the file, internationalization not found.'); | ||
} |
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,24 @@ | ||
// deleteZip.js | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const { pluginName } = require('./helpers/functions'); | ||
|
||
// Get the base directory of the project | ||
const baseDir = process.cwd(); | ||
|
||
// Define the zip file | ||
const zipFile = path.join(baseDir, `${pluginName}.zip`); | ||
|
||
// Check if the zip file exists | ||
|
||
if (fs.existsSync(zipFile)) { | ||
// Delete the zip file | ||
fs.unlink(zipFile, (error) => { | ||
if (error) { | ||
console.error(`Failed to delete ${zipFile}:`, error); | ||
} else { | ||
console.log(`${zipFile} has been deleted.`); | ||
} | ||
}); | ||
} |
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,15 @@ | ||
const consoleSuccess = (message) => { | ||
console.log('\x1b[32m%s\x1b[0m', message); | ||
}; | ||
|
||
const consoleError = (message) => { | ||
console.log('\x1B[31m', message); | ||
}; | ||
|
||
const consoleInfo = (message) => { | ||
console.log('\x1b[36m%s\x1b[0m', message); | ||
}; | ||
|
||
module.exports.consoleSuccess = consoleSuccess; | ||
module.exports.consoleError = consoleError; | ||
module.exports.consoleInfo = consoleInfo; |
Oops, something went wrong.