Giter Site home page Giter Site logo

dschmidt / ember-cli-ramdisk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from futureproofretail/ember-cli-ramdisk

0.0 2.0 0.0 93 KB

Replaces your broccoli tmp/ folder w ram disk for faster builds (?) / minimal SSD thrashing

License: MIT License

JavaScript 100.00%

ember-cli-ramdisk's Introduction

NOTE:

This addon isn't as useful as it use to be. See the Impact section below.

ember-cli-ramdisk

ember-cli addon that mounts your broccoli tmp folder in RAM for speedier builds.

Presently only supports OS X (Darwin) and Linux.

Installation

From your ember-cli project folder:

npm install ember-cli-ramdisk --save-dev

Motivation

ember-cli uses Broccoli as a build tool, and Broccoli uses a tmp folder in your project's directory for storing intermediate files during the build process, which means they are getting stored on your hard drive.

Most operating systems allow you to mount file systems into memory, which results in faster read/write operations with the obvious tradeoff being that if your computer restarts, you'll lose any data mounted on the ramdisk.

But for temporary folders that are often read/written into, you can get some performance gains by mounting them to a ramdisk, which is what this ember addon does.

Impact

At this point, if you're using an up-to-date version of ember-cli, you probably won't notice an improvement in build times from this addon.

Another use case for this addon is to prevent things like:

Details

This addon will:

  1. Mount a ramdisk at
  • OS X - /Volumes/EmberCliRamdisk
  • Linux - /mnt/EmberCliRamdisk
  1. Replace your project's tmp folder with a symlink to /Volumes/EmberCliRamdisk/your-project-name or /mnt/EmberCliRamdisk/your-project-name

Multiple projects can use this addon and share the same ramdisk.

The ramdisk does not automatically unmount after you kill broccoli, but can easily be unmounted from the side menu in Finder.

To unmount the ramdisk in linux you must run sudo umount /mnt/EmberCliRamdisk and sudo rm -R /mnt/EmberCliRamdisk/.

TODO

  1. Tests
  2. Support for OSs other than Mac (darwin) and Linux
  3. Replace execSync with something nicer (can't right now since include doesn't wait for any returned promises)

ember-cli-ramdisk's People

Contributors

machty avatar dschmidt avatar stefanpenner avatar miguelcobain avatar jasonmit avatar

Watchers

 avatar James Cloos 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.