Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
grunt-toggl
Advanced tools
Toggl API for Grunt. E.g. start time tracking with `grunt watch` or `grunt toggl`
Toggl API for Grunt. E.g. start time tracking with
grunt watch
orgrunt toggl
This plugin requires Grunt ~0.4.4
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-toggl --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-toggl');
In your project's Gruntfile, add a section named toggl
to the data object
passed into grunt.initConfig()
.
grunt.initConfig({
toggl: {
options: {
apiKey: '',
apiKeyFile: 'toggl.json'
workspace: null,
data: {
time_entry: {
description: '<%= pkg.name %>',
}
}
}
},
});
Your Toggl API key is required for this task. Get it from your profile on Toggl.com https://www.toggl.com/app/#profile.
Type: String
Default value: ``
This is one way to specify your Toggl.com API key.
Type: String
Default value: .toggl
This is another way to specify your Toggl API Key. Enter a filename to a textfile that contains nothing but your API key in it.
This format is useful if you keep your Gruntfile in version control and don't
want your API key in it (e.g. add your .toggl
file to your .gitignore
).
Type: Integer
Default value: null
Equivalent to options.data.time_entry.wid
. Specify the Toggl Workspace ID
that newly created time entries should go into.
Type: Object
Default value: {}
The data
object can take any values from the toggl time_entries
API
endpoint:
See this doc for the latest properties available for the API: https://github.com/toggl/toggl_api_docs/blob/master/chapters/time_entries.md
Use:
grunt toggl:MYTASK:getWorkspaces
To get a JSON list of workspaces. MYTASK
should be whatever task you have
configured, since you still need a valid API Key to get the workspaces.
OR just run the task without a wid
set.
grunt.initConfig({
toggl: {
options: {
apiKeyFile: '.toggl',
workspace: null,
}
},
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
FAQs
Toggl API for Grunt. E.g. start time tracking with `grunt watch` or `grunt toggl`
The npm package grunt-toggl receives a total of 2 weekly downloads. As such, grunt-toggl popularity was classified as not popular.
We found that grunt-toggl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.