-
Notifications
You must be signed in to change notification settings - Fork 28
feat(templates): Add iOS template #69
Conversation
package.json
Outdated
| "scripts": { | ||
| "start": "node src/cli/index.js", | ||
| "test": "jest ./src", | ||
| "test:e2e:installs": "jest './scripts/e2e-installs.test.js'", |
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 reason to use single quotes rather than nothing?
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.
I can remove them, it works without quotes now. I think it used to get processed as a regex before and couldn't find the files.
packages/tasks/ios/install.js
Outdated
| @@ -0,0 +1,43 @@ | |||
| const process = require('process'); | |||
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.
Why this file is in packages/... rather than src/tasks/... ?
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.
You're right, this folder shouldn't be there anymore (rebased from the old architecture).
packages/tasks/ios/install.js
Outdated
| @@ -0,0 +1,43 @@ | |||
| const process = require('process'); | |||
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 this file is really used? Seems that we do the same logic in the template's tasks?
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.
Indeed, I'll reuse the tasks in .template.js.
* feat(tasks): Support iOS * feat(template): Add iOS template * feat(template): Update iOS template * test(snapshots): Update iOS snapshots * chore(scripts): Add e2e installs script * test(installs): Test installation with Cocoapods * build(travis): Install CocoaPods * feat: Allow `libraryName` omission in templates * chore(scripts): Remove unnecessary quotes in Jest scripts
This PR adds the InstantSearch iOS template using CocoaPods.
I made
libraryNamein.template.jsoptional as well in this PR (until algolia/instantsearch#5198 is implemented as dependency strategy).This way, the InstantSearch version is not asked in the CLI.
Preview