Skip to content

Commit 27c2d6e

Browse files
authored
Merge pull request #33 from campuspress/new/refactor-inline-resources
Divi Accessibility 2.0.0
2 parents b522343 + 0ae143e commit 27c2d6e

46 files changed

Lines changed: 7095 additions & 1000 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"jquery": true
6+
},
7+
"extends": "eslint:recommended",
8+
"globals": {
9+
"Atomics": "readonly",
10+
"SharedArrayBuffer": "readonly"
11+
},
12+
"ignorePatterns": [ "**/*.min.js" ],
13+
"parserOptions": {
14+
"ecmaVersion": 2018
15+
},
16+
"rules": {
17+
"no-extra-semi": 0
18+
}
19+
};

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
node_modules
3+
*.zip

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@ A WordPress plugin that improves Divi accessibility in accordance with WCAG 2.0
1818
+ Fix duplicate menu IDs
1919
+ Tota11y integration
2020

21+
22+
Development
23+
-----------
24+
25+
The working js/css snippets are, by default, included minified. They can be forcefully included in their full expanded state by enabling the developer mode option in plugin settings. They will also respect the WP core `SCRIPTS_DEBUG` define value.
26+
27+
To check js/css snippets for any errors, run the dedicated `npm run lint` script.
28+
29+
To build the minified versions of the js/css snippets, run `npm run build` script.
30+
31+
While working on snippets, it may be beneficial to have them automatically re-built on file change. This is what the `npm run watch` script does.
32+
33+
To package an intermediate (throwaway) plugin zip archive for testing, use the `npm run package` script.
34+
35+
To actually build a releaseable package, use the `npm run release [-y] [--version=X.X.X]`. This will lint everything, build the languages catalog file, and normalize version numbers across files (main php file, package.json and readme.txt). It will then rebuild everything and produce a versioned zip archive.
36+
37+
The release version can either be supplied via a command line parameter (`--version=x.x.x`), or it will be inferred from the files that might be containing the version number (main php file and package.json). If the version number is being inferred, the highest one is the version that will be used.
38+
39+
If the final resolved release version is different than what's in package.json and/or main php file, they can optionally be updated to match. By default, the prerelease script will ask for user input whether to do this or not. This can be prevented using the command line flag `-y` - if this command line flag is set, the files will always be updated if necessary without any further input.
40+
41+
2142
## Resources
2243

2344
+ [Web Content Accessibility Guidelines (WCAG) 2.0](https://www.w3.org/TR/WCAG20/)

0 commit comments

Comments
 (0)