Skip to content

Commit

Permalink
Fix build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronson Quick committed Feb 15, 2025
1 parent f55a696 commit 67b6f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
1 change: 0 additions & 1 deletion chassis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ version: 2
# a repository within the Chassis GitHub organization.
dependencies:
- composer
- grunt
- chassis/phpunit
- nodejs
- npm
19 changes: 3 additions & 16 deletions modules/core_dev/manifests/build.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,15 @@
creates => '/vagrant/wordpress-develop/node_modules',
}

# Run grunt to build the project.
exec { 'grunt build --dev':
command => '/usr/bin/grunt build --dev',
# Run npm run build:dev to build the project.
exec { 'npm run build:dev':
command => '/usr/bin/npm run build:dev',
cwd => '/vagrant/wordpress-develop',
user => 'vagrant',
require => [
Class['grunt'],
Exec['npm install'],
Class['core_dev::repository'],
],
creates => '/vagrant/wordpress-develop/src/wp-includes/js',
}

exec { 'grunt build':
command => '/usr/bin/grunt build',
cwd => '/vagrant/wordpress-develop',
user => 'vagrant',
require => [
Class['grunt'],
Exec['npm install'],
Class['core_dev::repository'],
],
creates => '/vagrant/wordpress-develop/build/wp-includes/js',
}
}

0 comments on commit 67b6f44

Please sign in to comment.