Skip to content

Commit

Permalink
Merge pull request #482 from middlebury/composer-meta
Browse files Browse the repository at this point in the history
Add a composer.json for inclusion via Composer into PHP projects
  • Loading branch information
adamfranco authored Mar 2, 2023
2 parents 714de9a + a36ce51 commit dcb3b23
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "middlebury/midd-frontend",
"description": "Middlebury College's theme assets.",
"homepage": "https://github.com/middlebury/midd-frontend",
"type": "drupal-library",
"license": "GPL-2.0-or-later"
}
12 changes: 11 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ const clean = () =>
'./dist/**/*.html',
'./dist/**/*.js',
'./dist/**/*.css',
'./dist/images/*'
'./dist/images/*',
'./dist/*.json'
]);

const serve = () =>
Expand Down Expand Up @@ -261,6 +262,14 @@ const copyDeps = () => {
.pipe(gulp.dest('./dist/js'));
};

const copyMeta = () => {
return gulp
.src([
'./composer.json'
])
.pipe(gulp.dest('./dist/'));
};

const deployDist = () => {
if (!THEME_DIR) {
return console.error('No `--themeDir` argument passed');
Expand Down Expand Up @@ -356,6 +365,7 @@ const buildIconSprite = () =>
const build = gulp.series(
clean,
copyDeps,
copyMeta,
gulp.parallel(html, images, lintStyles, styles, scripts),
reportFilesizes
);
Expand Down

0 comments on commit dcb3b23

Please sign in to comment.