1.2.6 • Published 5 years ago

profet-wp v1.2.6

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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
1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.0

6 years ago