Skip to content

Commit

Permalink
Add composer.json for inclusion in Drupal.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfranco committed Feb 14, 2024
1 parent bb3c45e commit 80cb651
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "middlebury/public-campaign-site",
"description": "Middlebury's public campaign website theme assets.",
"homepage": "https://github.com/middlebury/public-campaign-site",
"type": "drupal-library",
"license": "GPL-2.0-or-later"
}
12 changes: 10 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ const copyDeps = () => {
.pipe(gulp.dest('./dist/js'));
};

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

export const replaceImagePaths = () => {
const imagesDir = args.imagesDir || '/img/';
return gulp
Expand All @@ -35,8 +43,8 @@ const options = {
watch: src('js/**/*'),
dest: dist('js/bundle.js')
},
beforeBuild: [copyDeps],
beforeBuild: [copyDeps, copyMeta],
typescriptBuild: true
};

export const { dev, build } = createConfig(options);
export const { dev, build } = createConfig(options);

0 comments on commit 80cb651

Please sign in to comment.