Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Conversation

@francoischalifour
Copy link
Contributor

@francoischalifour francoischalifour commented Jun 29, 2018

This PR adds the InstantSearch iOS template using CocoaPods.

I made libraryName in .template.js optional 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

image

package.json Outdated
"scripts": {
"start": "node src/cli/index.js",
"test": "jest ./src",
"test:e2e:installs": "jest './scripts/e2e-installs.test.js'",
Copy link
Contributor

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?

Copy link
Contributor Author

@francoischalifour francoischalifour Jul 2, 2018

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.

@@ -0,0 +1,43 @@
const process = require('process');
Copy link
Contributor

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/... ?

Copy link
Contributor Author

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).

@@ -0,0 +1,43 @@
const process = require('process');
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@francoischalifour francoischalifour merged commit aa061f8 into master Jul 3, 2018
@francoischalifour francoischalifour deleted the feat/template-ios branch July 3, 2018 12:34
aymeric-giraudet pushed a commit to algolia/instantsearch that referenced this pull request Dec 14, 2022
* 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants