azu / azu/gulp-remove-use-strict

remove use strict does not work

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Need More Info
Dominant language
JavaScript
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Description

const gulp = require('gulp')
const del = require('del')
const removeUseStrict = require('gulp-remove-use-strict')

gulp.task('remove-strict', ['remove-strict:clean'], function () {
return gulp.src('./dist/static/js/*.js')
.pipe(removeUseStrict())
.pipe(gulp.dest('./dist/newJS/'))
})
gulp.task('remove-strict:clean', [], function () {
return del(['./dist/newJS/'], { force: true })
})

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Gulp task against the files matched by ./dist/static/js/*.js and compare the results written to ./dist/newJS/. Inspect the removeUseStrict() step and verify whether the generated JavaScript still contains strict-mode directives; done means the task reliably removes them.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.