Skip to content

Commit

Permalink
ts migration and analytics (#98)
Browse files Browse the repository at this point in the history
* ts migration and analytics

* bypass build errors for now

* fix imports
  • Loading branch information
Xtremilicious authored Oct 11, 2024
1 parent 29a4712 commit dc96c15
Show file tree
Hide file tree
Showing 89 changed files with 7,075 additions and 702 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Note: Cloning the repository is not required. You can directly use the GitHub On
To get started, just clone the repository and run `npm install && npm run dev`:

git clone https://github.com/Xtremilicious/projectlearn-project-based-learning.git
npm install
npm ci
npm run dev

Thank you for your contributions! If you think there is anything to improve with the guidelines or any kind of constructive criticism, please create an issue [here](https://github.com/Xtremilicious/projectlearn-project-based-learning/issues/new) with the details.
20 changes: 20 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "styles/globals.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
24 changes: 24 additions & 0 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import gulp from 'gulp';
import imagemin, { optipng } from 'gulp-imagemin';
import imageminWebp from 'imagemin-webp';

// Task to optimize PNG images
gulp.task('optimize-png', () => {
return gulp.src('src/images/*.png')
.pipe(imagemin([
optipng({ optimizationLevel: 5 }),
]))
.pipe(gulp.dest('src/images'));
});

// Task to optimize WebP images
gulp.task('optimize-webp', () => {
return gulp.src('src/images/*.webp')
.pipe(imagemin([
imageminWebp({ quality: 100 }),
]))
.pipe(gulp.dest('src/images'));
});

// Default task to run both image optimization tasks
gulp.task('default', gulp.series('optimize-png', 'optimize-webp'));
4 changes: 4 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/// <reference types="next" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ module.exports = (phase, { defaultConfig }) =>
images: {
disableStaticImages: true
},
typescript:{
ignoreBuildErrors: true
},
exportPathMap: async function (defaultPathMap, { dev, dir, outDir, distDir, buildId }) {
const paths = {
"/": { page: "/", query: { __nextDefaultLocale: '' } },
Expand Down
Loading

0 comments on commit dc96c15

Please sign in to comment.