Skip to content

Commit

Permalink
Merge pull request #17 from satyam-seth/add-scss
Browse files Browse the repository at this point in the history
Add SCSS for OTP Field and Box
  • Loading branch information
satyam-seth authored Oct 13, 2024
2 parents 9949c27 + b647bfc commit 937cc87
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 487 deletions.
Binary file removed assets/favicon.ico
Binary file not shown.
2 changes: 0 additions & 2 deletions dist/css/main.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/css/maps/main.css.map

This file was deleted.

23 changes: 2 additions & 21 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
const gulp = require('gulp');
const dartSass = require('sass');
const sass = require('gulp-sass')(dartSass);
const sourcemaps = require('gulp-sourcemaps');
const ts = require('gulp-typescript');

// build scss
const buildScss = () => {
return gulp
.src('src/scss/**/*.scss')
.pipe(sourcemaps.init())
.pipe(sass({ outputStyle: 'compressed' }).on('error', sass.logError))
.pipe(sourcemaps.write('./maps'))
.pipe(gulp.dest('dist/css'));
};

// build typescript
const buildTs = () => {
const tsProject = ts.createProject('tsconfig.json');
Expand All @@ -23,16 +10,10 @@ const buildTs = () => {
.pipe(gulp.dest(tsProject.config.compilerOptions.outDir));
};

// task to build scss
gulp.task('build-scss', buildScss);

// task to build typescript
gulp.task('build-ts', buildTs);

// default task
gulp.task('default', gulp.parallel(buildScss, buildTs));
gulp.task('default', buildTs);

// watch for change
gulp.task('watch', () => {
gulp.watch(['src'], gulp.parallel(buildScss, buildTs));
gulp.watch(['src'], buildTs);
});
13 changes: 0 additions & 13 deletions index.html

This file was deleted.

Loading

0 comments on commit 937cc87

Please sign in to comment.