gulp-wrap-amd icon indicating copy to clipboard operation
gulp-wrap-amd copied to clipboard

update packages and remove gulp-util

Open prma85 opened this issue 5 years ago • 11 comments

prma85 avatar Jan 20 '20 21:01 prma85

I'm open to this. Can I help resolve the issues? I'd also love to include you on the project and transfer it to "gulp community". Thoughts?

phated avatar Jan 21 '20 00:01 phated

Hey @phated. Thanks for the reply. I think it is a good idea.

The issue is basically in the template.js when running compile, it moves the /r of position and the test fails. It is probably because of the updates and need to update the tests and try it in a project to make sure.

prma85 avatar Jan 21 '20 01:01 prma85

image

Just checking this out, and works normally in windows the test. But checking on travis, the error is just the \r not being added:

FOUND:  re,exports,module){\n\nreturn function()
WANTED: re,exports,module){\r\n\r\nreturn function()

prma85 avatar Jan 21 '20 16:01 prma85

Hey @phated Did you have the change to take a look at this?

prma85 avatar Sep 15 '20 20:09 prma85

@prma85 sorry for the delay. I'm just realizing that you manually edited the template.js file instead of editing https://github.com/phated/gulp-wrap-amd/blob/master/templates/amd.jst then running npm run compile to generate the template.js file.

Could you make those changes?

phated avatar Sep 22 '20 03:09 phated

@prma85 sorry for the delay. I'm just realizing that you manually edited the template.js file instead of editing https://github.com/phated/gulp-wrap-amd/blob/master/templates/amd.jst then running npm run compile to generate the template.js file.

Could you make those changes?

I was sure that I didn't these updates. But I ran the compile again. Looks all good.

So, the issue is that when running on windows, the compile adds the /r in the template, and when running it on mac/linux (was I was using today and what is used by the circle ci), it removes the /r

I was also trying to update tap but it causes 5 tests to fail. The names for the generated template and for the expected doesn't match 🤔

prma85 avatar Sep 22 '20 08:09 prma85

should be all good now ;)

prma85 avatar Sep 22 '20 08:09 prma85

@prma85 Sorry if there was a misunderstanding but you need to check in the .jst file. I don't see the updates to that file in your PR.

phated avatar Sep 24 '20 20:09 phated

@prma85 Sorry if there was a misunderstanding but you need to check in the .jst file. I don't see the updates to that file in your PR.

@phated I got what you mean I didn't change this file the changes were the result between generating it in the windows and in a max/linux and also update of loadash

running into in my mac removed part of the changes the changes

prma85 avatar Sep 24 '20 21:09 prma85

Why are we regenerating the file at all then?

phated avatar Sep 24 '20 22:09 phated

Why are we regenerating the file at all then?

This is generated when you run the compile command 🤔

prma85 avatar Sep 24 '20 22:09 prma85