Skip to content

Commit

Permalink
WIP - NPM & Composer Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
timnolte committed Dec 23, 2023
1 parent 0676abe commit d124440
Show file tree
Hide file tree
Showing 12 changed files with 30,205 additions and 12,987 deletions.
23 changes: 0 additions & 23 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"dockerComposeFile": "../docker-compose.yml",
"service": "app",
"mounts": ["source=dind-var-lib-docker,target=/var/lib/docker,type=volume"],
//"workspaceMount": "source=${localWorkspaceFolder}/openid-connect-generic,target=/workspaces,type=bind,consistency=delegated",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

"customizations": {
Expand All @@ -19,31 +18,9 @@

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"username": "wp_php"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "14"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"./local-features/wp-cli": "latest",
"./local-features/welcome-message": "latest"
},

"overrideFeatureInstallOrder": [
"ghcr.io/devcontainers/features/common-utils",
"ghcr.io/devcontainers/features/node",
"ghcr.io/devcontainers/features/docker-in-docker",
"ghcr.io/devcontainers/features/git",
"ghcr.io/devcontainers/features/github-cli",
"./local-features/wp-cli",
"./local-features/welcome-message"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [8080, 8081, 8026, 3306],

Expand Down
8 changes: 0 additions & 8 deletions .devcontainer/local-features/wp-cli/devcontainer-feature.json

This file was deleted.

14 changes: 0 additions & 14 deletions .devcontainer/local-features/wp-cli/install.sh

This file was deleted.

4 changes: 3 additions & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ COMPOSER_ALLOW_XDEBUG=0 COMPOSER_MEMORY_LIMIT=-1 composer install

# Install NPM dependencies.
cd "${PLUGIN_DIR}"
npm ci
if [ ! -d "node_modules" ]; then
npm ci
fi

# Setup the WordPress environment.
cd "/app"
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ phpcs.xml
phpstan.neon
phpunit.xml
.phpunit.result.cache
clover.xml

# OS or Editor folders
.DS_Store
Expand All @@ -31,7 +32,6 @@ nbproject
*.sublime-project
*.sublime-workspace
.idea
clover.xml

# Dreamweaver added files
_notes
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
16
Loading

0 comments on commit d124440

Please sign in to comment.