This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 個別で js を minify して gzip したかったので、こんな感じになった | |
| // ファイル名などにスペースが入ってた時どうするのか | |
| module.exports = function(grunt) { | |
| 'use strict'; | |
| var src = 'shared/js/*.js', | |
| files = grunt.file.expandFiles(src), | |
| suffix = '.min', | |
| minFiles = {}, | |
| gzFiles = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Singleton | |
| # We can make private variables! | |
| instance = null | |
| # Static singleton retriever/loader | |
| @get: -> | |
| if not @instance? | |
| instance = new @ | |
| instance.init() | |