Skip to content

Commit

Permalink
Add SW (#16)
Browse files Browse the repository at this point in the history
* Add SW

* Update Build
  • Loading branch information
smashedr authored Aug 4, 2024
1 parent fbfe840 commit 36c32c5
Show file tree
Hide file tree
Showing 27 changed files with 5,271 additions and 148 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20

- name: "Install Dependencies"
run: |
npm install
- name: "Configure Pages"
uses: actions/configure-pages@v5

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.idea/
*.iml
.vscode/
node_modules/
**/.jekyll-cache/
**/_site/
**/dist/
src/css/bootstrap.css
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[![Pages](https://img.shields.io/github/actions/workflow/status/cssnr/open-links-in-new-tab-site/pages.yaml?logo=github&logoColor=white&label=pages)](https://github.com/cssnr/open-links-in-new-tab-site-site/actions/workflows/pages.yaml)
[![Pages](https://img.shields.io/github/actions/workflow/status/cssnr/open-links-in-new-tab-site/pages.yaml?logo=github&logoColor=white&label=pages)](https://github.com/cssnr/open-links-in-new-tab-site/actions/workflows/pages.yaml)
[![Chrome Web Store Users](https://img.shields.io/chrome-web-store/users/efahmjakjnnmleokcaomicgfhobabdkc?logo=google&logoColor=white&label=google%20users)](https://chrome.google.com/webstore/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[![Mozilla Add-on Users](https://img.shields.io/amo/users/open-links-in-new-tab?logo=mozilla&label=mozilla%20users)](https://addons.mozilla.org/addon/open-links-in-new-tab)
[![Chrome Web Store Version](https://img.shields.io/chrome-web-store/v/efahmjakjnnmleokcaomicgfhobabdkc?label=chrome&logo=googlechrome)](https://chrome.google.com/webstore/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[![Chrome Web Store Rating](https://img.shields.io/chrome-web-store/rating/efahmjakjnnmleokcaomicgfhobabdkc?logo=google&logoColor=white)](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[![Mozilla Add-on Rating](https://img.shields.io/amo/rating/open-links-in-new-tab?logo=mozilla&logoColor=white)](https://addons.mozilla.org/addon/open-links-in-new-tab)
[![GitHub Repo stars](https://img.shields.io/github/stars/cssnr/open-links-in-new-tab?style=flat&logo=github&logoColor=white)](https://github.com/cssnr/open-links-in-new-tab/stargazers)
[![Mozilla Add-on Version](https://img.shields.io/amo/v/open-links-in-new-tab?label=firefox&logo=firefox)](https://addons.mozilla.org/addon/open-links-in-new-tab)
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/open-links-in-new-tab?logo=github)](https://github.com/cssnr/open-links-in-new-tab/releases/latest)
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/open-links-in-new-tab?logo=github&logoColor=white)](https://github.com/cssnr/open-links-in-new-tab/releases/latest)
[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord&logoColor=white&label=discord&color=7289da)](https://discord.gg/wXy6m2X8wY)

# Open Links in New Tab Site
Expand Down Expand Up @@ -34,8 +37,8 @@ Install Jekyll: https://jekyllrb.com/docs/installation/
Run: `jekyll serve -s src -o -l`

This will build the site from the `src` directory, open it in your browser, watch for file changes, automatically
rebuild the site and refresh the site in your browser; enjoy...
rebuild the site and refresh the site in your browser, happy coding...

For more information see `jekyll help` and `jekyll serve --help` or visit: https://jekyllrb.com/docs/

For production, this site is built with GitHub Actions: [.github/workflows/pages.yaml](.github%2Fworkflows%2Fpages.yaml)
For production, this site is built with GitHub Actions: [.github/workflows/pages.yaml](.github/workflows/pages.yaml)
1 change: 1 addition & 0 deletions commit-checklist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{ "value": "Check Config Values", "fileMask": "*src\\_config.yml" }]
65 changes: 65 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
const gulp = require('gulp')

gulp.task('animate', () => {
return gulp
.src('node_modules/animate.css/animate.min.css')
.pipe(gulp.dest('src/dist/animate'))
})

gulp.task('bootstrap', () => {
return gulp
.src(['node_modules/bootstrap/dist/js/bootstrap.bundle.min.js'])
.pipe(gulp.dest('src/dist/bootstrap'))
})

gulp.task('clipboard', () => {
return gulp
.src('node_modules/clipboard/dist/clipboard.min.js')
.pipe(gulp.dest('src/dist/clipboard'))
})

gulp.task('fontawesome', () => {
return gulp
.src(
[
'node_modules/@fortawesome/fontawesome-free/css/all.min.css',
'node_modules/@fortawesome/fontawesome-free/webfonts/**/*',
],
{ base: 'node_modules/@fortawesome/fontawesome-free' }
)
.pipe(gulp.dest('src/dist/fontawesome'))
})

gulp.task('swiper', () => {
return gulp
.src([
'node_modules/swiper/swiper-bundle.min.css',
'node_modules/swiper/swiper-bundle.min.js',
])
.pipe(gulp.dest('src/dist/swiper'))
})

gulp.task('tsparticles', () => {
return gulp
.src('node_modules/tsparticles/tsparticles.bundle.min.js')
.pipe(gulp.dest('src/dist/tsparticles'))
})

gulp.task('ua-parser-js', () => {
return gulp
.src('node_modules/ua-parser-js/dist/ua-parser.min.js')
.pipe(gulp.dest('src/dist/ua-parser-js'))
})

gulp.task(
'default',
gulp.parallel(
'animate',
'bootstrap',
'clipboard',
'fontawesome',
'swiper',
'tsparticles',
'ua-parser-js'
)
)
Loading

0 comments on commit 36c32c5

Please sign in to comment.