-
Notifications
You must be signed in to change notification settings - Fork 4
Promisy fun #110
New issue
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
Promisy fun #110
Conversation
| combined tasks: | ||
| * gulp dev-packed - creates addon packages and watches for changes | ||
| * gulp dev-unpacked - creates directories with addon files and watches all for changes | ||
| 3. See the list of gulp tasks build or watch changes to files and compile extensions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With dev tasks removed from the doc, we need to change the lines below that say "Run one of the dev-___ tasks above".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does 382d507 fix this?
| } | ||
| javascript_src = function({source, destination}) { | ||
| return function() { | ||
| console.log(`gather src ${source}/*.js files`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, my vim syntax highlighter hates this /* part now. It thinks that it's commenting out the entire file after this.
src/issue.js
Outdated
| scrolling: "no", | ||
| seamless: "seamless" | ||
| } | ||
| const make_widget_appender = (domain) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a rhyme or reason for using arrow functions vs. declared functions? (e.g., make_widget_appender vs. on_github_pages)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
artistic license? Actually, I'm settling on named functions if it longer than one line.
| #### publish-{browser}-file | ||
| * **publish-firefox-file**: create xpi for FF prod | ||
| * **publish-chrome-file**: create zip for chrome and opera | ||
| * **publish-all**: creates all browser extension files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I try to run any of these gulp tasks, I get:
Error: Task requires a name that is a string
at Gulp.Orchestrator.add (/Users/lcrouch/code/codesy/widgets/node_modules/orchestrator/index.js:41:10)
at Object.<anonymous> (/Users/lcrouch/code/codesy/widgets/gulpfile.js:146:10)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.require (module.js:500:17)
at require (internal/module.js:20:19)
at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d580d3a should fix this.
|
Still getting errors during gulp ... |
|
hmm? |
src/on_install.js
Outdated
| } | ||
|
|
||
| when_installed = ({reason}) => { | ||
| when_installed ({reason}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be:
function when_installed({reason}) {
...
}
Another refactor to speed up load time. It work but comes with a recursive promise chain -- looking forward to a good discussion before merging.