Coder Social home page Coder Social logo

gulp-flow-remove-types's People

Contributors

wain-pc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ibesora

gulp-flow-remove-types's Issues

Prettier errors

When gulp building errors the message printed is not very helpful. As you can see in the following error, the line of code and the domain are not printed, giving no clue about where the error is

[08:55:40] Starting 'build'...
[08:55:40] 'build' errored after 400 ms
[08:55:40] SyntaxError in plugin 'gulp-flow-remove-types'
Message:
    await is a reserved word (183:12)
Details:
    pos: 3492
    loc: [object Object]
    domain: [object Object]
    domainThrown: true
error Command failed with exit code 1.

This is my gulp configuration:

const gulp = require('gulp');
const flowRemoveTypes = require('gulp-flow-remove-types');

gulp.task('build', function () {
    return gulp.src('./src/**/*.js')
        .pipe(flowRemoveTypes({pretty: true}))
        .pipe(gulp.dest('./dist/'));
});

I'm using gulp4 btw.

sourceMaps option not generating maps

we are currently flow into our project and although removing flow types doesn't necessarily generate radically different files, the sourcemaps option would be a nice touch if it worked for us.

our current transpiling task on gulp is as follows:

gulp.task('transpile', ['clean-transpiled', 'scripts'], transpileScripts);

function transpileScripts () {
  return gulp.src([
    path.join(conf.paths.src, '/app/**/*.js'),
    `!${path.join(conf.paths.src, '/app/constant.url.js')}`
  ])
    .pipe(removeFlowTypes({
      pretty: true,
      sourceMap: true
    }))
    .pipe(debug())
    .pipe(gulp.dest(path.join(conf.paths.src, '/.transpiled')));
}

The file index.utilities.factory which is included and stripped of its types, isn't getting its respective map generated, since gulp-debug doesn't report the map file.

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.