profet-wp

1.2.6 • Public • Published

Profet WP

Command line tools to ease WordPress development for Profet Webb & Kommunikation AB.

Installation

Install via npm:

$ npm install profet-wp

Configuration

Optional: create a configuration file. This allows you to override default paths used by this tool so that you can use your own folder structure. To use a configuration file, place a file called profet-wp.json in the folder you want to run the profet-wp commands from. This json file should contain the variables you want to override. E.g.

{
	"build": "profet-includes/assets/build/",
	"buildScss": "profet-includes/assets/build/scss/",
	"buildScssElements": "profet-includes/assets/build/scss/elements/",
	"buildScssBlocks": "profet-includes/assets/build/scss/blocks/",
	"buildJs": "profet-includes/assets/build/js/",
	"profetBlocksFolder": "profet-includes/blocks/",
	"profetIncludes": "profet-includes/",
	"profetIncludesTemplates": "profet-includes/templates/",
	"profetIncludesTemplatesBlocks": "profet-includes/templates/blocks/",
	"nameSpace": "Profet"
}

Usage

Create a component by running profet-wp:create-component and passing in your component's name as the parameter.

$ profet-wp:create-component my-component

Create a Gutenberg block boilerplate by running profet-wp:create-block and passing in your component's name as the parameter.

$ profet-wp:create-block my-block

Readme

Keywords

none

Package Sidebar

Install

npm i profet-wp

Weekly Downloads

5

Version

1.2.6

License

ISC

Unpacked Size

8 kB

Total Files

6

Last publish

Collaborators

  • asylwan