1.0.8 • Published 1 year ago

@penskemediacorp/wordpress-scripts v1.0.8

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

PMC WordPress Scripts

This repository hosts a collection of scripts designed to enhance your experience and efficiency when working with the PMC WordPress site. This package builds upon and extends the capabilities of the official @wordpress/scripts package, providing additional tools and functionalities tailored specifically for the PMC WordPress environment.

Features

  • Streamlined Workflows: Simplify the process of theme and plugin development with workflows tailored for efficiency.

  • Automation Scripts: Utilize custom scripts to automate repetitive tasks, saving time and reducing errors.

  • Enhanced WordPress Scripts: Benefit from enhancements to standard WordPress scripts that offer increased functionality and improved productivity.

  • TypeScript Support: Incorporate TypeScript into your development with enforced coding standards and type-checking, ensuring cleaner and more robust code.

Installation

Follow these steps to seamlessly incorporate the scripts into your WordPress project:

  1. Install npm: Ensure that npm is installed on your system. If it is not installed, download and install it from the official npm website.

  2. Install the PMC WordPress Scripts Package: Open your terminal, navigate to the root of your project, and execute the following commands:

    nvm install 20
    npm install @penskemediacorp/wordpress-scripts --save-dev
  3. Commit Necessary Files: After installation, commit the tsconfig.json, package.json, and package-lock.json files to your project repository.

By following these steps, the scripts will be added to the devDependencies section of your project, enabling their use within your development workflow.

Project Folder Structure

The project main entries files should be placed under src folder.
The generated files will be placed under build folder.

  • build/ (generated by the build script)
    • main-entry1.js
    • main-entry1.asset.php
    • main-entryX.js
    • main-entryX.asset.php
    • ...
  • src/ (individual entry file under this folder will be generated in build folder)

    • __tests__/
      • main-entry1.test.ts
      • main-entryX.test.ts
      • ...
    • modules/
      • __tests__/
        • module1.test.ts
        • ...
      • module1.ts
      • ...
    • folderX/
      • ...
    • main-entry1.ts
    • main-entryX.ts
    • ...

Usage

Contributing

License

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago