Giter VIP home page Giter VIP logo

atom-sugarify's Introduction

Sugarify

Sugarify is an atom package for sorting RequireJS requires.

How do I use it?

Press ctrl+shift+s.

What does it do?

Sugarify lets you turn something like this:

const Egg = require('ingredients/animal/egg');
const Backbone = require('backbone');
const Oven = require('tools/appliances/oven');
const exceptions = require('lib/exceptions');
const BakingPowder = require('ingredients/powders/bakingPowder');
const Cake = require('recipes/cake');
const Flour = require('ingredients/powders/flour');
const Pan = require('tools/pan');
require('vendor/backbone/plugins/stickit');
const Q = require('q');
const Bowl = require('tools/bowl');
const Whisk = require('tools/whisk');
const _ = require('underscore');
const React = require('react');
require('css!css/main.css');
const Milk = require('ingredients/dairy/milk');
require('vendor/jquery/plugins/slideshow');
const Butter = require('ingredients/dairy/butter');
const Sugar = require('ingredients/sweets/sugar');
const $ = require('jquery');
const Vanilla = require('ingredients/flavors/vanilla');
const template = require('templates/app.html');

class BakeryApp extends React.Component {
  // Bake a cake!
}

module.exports = BakeryApp;

into this:

const Backbone = require('backbone');
const $ = require('jquery');
const Q = require('q');
const React = require('react');
const _ = require('underscore');

const Egg = require('ingredients/animal/egg');
const Butter = require('ingredients/dairy/butter');
const Milk = require('ingredients/dairy/milk');
const Vanilla = require('ingredients/flavors/vanilla');
const BakingPowder = require('ingredients/powders/bakingPowder');
const Flour = require('ingredients/powders/flour');
const Sugar = require('ingredients/sweets/sugar');

const exceptions = require('lib/exceptions');

const Cake = require('recipes/cake');

const template = require('templates/app.html');

const Oven = require('tools/appliances/oven');
const Bowl = require('tools/bowl');
const Pan = require('tools/pan');
const Whisk = require('tools/whisk');

require('css!css/main.css');
require('vendor/backbone/plugins/stickit');
require('vendor/jquery/plugins/slideshow');

class BakeryApp extends React.Component {
  // Bake a cake!
}

module.exports = BakeryApp;

atom-sugarify's People

Contributors

wbowers-coursera avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.