Making WordPress.org


Ignore:
Timestamp:
01/20/2021 04:37:47 PM (5 years ago)
Author:
ryelle
Message:

Plugin Directory: Remove unused React code.

As part of the Plugin Directory refresh #1719, the UI was rewritten into a React app, but currently only the screenshot slider uses React. This removes all the React JS except for the screenshots, and flattens the Sass into less complex files. Additionally it updates the packages and JS build process to use @wordpress/scripts.

Fixes #5431.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/package.json

    r8708 r10605  
    77  "main": "index.php",
    88  "scripts": {
     9    "watch:css": "grunt watch",
     10    "watch:js": "wp-scripts start",
     11    "watch": "concurrently \"npm run watch:js\" \"npm run watch:css\"",
     12    "build:css": "grunt build",
     13    "build:js": "wp-scripts build",
     14    "build": "npm run build:css && npm run build:js",
     15    "format:js": "wp-scripts format-js client",
     16    "lint:js": "wp-scripts lint-js client",
    917    "test": "echo \"Error: no test specified\" && exit 1"
    1018  },
     
    1321    "url": "https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/"
    1422  },
     23  "browserslist": [
     24    "extends @wordpress/browserslist-config"
     25  ],
    1526  "devDependencies": {
    16     "autoprefixer": "^6.3.6",
    17     "babel-cli": "^6.18.0",
    18     "babel-core": "^6.26.3",
    19     "babel-eslint": "^7.1.1",
    20     "babel-loader": "^6.2.4",
    21     "babel-plugin-lodash": "^3.3.4",
    22     "babel-plugin-transform-imports": "^1.1.0",
    23     "babel-preset-es2015": "^6.18.0",
    24     "babel-preset-react": "^6.11.1",
    25     "babel-preset-stage-2": "^6.18.0",
    26     "cssnano": "^3.10.0",
    27     "eslint": "^3.12.2",
    28     "eslint-plugin-react": "^6.8.0",
    29     "grunt": "^1.0.3",
    30     "grunt-contrib-jshint": "^1.0.0",
    31     "grunt-contrib-watch": "^1.1.0",
    32     "grunt-curl": "^2.5.1",
    33     "grunt-eslint": "^19.0.0",
    34     "grunt-postcss": "~0.7.2",
    35     "grunt-rtlcss": "^2.0.1",
    36     "grunt-sass": "~3.0.1",
    37     "grunt-sass-globbing": "^1.5.1",
    38     "grunt-webpack": "^1.0.11",
    39     "history": "^2.0.0",
    40     "jquery": "^3.1.0",
    41     "lodash": "^4.17.10",
    42     "node-sass": "^4.9.3",
    43     "pixrem": "^3.0.2",
    44     "postcss": "^6.0.14",
    45     "react": "^15.2.1",
    46     "react-dom": "^15.2.1",
    47     "react-redux": "^4.4.5",
    48     "react-router": "^2.5.2",
    49     "react-router-redux": "^4.0.5",
    50     "react-router-scroll": "^0.3.2",
    51     "redux": "^3.5.2",
    52     "redux-router": "^2.1.2",
    53     "redux-thunk": "^2.1.0",
    54     "rtlcss": "^2.2.1",
    55     "webpack": "^1.13.1",
    56     "webpack-dev-server": "^1.14.1"
    57   },
    58   "dependencies": {
    59     "i18n-calypso": "^1.7.0",
    60     "json-loader": "^0.5.4",
    61     "wpapi": "^1.2.1"
     27    "@wordpress/browserslist-config": "2.7.0",
     28    "@wordpress/scripts": "12.6.1",
     29    "autoprefixer": "10.2.3",
     30    "concurrently": "5.3.0",
     31    "cssnano": "4.1.10",
     32    "eslint": "7.18.0",
     33    "grunt": "1.3.0",
     34    "grunt-contrib-watch": "1.1.0",
     35    "grunt-postcss": "https://github.com/C-Lodder/grunt-postcss#v3.0.0",
     36    "grunt-rtlcss": "2.0.2",
     37    "grunt-sass": "3.1.0",
     38    "grunt-sass-globbing": "1.5.1",
     39    "lodash": "4.17.20",
     40    "node-sass": "4.14.1",
     41    "pixrem": "5.0.0",
     42    "postcss": "8.2.4",
     43    "prop-types": "15.7.2",
     44    "rtlcss": "3.0.0",
     45    "webpack": "4.46.0"
    6246  }
    6347}
Note: See TracChangeset for help on using the changeset viewer.