CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-coffeescript

tessl install tessl/npm-coffeescript@2.7.0

A programming language that compiles into JavaScript, offering more concise and readable syntax while maintaining full JavaScript compatibility.

Agent Success

Agent success rate when using this tile

77%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.01x

Baseline

Agent success rate without this tile

76%

task.mdevals/scenario-6/

Build Task Manager

A simple build automation system for a web project that compiles source files, runs tests, and deploys the application.

Capabilities

Basic Task Definition

  • Running cake compile prints "Compiling source files...", executes coffee -c -o lib/ src/, then prints "Compilation complete!" @test

  • Running cake test prints "Running tests...", executes npm test, then prints "Tests complete!" @test

  • Running cake clean prints "Cleaning build directory...", executes rm -rf lib/, then prints "Clean complete!" @test

Task Invocation

  • Running cake build prints "Starting full build...", invokes the clean, compile, and test tasks in sequence, then prints "Build complete!" @test

Option Definition and Usage

  • Running cake deploy prints "Deploying to development..." and executes npm run deploy (using default environment) @test

  • Running cake deploy -e production prints "Deploying to production..." and executes npm run deploy @test

Implementation

@generates

API

# Define a task with name, description, and action function
task 'taskname', 'Description', (options) ->
  # Task implementation
  # options contains command-line flags

# Define a command-line option
option '-s', '--longname [VALUE]', 'Description'

# Invoke another task by name
invoke 'othertask'

# Execute shell commands (from child_process module)
{exec} = require 'child_process'
exec 'command', (err, stdout, stderr) ->
  # Handle command output

Dependencies { .dependencies }

CoffeeScript { .dependency }

CoffeeScript compiler providing the Cake build system and task definitions.

@satisfied-by

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/coffeescript@2.7.x
tile.json