Skip to content

Commit

Permalink
Merge pull request #1 from skellock/fix-deprecations
Browse files Browse the repository at this point in the history
Fixes deprecations before launch.
  • Loading branch information
dabit3 committed Mar 6, 2017
2 parents 069f86e + 49fc0e2 commit 103fb1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
3 changes: 0 additions & 3 deletions ignite.toml

This file was deleted.

6 changes: 2 additions & 4 deletions package.json
@@ -1,8 +1,6 @@
{
"name": "ignite-elements",
"description": "Adds react-native-elements support to Ignite.",
"version": "0.2.0",
"devEngines": {
"node": ">=7.x",
"npm": ">=4.x"
}
"repository": "dabit3/ignite-elements"
}
10 changes: 4 additions & 6 deletions index.js → plugin.js
Expand Up @@ -3,17 +3,15 @@

const RNElements = 'react-native-elements'
const EXAMPLE_FILE = 'ElementsExample.js'
const PLUGIN_PATH = __dirname
const APP_PATH = process.cwd()

const add = async function (context) {
const { ignite, filesystem } = context
const { ignite } = context

// install a npm module and link it
await ignite.addModule(RNElements)

// copy the component example file (if examples are turned on)
await ignite.addComponentExample(EXAMPLE_FILE, { title: 'Elements Example' })
await ignite.addPluginComponentExample(EXAMPLE_FILE, { title: 'Elements Example' })

// Example of copying templates/Elements to App/Elements
// if (!filesystem.exists(`${APP_PATH}/App/Elements`)) {
Expand All @@ -31,13 +29,13 @@ const add = async function (context) {
* Remove yourself from the project.
*/
const remove = async function (context) {
const { ignite, filesystem, patching } = context
const { ignite } = context

// remove the npm module and unlink it
await ignite.removeModule(RNElements)

// remove the component example
await ignite.removeComponentExample(EXAMPLE_FILE)
await ignite.removePluginComponentExample(EXAMPLE_FILE)

// Example of removing App/Elements folder
// const removeElements = await context.prompt.confirm(
Expand Down

0 comments on commit 103fb1b

Please sign in to comment.