New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-cozy-app

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-cozy-app

Babel preset for Cozy Application (Cozy Cloud)

  • 0.3.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
83
decreased by-72.33%
Maintainers
1
Weekly downloads
 
Created
Source

npm NPM Licence shield npm dependencies Status Renovate enabled

babel-preset-cozy-app

A shareable configuration for Cozy Application with React and JSX support.

This package is a Babel preset used by create-cozy-app.

Usage with a Create Cozy App projects

If you started your project using create-cozy-app, you don't need to do anything, you should already have a .babelrc configured to used this preset.

Usage with other projects

If you want to use this preset, you first need to have Babel installed (cf documentation).

Then, in a file named .babelrc (the Babel configuration file), you can use the preset using the following way:

{
    "presets": ["cozy-app"]
}

Content

Presets:
  • env to add polyfills with the current configuration:

    {
      targets: {
        chrome: 42,
        ie: 10,
        firefox: 40,
        browsers: ['last 2 versions']
      },
      useBuiltIns: false
    }
    
  • react to support JSX and transform it to createElement calls.

Plugins:
  • transform-object-rest-spread to transform rest properties for object destructuring assignment and spread properties for object literals. The useBuiltIns options is enable to directly use Object.assign considered as available or polyilled.

  • transform-class-properties to transform class attributes and methods with auto-binding to the class instance and no constructor needed.

  • transfor-runtime only to polyfill generators (for async/await) here:

    {
      helpers: false,
      polyfill: false,
      regenerator: true
    }
    

Community

What's Cozy?

Cozy Logo

Cozy is a platform that brings all your web services in the same private space. With it, your webapps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one's tracking you.

Get in touch

You can reach the Cozy Community by:

License

babel-preset-cozy-app is distributed under the MIT license.

FAQs

Package last updated on 12 Nov 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc