Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed wpeg to wp-scripts #189

Merged
merged 32 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8ebe739
changed wpeg to wp-scripts
Fellan-91 Aug 25, 2023
ac93c38
replaced the call to wp components with import constructions
Fellan-91 Aug 29, 2023
4767115
added vendors and templates build settings for wp scripts
Fellan-91 Aug 31, 2023
3665211
moved src main plugin files to root folder
Fellan-91 Aug 31, 2023
dd46d5c
renamed sort template file to style
Fellan-91 Aug 31, 2023
167d101
changed some assets url to build folder for enqueued scripts and styles
Fellan-91 Aug 31, 2023
d9b1bee
improved wordpress webpack scripts
Fellan-91 Sep 20, 2023
30c41ad
added gulp for bump plugin versions and zip tasks
Fellan-91 Sep 22, 2023
fa5d245
added pot files
Fellan-91 Sep 22, 2023
c8bc7df
added empty theme for tests
Fellan-91 Sep 22, 2023
2acbb31
added enqueue and register asset functions for dev mode
Fellan-91 Sep 22, 2023
f47aac4
added stylelint and prettier ignore for templates
Fellan-91 Sep 22, 2023
4ac52c9
added vscode config for automatic prettier run
nk-o Sep 26, 2023
2a9b759
fixed @wordpress/compose usage in frontend script
nk-o Sep 26, 2023
a58c8f6
Merge branch 'master' into wp-scripts
nk-o Sep 26, 2023
113ef6b
Update package-lock.json
nk-o Sep 26, 2023
e77d055
Merge branch 'master' into wp-scripts
nk-o Sep 26, 2023
1aa4813
fixed formatting
nk-o Sep 26, 2023
33a9ebc
move readme txt to root folder
Fellan-91 Sep 27, 2023
7ea45f4
added exclude build for _variables scss
Fellan-91 Sep 27, 2023
6e77c09
move src to root project folder
Fellan-91 Sep 27, 2023
ba467be
lint scss
Fellan-91 Sep 27, 2023
6e341b5
fixed unexpected quotes around "url" function argument
Fellan-91 Sep 27, 2023
568e3f8
fixed phpcs
Fellan-91 Sep 28, 2023
0081feb
removed unused checks inside SEO 3rd classes: All In One, Rank Math, …
Fellan-91 Sep 28, 2023
bdf0c42
fixed text domains on templates
Fellan-91 Sep 28, 2023
5589035
fixed phpcs rules: added exclude for UndefinedVariable rule
Fellan-91 Sep 28, 2023
6f166b4
deleted vendor folder from gulp zip files
Fellan-91 Sep 29, 2023
4d21a7d
fixed wordpress scripts exclude pattern for scss
Fellan-91 Sep 29, 2023
e5e80f8
renamed @@plugin_name to visual-portfolio on file package header
Fellan-91 Sep 29, 2023
93df378
improved code to check for scss files started with `_` in webpack config
nk-o Sep 30, 2023
bf22d15
Update deploy.yml
nk-o Sep 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .browserslistrc

This file was deleted.

6 changes: 1 addition & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space

[*.php]
indent_size = 4
indent_style = tab

[*.yml]
indent_style = space
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assets/vendor/**
23 changes: 10 additions & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
module.exports = {
extends: ['eslint-config-nk'],
globals: {
wp: true,
},
settings: {
react: {
pragma: 'wp',
},
},
rules: {
'react/prefer-stateless-function': 'off',
'react/prop-types': 'off',
},
extends: ['plugin:@wordpress/eslint-plugin/recommended'],
rules: {
'@wordpress/no-unsafe-wp-apis': 0,
'@wordpress/i18n-translator-comments': 0,
'jsdoc/no-undefined-types': 0,
'jsdoc/require-param-type': 0,
'jsdoc/require-returns-description': 0,
'react-hooks/rules-of-hooks': 0,
'jsdoc/check-param-names': 0,
},
};
26 changes: 4 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Deploy to WordPress.org

env:
COMPOSER_VERSION: '2'
COMPOSER_CACHE: '${{ github.workspace }}/.composer-cache'

on:
workflow_dispatch:
push:
Expand All @@ -14,38 +10,24 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set Cache Directories
run: |
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"

- name: Prepare Composer Cache
uses: actions/cache@v2
with:
path: ${{ env.COMPOSER_CACHE }}
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-${{ env.COMPOSER_VERSION }}-
- uses: actions/checkout@v3

- name: Set PHP Version
- name: Disable xDebug - fixes PHP Fatal Error for `i18n make-pot`
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer:v2

- name: Setup Node.js and install dependencies
uses: ./.github/setup-node

- name: Run Production Task
run: npm run production
run: npm run build:prod

- name: WordPress Plugin Deploy
uses: nk-o/action-wordpress-plugin-deploy@master
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SOURCE_DIR: dist/visual-portfolio/
SOURCE_DIR: dist-zip/visual-portfolio/
SLUG: visual-portfolio
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
.publish
.idea
/dist
/dist-zip
/build
/vendor
/node_modules
npm-debug.log
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
**/*.php
**/*.yml
node_modules
assets/vendor
templates/**/*.css
dist
dist-zip
build
vendor
vendors
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('prettier-config-nk');
module.exports = require('@wordpress/prettier-config');
4 changes: 4 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
**/*.min.css
**/*.build.css
node_modules
assets/vendor
templates/**/*.css
dist
duist-zip
build
vendor
vendors
24 changes: 23 additions & 1 deletion .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
module.exports = {
extends: ['stylelint-config-nk'],
extends: '@wordpress/stylelint-config/scss',
rules: {
'at-rule-empty-line-before': null,
'at-rule-no-unknown': null,
'comment-empty-line-before': null,
'font-weight-notation': null,
'max-line-length': null,
'no-descending-specificity': null,
'rule-empty-line-before': null,
'selector-class-pattern': null,
'value-keyword-case': null,
'scss/operator-no-unspaced': null,
'scss/selector-no-redundant-nesting-selector': null,
'scss/at-import-partial-extension': null,
'scss/no-global-function-names': null,
'scss/comment-no-empty': null,
'scss/at-extend-no-missing-placeholder': null,
'scss/operator-no-newline-after': null,
'scss/at-if-closing-brace-newline-after': null,
'scss/at-else-empty-line-before': null,
'scss/at-if-closing-brace-space-after': null,
'no-invalid-position-at-import-rule': null,
},
};
12 changes: 9 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[php]": {
"editor.defaultFormatter": null,
"editor.formatOnSave": false
"editor.formatOnSave": false,
"editor.defaultFormatter": null
},
"editor.formatOnSave": true,

Expand All @@ -26,5 +26,11 @@
],
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},

"search.exclude": {
"**/.git": true,
"**/node_modules": true,
"**/build": true
},
}
24 changes: 13 additions & 11 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"core": null,
"themes": ["https://downloads.wordpress.org/theme/twentytwentythree.zip"],
"plugins": ["."],
"env": {
"tests": {
"mappings": {
"wp-content/plugins/visual-portfolio": ".",
"wp-content/plugins/gutenberg-test-plugin-disables-the-css-animations": "./tests/plugins/gutenberg-test-plugin-disables-the-css-animations"
}
}
}
"core": null,
"themes": ["./tests/themes/empty-theme"],
"plugins": [
".",
"./tests/plugins/gutenberg-test-plugin-disables-the-css-animations"
],
"env": {
"tests": {
"mappings": {
"wp-content/themes/empty-theme-php": "./tests/themes/empty-theme-php"
}
}
}
}
File renamed without changes.
13 changes: 13 additions & 0 deletions assets/admin/css/elementor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Elementor Preview Styles
*/
.visual-portfolio-elementor-preview {
position: relative;
overflow: hidden;
pointer-events: none;

iframe {
max-width: none;
min-height: 20px;
}
}
Loading
Loading