Skip to content

Feat/zip import #227

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

Open
wants to merge 78 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
61ca999
feat: add filter hook for excluding files from parsing
EvanShaw Sep 23, 2020
e8d7bf9
Merge branch 'WordPress:master' into master
EvanShaw May 13, 2021
8efd3dd
feat: add wp-parser-source-type taxonomy with default terms. Parse do…
EvanShaw Aug 19, 2021
a405a55
fix: delete p2p relationships on a per-plugin/theme/package basis on …
EvanShaw Aug 20, 2021
b26f723
feat: add get_source_code_root_dir api-function
EvanShaw Aug 20, 2021
9841ed1
feat: move majority of API like functions from wporg-developer theme …
EvanShaw Aug 20, 2021
e3bc484
fix: fix hierarchical taxonomy cache for source-type not being cleare…
EvanShaw Aug 23, 2021
023614c
feat: add function that returns the 'plugin' source type term
EvanShaw Aug 23, 2021
2f3be94
feat: add rewrite rules for all wp-parser-* post types. Force 404 red…
EvanShaw Aug 25, 2021
6212668
feat: add Role taxonomy (区分) for functions/methods. Fix rewrite rules…
EvanShaw Aug 25, 2021
cc31b23
fix: prevent namespace backslashes from being stripped by update_post…
EvanShaw Aug 25, 2021
d11d440
fix: use PR proposed in #213 to fix namespace child terms not being d…
EvanShaw Aug 26, 2021
f9d8262
feat: add code-reference post_type landing pages for plugin/theme/com…
EvanShaw Aug 27, 2021
df60ab0
fix: only create reference landing page on import if it doesn't exist…
EvanShaw Aug 30, 2021
ff1c792
feat: move some utility functions from wporg theme to api-functions.php
EvanShaw Aug 30, 2021
9c7b639
feat: add landing pages for functions, hooks, and the source itself. …
EvanShaw Sep 1, 2021
d497ecc
feat: add functions for getting the reference baseurl when on single/…
EvanShaw Sep 2, 2021
c315160
feat: add more utility functions
EvanShaw Sep 2, 2021
542e873
fix: only create default reference landing pages on import to avoid c…
EvanShaw Sep 6, 2021
bfa1619
refactor: return WP_Query instances rather than post ID arrays for va…
EvanShaw Sep 7, 2021
b3cca99
feat: add translated_summary and translated_description post meta fie…
EvanShaw Sep 10, 2021
684cf1b
feat: allow adding translations for parameters and return value descr…
EvanShaw Sep 13, 2021
ba2e138
feat: move formatting methods/hooks from theme to this plugin
EvanShaw Sep 14, 2021
0b357a7
refactor: move all importer files from lib to src. Make all files PSR…
EvanShaw Sep 14, 2021
1ddf3cc
chore: finish fixing all linting errors
EvanShaw Sep 14, 2021
7c1297a
merge
seiyuinoue Sep 14, 2021
487441e
feat: add ability to trash no longer existing references on import
EvanShaw Sep 14, 2021
70ae3b2
feat: allow controlling file/folder exclusions with docparser-meta.js…
EvanShaw Sep 15, 2021
c0273d9
feat: add config option to import the source's version number
EvanShaw Sep 15, 2021
4d5f227
fix: add slashes to strings in tag data on import so that references …
EvanShaw Sep 15, 2021
82a8130
fix: make hook posts api function respect source type terms
EvanShaw Sep 16, 2021
7e10d6b
fix: only show roles that have posts for the given source type terms
EvanShaw Sep 17, 2021
953f151
Merge branch 'master' of https://github.com/aivec/phpdoc-parser
seiyuinoue Sep 21, 2021
5886df6
sourcetype svg upload added
seiyuinoue Sep 21, 2021
13ed749
Merge pull request #1 from aivec/feat/source-type-term-image
EvanShaw Sep 21, 2021
617175d
Merge branch 'master' of https://github.com/aivec/phpdoc-parser
seiyuinoue Sep 21, 2021
9642b92
review content reflected
seiyuinoue Sep 21, 2021
bf387d0
feat: add settings page for importing
EvanShaw Sep 22, 2021
fd13540
feat: finish frontend import feature
EvanShaw Sep 22, 2021
e08c035
posts added filter
seiyuinoue Sep 28, 2021
2f57e3e
Merge branch 'master' into feat/source-type-term-image
EvanShaw Sep 30, 2021
e77d660
Merge pull request #2 from aivec/feat/source-type-term-image
EvanShaw Sep 30, 2021
e2776c6
Merge branch 'master' of https://github.com/aivec/phpdoc-parser
seiyuinoue Sep 30, 2021
478f44c
Merge branch 'master' into feat/import-plugin-list-filter
seiyuinoue Sep 30, 2021
e75a588
review content reflected
seiyuinoue Sep 30, 2021
a4b0503
refactor: change importer config file name from 'docparser-meta.json'…
EvanShaw Oct 1, 2021
72f864e
Merge pull request #3 from aivec/feat/import-plugin-list-filter
EvanShaw Oct 1, 2021
b5f9d61
feat: add avcpdp_get_associated_tags api function
EvanShaw Oct 6, 2021
606e373
feat: add search helper functions
EvanShaw Oct 6, 2021
b348833
fix: encode values for search link/args functions
EvanShaw Oct 6, 2021
42a1181
fix: fix search post_type filtering
EvanShaw Oct 7, 2021
adcdbe4
fix: order by not deprecated for wp-parser-* archive and search results
EvanShaw Oct 7, 2021
7c561d6
feat: add utility method for retrieving the reference source type log…
EvanShaw Oct 7, 2021
5d5d1a5
feat: add a few more utility functions
EvanShaw Oct 13, 2021
f556b69
fix: combine the functionality of a few functions into one
EvanShaw Oct 18, 2021
0924439
fix: fix handling of @see tag internal references
EvanShaw Oct 21, 2021
191e883
chore: add bundle script
EvanShaw Oct 27, 2021
89e46c7
fix: install missing cross-env package
EvanShaw Oct 27, 2021
bff3226
chore: fix bundle script
EvanShaw Oct 27, 2021
9462043
feat: save @important tag as post meta data. Add meta box field to po…
EvanShaw Oct 29, 2021
9708fbe
fix: fix bundle script erroneously removing nikic/php-parser package
EvanShaw Oct 29, 2021
b5e7d47
feat: on admin posts list page, add abilty to order by item importance
EvanShaw Oct 29, 2021
eca26a6
feat: add method for retrieving a hierarchical array for a param hash…
EvanShaw Nov 1, 2021
9c0ff9a
add-post-edit-items
seiyuinoue Nov 2, 2021
d485a4a
Merge branch 'master' into feat/add-post-edit-items
seiyuinoue Nov 2, 2021
c9821ae
Review content reflected
seiyuinoue Nov 2, 2021
4f56468
4#discussion_r740733728
seiyuinoue Nov 2, 2021
1f33a58
Degreasing correction
seiyuinoue Nov 2, 2021
f3e0e93
Merge pull request #4 from aivec/feat/add-post-edit-items
EvanShaw Nov 2, 2021
d62a513
feat(wp-parser-* post edit): recursively display table rows for hash …
EvanShaw Nov 4, 2021
3493212
Merge branch 'feat/translated-return-hash-recursive'
EvanShaw Nov 4, 2021
e4703a2
feat: save translated since tags as key value map. Add get_deprecated…
EvanShaw Nov 4, 2021
12bcbad
feat: handle hash type parameters for arguments
EvanShaw Nov 4, 2021
638aa2c
feat: finish making ALL post content translatable
EvanShaw Nov 5, 2021
a851e47
fix(reference list pages): use multiple meta queries for the two vari…
EvanShaw Nov 10, 2021
673f99f
fix: fix archive pagination URL rewrite rule for wp-parser-class post…
EvanShaw Nov 10, 2021
b21fd4f
fix: only run ItemImportance pre_get_posts hook on admin post list pages
EvanShaw Nov 11, 2021
4e810cf
作業中コミット(残;blobDataZip処理、bitbucketインポート処理)
seiyuinoue Nov 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
vendor
vendor
node_modules
dist
*.zip
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ Activate the plugin first:
In your site's directory:

wp parser create /path/to/source/code --user=<id|login>

## Known Parser Issues
- The parser will crash if it encounters an invokation of an anonymous function returned by a call to a method/function all on the same line. (ie: $this->getAndExecuteFunc()())
31 changes: 31 additions & 0 deletions bundle
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env php
<?php

use Aivec\PtBundler\Bundler;

passthru('composer install');
passthru('npm install');

require_once(__DIR__ . '/vendor/autoload.php');

(new Bundler('wp-phpdoc-parser'))
->setFoldersToInclude(['dist', 'languages', 'src', 'vendor'])
->setFilesToInclude(['plugin.php'])
->setTargetsToCleanBeforeBuild(['dist'])
->setBuildCallback(function () {
passthru('npm run build:prod');
passthru('composer build');
})
->setTargetsToCleanAfterBuild([
'vendor/aivec',
'vendor/nikic/fast-route',
'vendor/bin',
])
->setCleanupCallback(function () {
passthru('composer dump-autoload');
})
->setArchiveTargetsToClean([
'dist/**/*.map',
'src/**/*.tsx',
])
->createZipArchive();
110 changes: 77 additions & 33 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,79 @@
{
"name" : "wordpress/phpdoc-parser",
"description": "Static code parser for WordPress source.",
"keywords" : ["wordpress"],
"type" : "wordpress-plugin",
"homepage" : "https://github.com/WordPress/phpdoc-parser",
"license" : "GPL-2.0-or-later",
"authors" : [
{
"name" : "Ryan McCue",
"homepage": "http://ryanmccue.info",
"role" : "Developer"
},
{
"name" : "Contributors",
"homepage": "https://github.com/WordPress/phpdoc-parser/graphs/contributors"
}
],
"support" : {
"issues": "https://github.com/WordPress/phpdoc-parser/issues"
},
"require" : {
"php" : ">=5.4",
"composer/installers" : "~1.0",
"phpdocumentor/reflection" : "~3.0",
"erusev/parsedown" : "~1.7",
"scribu/lib-posts-to-posts": "dev-master@dev",
"scribu/scb-framework" : "dev-master@dev",
"psr/log" : "~1.0"
},
"autoload" : {
"classmap": ["lib"],
"files" : ["lib/runner.php", "lib/template.php"]
}
"name": "wordpress/phpdoc-parser",
"description": "Static code parser for WordPress source.",
"keywords": [
"wordpress"
],
"type": "wordpress-plugin",
"homepage": "https://github.com/WordPress/phpdoc-parser",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Ryan McCue",
"homepage": "http://ryanmccue.info",
"role": "Developer"
},
{
"name": "Contributors",
"homepage": "https://github.com/WordPress/phpdoc-parser/graphs/contributors"
}
],
"support": {
"issues": "https://github.com/WordPress/phpdoc-parser/issues"
},
"extra": {
"mozart": {
"dep_namespace": "AVCPDP\\",
"dep_directory": "/dist/AVCPDP/",
"classmap_directory": "/dist/classes/",
"classmap_prefix": "AVCPDP_",
"packages": [
"aivec/wordpress-router",
"aivec/response-handler",
"aivec/core-css"
]
}
},
"require": {
"php": ">=5.4",
"composer/installers": "~1.0",
"phpdocumentor/reflection": "~3.0",
"erusev/parsedown": "~1.7",
"scribu/lib-posts-to-posts": "dev-master@dev",
"scribu/scb-framework": "dev-master@dev",
"psr/log": "~1.0",
"aivec/wordpress-router": "^7.0",
"aivec/response-handler": "^5.0",
"wp-cli/wp-cli": "^2.5",
"aivec/core-css": "^3.1"
},
"require-dev": {
"wp-cli/i18n-command": "^2.2",
"aivec/phpcs-wp": "^2.0",
"coenjacobs/mozart": "^0.7.1",
"aivec/pt-bundler": "^1.1"
},
"autoload": {
"files": [
"src/api-functions.php",
"src/template-functions.php"
],
"psr-4": {
"AVCPDP\\": "dist/AVCPDP",
"Aivec\\Plugins\\DocParser\\": "src"
}
},
"scripts": {
"lint": "phpcs -ps --standard=AivecWP-5 --ignore=*/tests/* .",
"lint:fix": "phpcbf -ps --standard=AivecWP-5 --ignore=*/tests/* .",
"i18n:create-pot": "./vendor/bin/wp i18n make-pot . languages/messages.pot",
"i18n:update-pos": "@composer i18n:create-pot && find ./languages -name \"*.po\" | xargs -I % msgmerge -o % % languages/messages.pot",
"i18n:make-mo": "./vendor/bin/wp i18n make-mo languages",
"i18n:make-json": "./vendor/bin/wp i18n make-json languages --no-purge --pretty-print",
"build": [
"composer install",
"mozart compose",
"composer install --no-dev"
]
}
}
Loading