Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

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

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.idea
dist/
node_modules
/vendor/
/*.zip
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ before_script:
exit 1
;;
esac
composer global require "yoast/phpunit-polyfills:^1.0"
fi
- |
# Install PHP_CodeSniffer if it's requested for this test
Expand Down
24 changes: 24 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "automattic/syntaxhighlighter",
"description": "Easily post syntax-highlighted code to your WordPress site without having to modify the code at all.",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"require": {},
"archive": {
"exclude": [
"/*",
"!/dist",
"!/syntaxhighlighter2",
"!/syntaxhighlighter3",
"!/third-party-brushes",
"!/syntaxhighlighter_mce-4.js",
"!/syntaxhighlighter_mce.js",
"!/syntaxhighlighter.js",
"!/syntaxhighlighter.php",
"!/readme.txt",
".DS_Store",
".*",
"*.test.js"
]
}
}
60 changes: 31 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
{
"name": "syntaxhighlighter",
"version": "3.6.0",
"description": "Easily post syntax-highlighted code to your WordPress site without having to modify the code at all.",
"homepage": "https://alex.blog/wordpress-plugins/syntaxhighlighter/",
"author": "Alex Mills (Viper007Bond)",
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "git+https://github.com/Viper007Bond/syntaxhighlighter.git"
},
"bugs": {
"url": "https://github.com/Viper007Bond/syntaxhighlighter/issues"
},
"scripts": {
"start": "cgb-scripts start",
"build": "cgb-scripts build",
"distclean": "rm -rf node_modules && rm -rf dist",
"preinstall": "npx npm-force-resolutions"
},
"dependencies": {
"@wordpress/escape-html": "1.9.0",
"cgb-scripts": "1.23.0",
"classnames": "2.2.6",
"lodash.unescape": "4.0.1",
"npm-force-resolutions": "0.0.3"
},
"resolutions": {
"mem": "4.0.0"
}
"name": "syntaxhighlighter",
"version": "3.6.0",
"description": "Easily post syntax-highlighted code to your WordPress site without having to modify the code at all.",
"homepage": "https://alex.blog/wordpress-plugins/syntaxhighlighter/",
"author": "Alex Mills (Viper007Bond)",
"license": "GPL-2.0-or-later",
"repository": {
"type": "git",
"url": "git+https://github.com/Viper007Bond/syntaxhighlighter.git"
},
"bugs": {
"url": "https://github.com/Viper007Bond/syntaxhighlighter/issues"
},
"scripts": {
"start": "cgb-scripts start",
"build": "npm run build:assets && npm run archive",
"build:assets": "cgb-scripts build",
"distclean": "rm -rf node_modules && rm -rf dist",
"preinstall": "npx npm-force-resolutions",
"archive": "composer archive --file=$npm_package_name --format=zip"
},
"dependencies": {
"@wordpress/escape-html": "1.9.0",
"cgb-scripts": "1.23.0",
"classnames": "2.2.6",
"lodash.unescape": "4.0.1",
"npm-force-resolutions": "0.0.3"
},
"resolutions": {
"mem": "4.0.0"
}
}