Skip to content

Commit

Permalink
Add a composer.json for inclusion via Composer in PHP projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfranco committed Mar 2, 2023
1 parent 714de9a commit a36ce51
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 a36ce51

Please sign in to comment.