You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alan Souza edited this page May 19, 2016
·
6 revisions
This wiki page aims to explain few additional grommet-toolbox features that deviates from the regular usage but can be useful depending on your situation.
Modular loading
When you import grommet-toolbox as in: import grommetToolbox from 'grommet-toobox' all tasks will be injected into your gulp instance. If you are only interested in one particular feature (e.g. linters), you may want to load things separately. Luckily, you can do that using the following import:
importgulpfrom'gulp';import{linterTasks}from'grommet-toolbox';// or import {testTasks} from 'grommet-toolbox';// or import {devTasks} from 'grommet-toolbox';// or import {distTasks} from 'grommet-toolbox';// or import {syncTasks} from 'grommet-toolbox';// or import {linterTasks, devTasks, distTasks, syncTasks} from 'grommet-toolbox';linterTasks(gulp);// or testTasks(gulp);// ...
Load current options
If you want to access the current options instance from grommet-toolbox you can do the following: