We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step to reproduce:
Create banner.js:
banner.js
var banner = require('add-banner'); console.log('Adding banner to smartbanner.min.js'); banner('./dist/smartbanner.min.js', {username: 'ain'});
Create NPM script bannerise with node banner.js
bannerise
node banner.js
Run npm run bannerise
npm run bannerise
What happens:
$ npm run bannerise > smartbanner.js@0.0.1 bannerise /Users/ain/Documents/projects/smartbanner.js > node banner.js Adding banner to smartbanner.min.js
Nothing is written to dist/smartbanner.min.js.
dist/smartbanner.min.js
What should happen: default banner should be written to dist/smartbanner.min.js in respect to package.json.
package.json
Platform:
$ node --version v6.2.0
The text was updated successfully, but these errors were encountered:
My bad. One has to handle banner() output manually.
banner()
Module could use a CLI in a bin/ to automate this for the NPM scripts.
bin/
Sorry, something went wrong.
I was going to say that in the tweet, I agree. I thought I did add a CLI, I guess not
No branches or pull requests
Step to reproduce:
Create
banner.js
:Create NPM script
bannerise
withnode banner.js
Run
npm run bannerise
What happens:
Nothing is written to
dist/smartbanner.min.js
.What should happen: default banner should be written to
dist/smartbanner.min.js
in respect topackage.json
.Platform:
The text was updated successfully, but these errors were encountered: