diff --git a/.travis.yml b/.travis.yml index 18d8fc31695..b6edb9febed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,6 @@ jobs: php: 7.1 script: - composer install - - composer run-script phpcs . - npm install - npm run lint - npm run build diff --git a/package-lock.json b/package-lock.json index cb470e599bd..9849c9d0632 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@woocommerce/block-library", - "version": "2.0.0-beta", + "version": "2.0.0-rc1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d8c4cc785c4..a624e6fa33e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@woocommerce/block-library", "title": "WooCommerce Blocks", "author": "Automattic", - "version": "2.0.0-beta", + "version": "2.0.0-rc1", "description": "WooCommerce blocks for the Gutenberg editor.", "homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/", "keywords": [ @@ -16,9 +16,11 @@ }, "license": "GPL-3.0+", "scripts": { + "prepack": "npm install && npm run lint && npm run test && npm run build", "build": "cross-env BABEL_ENV=default NODE_ENV=production webpack", "start": "cross-env BABEL_ENV=default webpack --watch", - "lint": "npm run lint:css && npm run lint:js", + "lint": "npm run lint:php && npm run lint:css && npm run lint:js", + "lint:php": "composer run-script phpcs .", "lint:css": "stylelint assets/css", "lint:js": "eslint assets/js --ext=js,jsx", "test": "wp-scripts test-unit-js --config tests/js/jest.config.json", diff --git a/woocommerce-gutenberg-products-block.php b/woocommerce-gutenberg-products-block.php index 6c804bb6ec8..036b1c1b134 100644 --- a/woocommerce-gutenberg-products-block.php +++ b/woocommerce-gutenberg-products-block.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Blocks * Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block * Description: WooCommerce blocks for the Gutenberg editor. - * Version: 2.0.0-beta + * Version: 2.0.0-rc1 * Author: Automattic * Author URI: https://woocommerce.com * Text Domain: woo-gutenberg-products-block @@ -15,7 +15,7 @@ defined( 'ABSPATH' ) || die(); -define( 'WGPB_VERSION', '2.0.0-beta' ); +define( 'WGPB_VERSION', '2.0.0-rc1' ); define( 'WGPB_PLUGIN_FILE', __FILE__ ); define( 'WGPB_ABSPATH', dirname( WGPB_PLUGIN_FILE ) . '/' );