Replace grunt with webpack to get babel ES6 transpiling

Open
#1,039 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
babel, javascript, webpack

Research direction

Start by reading the existing 500-line Grunt file and checking the project’s old Grunt-related dependencies. Review the linked grunt-contrib-uglify issue and decide whether the migration will use webpack with Babel or npm scripts; done means the chosen build path transpiles the project’s newer JavaScript successfully.

Written by the indexing model from the issue text.

Description

bug needs discussion

After some reading, it appears that grunt-contrib-uglify is built on uglify-js, and uglifyJs doesn't support these new features 'yet'. We're on grunt-contrib 1.x, and there is a 3.x, but it still has this issue.
https://github.com/gruntjs/grunt-contrib-uglify/issues/477

grunt-babel looks promising as a transpiler before the uglification step, but its running into dependency errors, likely because our version of grunt, and associated modules, are very old.

  1. One solution would be to migrate grunt to the latest version, do whatever reworking of syntax/config is necessary and add in the new uglify-es, or babel transpiler.

  2. Alternatively, we could also try to replace our 500 line grunt file with npm scripts instead.

  3. We probably want a transpiler in any case, its strange that we haven't had one until now.

Dominant language
JavaScript
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ucdavis/ipa-client-angular

All issues in ucdavis/ipa-client-angular

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.