Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

strip_maps.sh fails for unknown reasons #18

Closed
matteosuppo opened this issue Apr 19, 2015 · 3 comments
Closed

strip_maps.sh fails for unknown reasons #18

matteosuppo opened this issue Apr 19, 2015 · 3 comments

Comments

@matteosuppo
Copy link

$ sh strip_maps.sh 
sed: can't read : No such file or directory

But the file exists:

$ ls dist/es6-shim.js 
dist/es6-shim.js
@nalbion
Copy link

nalbion commented Apr 22, 2015

I experienced the same error. The command seems to be doing what it needs to, so I instructed gulp_shell to ignore the error:

// strip off the sourceMaps.
gulp.task('build:strip_maps', shell.task(["sh strip_maps.sh"], {ignoreErrors:true}));

...that seemed to result in an empty dist/es6-shim.js file - not much use.

What did work, was to add || true at the end of strip_maps.sh:

sed -e '/^\/\/\# source/d' -i '' dist/es6-shim.js || true

@davideast
Copy link
Member

We're going to be migrating off of this quickstart soon in lieu of a better solution.

Don't run any commands within this repo. The strip_maps file is not meant to ran in isolation either.

@wardbell
Copy link
Contributor

Closed. Obsolete.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants