• Stars
    star
    370
  • Rank 115,405 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An example starter theme and block-type plugin that use @wordpress/scripts for JS & CSS

Bradโ€™s Boilerplate

This repo contains one folder that is an example theme, and another folder that is an example block-type plugin. Both folders use the official @wordpress/scripts package to power the JS(X) and SCSS bundling.

This repo is part of one of my YouTube videos, check it out for a more detailed walkthrough.

After placing one of the folders in your WordPress themes or plugins folders, you then:

  1. Point your terminal towards the new example folder.
  2. Run npm install
  3. Run npm run start and the package will now be watching for any saved changes to your JS or SCSS files.

Alternatively, you can run npm run preview and that will both start the watch task and start a proxy server running on localhost:3000 that will automatically refresh the browser anytime you save a change. In order for this feature to work you will need to change the domain in package.json on line #8. In my file it mentions myexample.local but obviously you will have a different local dev domain that you want to proxy.

Enjoy!

More Repositories

1

university-static

CSS
347
star
2

react-course

HTML
135
star
3

vagrant-lamp

HTML
104
star
4

youtube-cookies-and-more

JavaScript
85
star
5

javascript

HTML
66
star
6

simple-block-boilerplate

The repo for my video about WP blocks
PHP
36
star
7

youtube-heroku-netlify

JavaScript
35
star
8

handlebars-webpack

JavaScript
33
star
9

mern-stack

JavaScript
32
star
10

json-example

27
star
11

practice-api

24
star
12

travel-site-files

HTML
23
star
13

wp-theme-guide

PHP
20
star
14

laravel-course

HTML
19
star
15

gpt-nextjs-example

JavaScript
18
star
16

super-advanced-website

Amazing Website
HTML
18
star
17

react-sass-webpack-example

JavaScript
18
star
18

youtube-backend-frontend

JavaScript
16
star
19

welcome-to-git

CSS
15
star
20

nextjs-youtube-demo

JavaScript
15
star
21

express-mongodb-example

JavaScript
14
star
22

youtube-super-simple-webpack

JavaScript
13
star
23

cloudinary-finished-reference

JavaScript
13
star
24

wordpress-rest-api-auth-examples

JavaScript
12
star
25

express-youtube-basics

JavaScript
12
star
26

react-state-examples

JavaScript
12
star
27

declarativeToggle

jQuery snippet for creating responsive show/hide toggles declaratively with data attributes
JavaScript
8
star
28

my-example-site

HTML
8
star
29

react-dog-game

JavaScript
7
star
30

youtube-laravel-demo

PHP
7
star
31

weather-checker

CSS
5
star
32

Web-Design-for-Beginners

5
star
33

vite-tailwind

JavaScript
4
star
34

bootcamp-pet-data

4
star
35

node-gpt-simple

JavaScript
4
star
36

nextjs-followed-youtube

JavaScript
3
star
37

pet-adoption-data

3
star
38

21.10

My personal post-installation script for Ubuntu 21.10
Shell
3
star
39

pet-adoption

HTML
2
star
40

classtheme2017

PHP
2
star
41

tailwind-examples

JavaScript
2
star
42

nextjs-pets

JavaScript
2
star
43

spa-history-example

HTML
1
star
44

practice-requests

HTML
1
star
45

live-preview-examples

JavaScript
1
star