Skip to main content

Configure

Pine can be configured via the configure function, which accepts:

With object

The object will be merged into the existing configuration.

import { configure } from '@pinefile/pine';

configure({
// see options
});

export default {
// tasks
};

With function

The function will be given the existing configuration and the task name as a optional argument. The function should return a plain JavaScript object which will be merged into the existing configuration.

import { configure } from '@pinefile/pine';

configure((config) => ({
// see options
}));

export default {
// tasks
};

Options

You can see all current options for configure here

Get config

You can always get the current configuration with getConfig function:

import { getConfig } from '@pinefile/pine';

export default {
config: () => {
const config = getConfig();
console.log(config);
},
};