Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
Expand All @@ -8,8 +14,8 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.php]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.php]
indent_style = tab
28 changes: 28 additions & 0 deletions .github/workflows/ensure-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Ensure block build artifacts are current

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v7

- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: '22'
cache: 'npm'

- run: npm ci

- run: npm list

- run: npm run build --workspaces

- uses: CatChen/check-git-status-action@v1
with:
fail-if-not-clean: true
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ web/app/mu-plugins/*/
web/app/plugins/*
!web/app/plugins/.gitkeep
!web/app/plugins/mitlib-analytics
!web/app/plugins/mitlib-block-hero-section
!web/app/plugins/mitlib-block-hours-section
!web/app/plugins/mitlib-block-using-the-libraries-section
!web/app/plugins/mitlib-block-featured-and-events-section
!web/app/plugins/mitlib-block-featured-collection-section
!web/app/plugins/mitlib-cf7-elements
!web/app/plugins/mitlib-home-page-news
!web/app/plugins/mitlib-multisearch-widget
Expand Down Expand Up @@ -189,3 +194,32 @@ Thumbs.db
##########
.vscode
auth.json

# NPM examples
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Coverage directory used by tools like istanbul
coverage

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of `npm pack`
*.tgz

# Output of `wp-scripts plugin-zip`
*.zip

# dotenv environment variables file
.env
Loading
Loading