Skip to content

Commit

Permalink
Merge pull request #30 from asharirfan/feature/next-update
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
asharirfan authored Jun 24, 2022
2 parents 8942e9c + 7822bfc commit c0f6b71
Show file tree
Hide file tree
Showing 34 changed files with 814 additions and 18,014 deletions.
17 changes: 4 additions & 13 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = tab

[{package.json,*.yml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
insert_final_newline = true
19 changes: 11 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ module.exports = {
browser: true,
commonjs: true,
es6: true,
node: true
node: true,
},
extends: ["eslint:recommended", "wordpress"],
extends: [
'eslint:recommended',
'plugin:@wordpress/eslint-plugin/recommended',
],
parserOptions: {
sourceType: "module"
sourceType: 'module',
},
rules: {
indent: ["error", "tab"],
"linebreak-style": ["error", "unix"],
quotes: ["error", "single"],
semi: ["error", "always"]
}
indent: ['error', 'tab'],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
},
};
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# NPM #
##########
# Ignore all directories called node_modules in current folder and any subfolders.
Expand Down Expand Up @@ -66,3 +67,16 @@ assets/bower_components/*
.idea/
library/vendors/composer
assets/img/.DS_Store

# Visual Studio Project Files #
.vs/

# No lock files.
package-lock.json
yarn.lock
settings.dat

# next.js
/.next/
/out/

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
31 changes: 31 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "asharirfan/simple-primary-category",
"description": "A light-weight WordPress plugin to assign & query posts and custom post types based on their primary taxonomy.",
"type": "wordpress-plugin",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Ashar Irfan",
"email": "[email protected]"
}
],
"config": {
"platform": {
"php": "7.3"
}
},
"require": {
"composer/installers": "^1.11.0"
},
"minimum-stability": "stable",
"require-dev": {
"wp-coding-standards/wpcs": "2.3.0",
"dealerdirect/phpcodesniffer-composer-installer": "0.7.1",
"phpcompatibility/phpcompatibility-wp": "2.1.3"
},
"scripts": {
"format": "phpcbf --report=summary,source",
"lint": "phpcs --report=summary,source",
"pot": "wp i18n make-pot . build/languages/_s.pot --exclude=node_modules,vendor,build --allow-root"
}
}
Loading

0 comments on commit c0f6b71

Please sign in to comment.