Coder Social home page Coder Social logo

davepartner / bootstrap4-udemy-clone Goto Github PK

View Code? Open in Web Editor NEW
46.0 6.0 30.0 7.88 MB

A clone of Udemy website using bootstrap. This is the project files from a tutorial.

Home Page: https://www.youtube.com/watch?v=ut9H4QHbOB4&list=PLnBvgoOXZNCN20--39IKuF_DbINp4JfLq

CSS 96.11% HTML 3.77% JavaScript 0.12%
bootstrap bootstrap4 bootstrap-theme bootstrap-sass bootstrap-grid bootstrap-vue templates

bootstrap4-udemy-clone's Issues

AssertionError [ERR_ASSERTION]: Task function must be specified

I get this error when i tray to run gulp watch
AssertionError [ERR_ASSERTION]: Task function must be specified at Gulp.set [as _setTask] (C:\laragon\www\trebian\node_modules\undertaker\lib\set-task.js:10:3) at Gulp.task (C:\laragon\www\trebian\node_modules\undertaker\lib\task.js:13:8) at Object.<anonymous> (C:\laragon\www\trebian\gulpfile.js:30:6) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18)

This is my gulpfile

gulpfile.js

var gulp  = require('gulp'),
  sass = require('gulp-sass'),
  sourcemaps = require('gulp-sourcemaps'),
  cleanCss = require('gulp-clean-css'),
  rename = require('gulp-rename'),
  postcss      = require('gulp-postcss'),
  autoprefixer = require('autoprefixer');

gulp.task('build-theme', function() {
  return gulp.src(['resources/sass/*.scss'])
    .pipe(sourcemaps.init())
    .pipe(sass().on('error', sass.logError))
    .pipe(postcss([ autoprefixer({ browsers: [
      'Chrome >= 35',
      'Firefox >= 38',
      'Edge >= 12',
      'Explorer >= 10',
      'iOS >= 8',
      'Safari >= 8',
      'Android 2.3',
      'Android >= 4',
      'Opera >= 12']})]))
    .pipe(sourcemaps.write())
    .pipe(gulp.dest('public/css/'))
    .pipe(cleanCss())
    .pipe(rename({suffix: '.min'}))
    .pipe(gulp.dest('public/css/'))
});

gulp.task('watch', ['build-theme'], function() {
  gulp.watch(['resources/sass/*.scss'], ['build-theme']);
});

gulp.task('default', ['build-theme'], function() {
});

I have NPM 6.4.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.