Skip to:
Content

BuddyPress.org

Changeset 12573 for trunk/package.json


Ignore:
Timestamp:
03/25/2020 05:41:47 AM (6 years ago)
Author:
imath
Message:

Add node modules to have tools to compile & bundle modern JavaScript

  1. Add Parcel and Babel

Parcel is a web application bundler used to watch and build BP Blocks and BP Block components. It is associated with Babel, a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments.

  1. Add the default Babel preset for WordPress development.
  1. Remove our development dependency to grunt-wp-i18n as we will use from now on WP CLI to generate a pot file that is also taking in account JavaScript i18n strings.
  1. Add the needed Parcel commands to prepare BP Blocks compiling tasks.
  1. Update Grunt.js to latest stable.

NB: contributors, please use npm install to update your node modules locally.

See #8048
See #8154

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r12471 r12573  
    66    "description": "BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!",
    77    "devDependencies": {
     8        "@babel/core": "~7.8.7",
     9        "@wordpress/babel-preset-default": "~4.10.0",
    810        "@wordpress/browserslist-config": "~2.1.4",
    911        "autoprefixer": "~8.5.2",
    10         "grunt": "~1.0.3",
     12        "grunt": "~1.1.0",
    1113        "grunt-check-dependencies": "~1.0.0",
    1214        "grunt-checktextdomain": "~1.0.1",
     
    2729        "grunt-sass": "~2.0.0",
    2830        "grunt-stylelint": "~0.8.0",
    29         "grunt-wp-i18n": "~1.0.2",
    3031        "matchdep": "~1.0.1",
     32        "parcel-bundler": "~1.12.4",
    3133        "postcss-scss": "~1.0.6",
    3234        "stylelint": "~7.10.1",
     
    3537    "engines": {
    3638        "node": ">=6.9.1"
     39    },
     40    "scripts": {
     41        "start": "npm run dev:components && parcel watch src/js/bp-*/*s/blocks/*.js --out-dir src --no-source-maps",
     42        "dev": "npm run dev:components && parcel build src/js/bp-*/*s/blocks/*.js --out-dir src --no-source-maps --no-minify",
     43        "build": "npm run build:components && parcel build src/js/bp-*/*s/blocks/*.js --out-dir build --no-source-maps",
     44        "watch:components": "parcel watch src/js/bp-core/js/block-components/block-components.js --out-dir src/bp-core/js --out-file block-components.js --no-source-maps --global bp",
     45        "dev:components": "parcel build src/js/bp-core/js/block-components/block-components.js --out-dir src/bp-core/js --out-file block-components.js --no-source-maps --no-minify --global bp",
     46        "build:components": "parcel build src/js/bp-core/js/block-components/block-components.js --out-dir build/bp-core/js --out-file block-components.js --no-source-maps --global bp"
    3747    },
    3848    "keywords": [
     
    5464    },
    5565    "version": "6.0.0-alpha",
    56     "dependencies": {},
    5766    "browserslist": [
    5867        "extends @wordpress/browserslist-config"
Note: See TracChangeset for help on using the changeset viewer.