Skip to content

Commit

Permalink
Merge pull request #52 from Chassis/51-script-update
Browse files Browse the repository at this point in the history
Fix build scripts
  • Loading branch information
BronsonQuick authored Feb 15, 2025
2 parents f55a696 + 67b6f44 commit 2f5c37b
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 2f5c37b

Please sign in to comment.