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

feat(templates): Warn facets usage with React Native template #56

Merged
merged 1 commit into from
Jun 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion templates/React InstantSearch Native/.template.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
const chalk = require('chalk');
const install = require('../../packages/tasks/node/install');
const teardown = require('../../packages/tasks/node/teardown');

module.exports = {
libraryName: 'react-instantsearch-native',
templateName: 'react-instantsearch-native',
appName: 'react-instantsearch-native-app',
keywords: ['algolia', 'instantSearch', 'react', 'react-native', 'react-instantsearch-native'],
keywords: [
'algolia',
'instantSearch',
'react',
'react-native',
'react-instantsearch-native',
],
tasks: {
setup(config) {
if (!config.silent && config.attributesForFaceting) {
console.log();
console.log(
`⚠️ The ${chalk.cyan(
'attributesForFaceting'
)} option is not supported in this template.`
);
console.log();
}

return Promise.resolve();
},
install,
teardown,
},
Expand Down