• This repository has been archived on 06/Jul/2023
  • Stars
    star
    99
  • Rank 343,315 (Top 7 %)
  • Language
    JavaScript
  • Created almost 8 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tool for converting coffeescript to idiomatic javascript and JSX

Depercolator CircleCI

This tool is a swiss army knife for converting coffeescript files to javascript. It relies on several other tools to ease the conversion process and create idiomatic javascript and JSX.

Learn more from our blog on converting our React codebase from CoffeeScript to ES6.

Installation

npm i -g depercolator

or

yarn global add depercolator

Usage

depercolate <file> [options]

Options

  • -o, --output [filepath]: Change path of resulting file (defaults to same path as original with a different extension)
  • --skip-prettier: Do not reformat the file with prettier (default is false)

Decaffeinate options

Most options from decaffeinate can be passed through to the underlying command

  • --modernize-js: Treat the input as JavaScript and only run the JavaScript-to-JavaScript transforms, modifying the file(s) in-place.
  • --literate: Treat the input file as Literate CoffeeScript.
  • --disable-suggestion-comment: Do not include a comment with followup suggestions at the top of the output file.
  • --no-array-includes: Do not use Array.prototype.includes in generated code.
  • --use-optional-chaining: Use the upcoming optional chaining syntax for operators like ?..
  • --use-js-modules: Convert require and module.exports to import and export.
  • --loose-js-modules: Allow named exports when converting to JS modules.
  • --safe-import-function-identifiers: Comma-separated list of function names that may safely be in the import/require section of the file. All other function calls will disqualify later requires from being converted to imports.
  • --prefer-let: Use let instead of const for most variables in output code.
  • --loose: Enable all --loose... options.
  • --loose-default-params: Convert CS default params to JS default params.
  • --loose-for-expressions: Do not wrap expression loop targets in Array.from.
  • --loose-for-of: Do not wrap JS for...of loop targets in Array.from.
  • --loose-includes: Do not wrap in Array.from when converting in to includes.
  • --loose-comparison-negation: Allow unsafe simplifications like !(a > b) to a <= b.
  • --disable-babel-constructor-workaround: Never include the Babel/TypeScript workaround code to allow this before super in constructors.
  • --disallow-invalid-constructors: Give an error when constructors use this before super or omit the super call in a subclass.

Prettier options

Most options from prettier can be passed through to the underlying command

  • --no-bracket-spacing: Do not print spaces between brackets.
  • --jsx-bracket-same-line: Put > on the last line instead of at a new line.
  • --parser <flow|babylon|typescript|css|less|scss|json|graphql|markdown>: Which parser to use
  • --print-width <int>: The line length where Prettier will try wrap.
  • --no-prose-wrap: Do not wrap prose. (markdown)
  • --no-semi: Do not print semicolons, except at the beginning of lines which may need them.
  • --single-quote: Use single quotes instead of double quotes.
  • --tab-width <int>: Number of spaces per indentation level.
  • --trailing-comma <none|es5|all>: Print trailing commas wherever possible when multi-line.
  • --use-tabs: Indent with tabs instead of spaces.

More Repositories

1

bugsnag-android

BugSnag crash monitoring and reporting tool for Android apps
Kotlin
1,172
star
2

bugsnag-laravel

BugSnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
PHP
864
star
3

bugsnag-js

JavaScript error handling tool for BugSnag. Monitor and report JavaScript bugs & errors.
TypeScript
836
star
4

bugsnag-php

BugSnag error monitoring and crash reporting tool for PHP apps
PHP
545
star
5

bugsnag-react-native

Error monitoring and reporting tool for native exceptions and JS errors in React Native apps
JavaScript
369
star
6

bugsnag-psr-logger

BugSnag's PHP PSR logger implementation
PHP
298
star
7

bugsnag-ruby

BugSnag error monitoring & reporting software for rails, sinatra, rack and ruby
Ruby
245
star
8

bugsnag-cocoa

BugSnag error monitoring & exception reporter for iOS, macOS, tvOS and watchOS
Objective-C
225
star
9

bugsnag-go

Automatic panic monitoring for Go and Go web frameworks, like negroni, gin, and revel
Go
201
star
10

chromatic-sass

Advanced color manipulation for node sass
CoffeeScript
147
star
11

kotlin-multiplatform-example

A Kotlin multiplatform example app that targets Android, ReactJS, iOS, JavaFx, and Spring Boot
Kotlin
115
star
12

bugsnag-unity

Automatic error reporting for Unity games
C#
88
star
13

bugsnag-python

Official BugSnag error monitoring and error reporting for django, flask, tornado and other python apps.
Python
84
star
14

bugsnag-android-gradle-plugin

Gradle plugin for BugSnag which uploads ProGuard, DexGuard and NDK mapping files, and sends build notifications
Kotlin
70
star
15

bugsnag-dotnet

.NET notifier for BugSnag. Error monitoring and error reporting for .NET.
C#
58
star
16

bugsnag-java

BugSnag error reporting for Java.
Java
55
star
17

bugsnag-sourcemaps

This package has been deprecated and replaced by https://github.com/bugsnag/bugsnag-source-maps. The new tool caters for all source map upload use cases: browser, node and React Native. Please upgrade at your earliest convenience.
JavaScript
52
star
18

bugsnag-node

[DEPRECATED] Please upgrade to our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
JavaScript
48
star
19

bugsnag-symfony

BugSnag notifier for the Symfony PHP framework. Monitor and report errors in your Symfony apps.
PHP
42
star
20

bugsnag-android-ndk

DEPRECATED - this project now lives at bugsnag/bugsnag-android
C
39
star
21

bugsnag-dsym-upload

Scripts and Fastlane tasks for uploading dSYM files to BugSnag
Ruby
36
star
22

bugsnag-react

[DEPRECATED] This package now lives within the monorepo for our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
JavaScript
36
star
23

webpack-bugsnag-plugins

Webpack plugins for common BugSnag actions.
JavaScript
32
star
24

sourcemaps.info

A repository of sourcemappery
HTML
29
star
25

bugsnag-vue

[DEPRECATED] This package now lives within the monorepo for our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
JavaScript
26
star
26

bugsnag-api-ruby

BugSnag API toolkit for Ruby
Ruby
21
star
27

bugsnag-wordpress

BugSnag error monitoring for WordPress sites
PHP
20
star
28

bugsnag-source-maps

CLI and JS library for uploading source maps to BugSnag
JavaScript
16
star
29

bugsnag-magento

(deprecated) BugSnag error monitoring for Magento (v1) stores.
PHP
14
star
30

bugsnag-agent

A forwarding agent for BugSnag to guarantee minimal reporting impact.
Python
14
star
31

bugsnag-notification-plugins

Notification plugins for the Bugsnag error tracker
11
star
32

bugsnag-expo

JavaScript
10
star
33

bugsnag-cocoa-performance

Monitor the start-up, screen loading and network requests of your iOS app and see the results in your BugSnag dashboard.
Objective-C++
10
star
34

bugsnag-silex

The BugSnag middleware for Silex. Monitor and report errors in your Silex PHP apps.
PHP
9
star
35

bugsnag-notifier-api

The notifier API used by bugsnag.com
9
star
36

bugsnag-flutter

BugSnag crash reporting for Flutter apps
Dart
9
star
37

safe-json-stringify

A wrapper for JSON.stringify that handles circular references
JavaScript
8
star
38

maze-runner

An integration test runner for validating requests
Ruby
8
star
39

bugsnag-angular

[DEPRECATED] This package now lives within the monorepo for our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
TypeScript
7
star
40

react-inline-svg

React Component to load and inline SVG images, allowing you to target and style SVGs using CSS.
JavaScript
7
star
41

bugsnag-unreal

BugSnag crash monitoring and reporting plugin for Unreal Engine games
C++
7
star
42

cocoapods-bugsnag

A CocoaPods plugin to integrate bugsnag into your project workspace
Ruby
7
star
43

apple-crash-report-uploader

A tool to upload iOS crash reports to BugSnag
Ruby
5
star
44

screensaver

A bugsnag screensaver
Objective-C
4
star
45

bugsnag-js-performance

Monitor the performance of your JavaScript (web and React Native) and see the results in your BugSnag dashboard.
TypeScript
4
star
46

panic-monitor

program launcher which automatically reports go panics to BugSnag
Go
4
star
47

bugsnag-build-reporter-node

A tool for reporting your application's builds to BugSnag
JavaScript
4
star
48

license-audit

Performs a licensing audit on named repositories to check for compliance with company policy
HTML
3
star
49

bugsnag-cli

CLI for uploading symbol files and creating releases on your BugSnag dashboard
Go
3
star
50

bugsnag-node-segfault

JavaScript
3
star
51

bugsnag-em

The Bugsnag notifier for EventMachine
Ruby
3
star
52

bugsnag-android-performance

Monitor the start-up, screen loading and network requests of your Android app and see the results in your BugSnag dashboard.
Kotlin
3
star
53

llvm

Our fork of llvm
LLVM
1
star
54

StringMemory

Objective-C
1
star
55

test-bugsnag-android-r8

Testing generating R8 mapping files for Bugsnag Android
Java
1
star
56

bugsnag-cocos2dx

Automatic error reporting for Cocos2d-x games written in C++
C++
1
star
57

bugsnag-challenge

Ruby
1
star
58

unity-proguard-example

A Unity project with Bugsnag integrated that runs on Android with Proguard enabled in an exported Gradle project
Objective-C
1
star
59

bugsnag-unity-performance

Monitor the start-up, scene loading and network requests of your Unity game and see the results in your BugSnag dashboard.
ShaderLab
1
star
60

bugsnag-flutter-dart-io-http-client

A wrapper for Dart's IO package for BugSnag SDKs.
Dart
1
star
61

bugsnag-flutter-http-client

A wrapper for Dart's HTTP package for BugSnag SDKs.
Dart
1
star