Skip to content

Commit 3901f23

Browse files
authored
Merge pull request #281 from wpengine/toolkit
deploy: Toolkit Rework to Production
2 parents abd55ef + b8fadbd commit 3901f23

File tree

260 files changed

+21797
-36177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+21797
-36177
lines changed

.editorconfig

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1+
# Stop the editor from looking for .editorconfig files in the parent directories
12
root = true
23

34
[*]
5+
# Non-configurable Prettier behaviors
46
charset = utf-8
5-
end_of_line = lf
6-
indent_style = tab
77
insert_final_newline = true
8+
# Caveat: Prettier won’t trim trailing whitespace inside template strings, but your editor might.
89
trim_trailing_whitespace = true
9-
indent_size = 4
1010

11-
[{*.yml,*.json,*.md,*.tsx,*.ts,*.js,*.jsx}]
11+
# Configurable Prettier behaviors
12+
# (change these if your Prettier config differs)
13+
end_of_line = lf
14+
indent_style = tab
1215
indent_size = 2
16+
max_line_length = 80
17+
18+
[*.{yaml,yml}]
19+
# YAML files should use spaces, not tabs
1320
indent_style = space
21+
indent_size = 2

.env.local.example

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Your WordPress site URL
2+
NEXT_PUBLIC_WORDPRESS_URL=https://cms.faustjs.org/
3+
4+
# Your Next site URL
5+
NEXT_PUBLIC_SITE_URL=http://localhost:3000/
6+
7+
# Plugin secret found in WordPress Settings->Faust
8+
FAUST_SECRET_KEY=secret-key
9+
10+
# Atlas Search endpoint and access token - found in Atlas Search settings
11+
NEXT_PUBLIC_SEARCH_ENDPOINT=search-endpoint
12+
NEXT_SEARCH_ACCESS_TOKEN=search-access-token
13+
14+
# Google Analytics key
15+
NEXT_PUBLIC_GOOGLE_ANALYTICS_KEY=ga-key

.env.local.sample

Lines changed: 0 additions & 18 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Cache restoration"
2+
description: "Setup a NodeJS environment and restore cache if any, given a node version"
3+
4+
inputs:
5+
node-version:
6+
description: "Node version to use, default to LTS"
7+
required: true
8+
default: 22
9+
outputs:
10+
cache-hit:
11+
description: "Forward actions/cache cache-hit output"
12+
value: ${{ steps.node-cache.outputs.cache-hit }}
13+
14+
runs:
15+
using: "composite" # Mandatory parameter
16+
steps:
17+
# Setup a Node environment given a node version
18+
- name: Use Node.js ${{ inputs.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ inputs.node-version }}
22+
23+
- name: Cache Node Modules
24+
id: node-cache
25+
uses: actions/cache@v4
26+
with:
27+
path: |
28+
**/node_modules
29+
~/.cache
30+
key: ${{ runner.os }}-pnpm-${{ inputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Enable Corepack"
2+
description: "Setup Corepack with latest version and enable"
3+
4+
runs:
5+
using: "composite" # Mandatory parameter
6+
steps:
7+
- name: Update & Enable Corepack
8+
shell: bash
9+
run: |
10+
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
11+
npm install -g corepack@latest
12+
echo "After : corepack version => $(corepack --version)"
13+
corepack enable
14+
pnpm --version

.github/workflows/build.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/sonar.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)