You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried running npm run release, but uglify-js was throwing a syntax error. I realized that I also needed babel-preset-es2015 for it to work. Then adding the preset in the release command works: browserify lib/index.js -o dist/github-calendar.min.js -s GitHubCalendar && babel --presets es2015 dist/github-calendar.min.js | uglifyjs -c -m -o dist/github-calendar.min.js
Or, adding babel config to package.json:
"babel": {
"presets": ["es2015"]
}
I think it would be a good idea to have everything that the release command uses be declared in devDependencies in the package.json, something like:
I tried running
npm run release
, butuglify-js
was throwing a syntax error. I realized that I also neededbabel-preset-es2015
for it to work. Then adding the preset in the release command works:browserify lib/index.js -o dist/github-calendar.min.js -s GitHubCalendar && babel --presets es2015 dist/github-calendar.min.js | uglifyjs -c -m -o dist/github-calendar.min.js
Or, adding babel config to package.json:
I think it would be a good idea to have everything that the release command uses be declared in devDependencies in the package.json, something like:
There could also be a note in the
CONTRIBUTING.md
about this. 📝The text was updated successfully, but these errors were encountered: