Skip to content

Commit

Permalink
Updated README with new npm script for building ffe-icons from an app
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Feb 12, 2016
1 parent 759429d commit 5bd3a36
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,16 @@ Example `icons.json`:
```

Then start the build by running ffe-icons gulpfile. Pass in the path to your `icons.json` file as
the `--opts` argument, here assuming `icons.json` is in the same directory as your `node_modules`:

`$ cd ./node_modules/ffe-icons && node ./node_modules/gulp/bin/gulp --opts=../../icons.json && cd ../../`

The command above is a typical npm script candidate. In your projects `package.json`:
To have npm be able to find the gulp dependency of ffe-icons in node_modules gulp has to be started from npm.
In your projects `package.json`:

```
{
"name": "awesome-client",
"scripts": {
...
"ffe:icons": "cd ./node_modules/ffe-icons && node ./node_modules/gulp/bin/gulp --opts=../../icons.json && cd ../../",
"ffe:icons": "gulp --no-color --gulpfile node_modules/ffe-icons/gulpfile.js --opts=../../icons.json",
"#": "--gulpfile sets the cwd to be the dir containing the gulpfile, so --opts has to step up two dirs to find icons.json"
...
}
}
Expand Down

0 comments on commit 5bd3a36

Please sign in to comment.