Skip to content

Commit

Permalink
Merge pull request #78 from sakibul-islam/fix-zip
Browse files Browse the repository at this point in the history
fix: Include files from subfolders in build archive
  • Loading branch information
guocaoyi authored Mar 20, 2024
2 parents d7c3b84 + 5612ee1 commit ae8f0e1
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-chrome-ext",
"version": "0.9.2",
"version": "0.9.3",
"type": "module",
"description": "Scaffolding your chrome extension, multiple boilerplates supported!",
"author": "yalda",
Expand Down
2 changes: 1 addition & 1 deletion template-alpine-js/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-alpine-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-inferno-js/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-inferno-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-lit-js/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-lit-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-preact-js/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-preact-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-react-js/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-react-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-solid-js/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-solid-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-stencil-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-svelte-js/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-svelte-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-vanilla-js/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-vanilla-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-vue-js/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))
2 changes: 1 addition & 1 deletion template-vue-ts/src/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const require = createRequire(import.meta.url)
const manifest = require('../build/manifest.json')

gulp
.src('build/*')
.src('build/**')
.pipe(zip(`${manifest.name.replaceAll(' ', '-')}-${manifest.version}.zip`))
.pipe(gulp.dest('package'))

0 comments on commit ae8f0e1

Please sign in to comment.