This file contains 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
var ngAnnotate = require('ng-annotate'); | |
var utils = require('loader-utils'); | |
var SourceMapConsumer = require('source-map').SourceMapConsumer; | |
var SourceMapGenerator = require('source-map').SourceMapGenerator; | |
module.exports = function(content, sm) { | |
var filename = utils.getCurrentRequest(this); | |
var res = ngAnnotate(content, { | |
add : true, |
This file contains 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
//module Main | |
exports.requestAnimationFrame = function (eff) { | |
return function requestFrame() { | |
return window.requestAnimationFrame(eff()); | |
}; | |
}; |
This file contains 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
module Main where | |
import Prelude | |
import Data.Maybe | |
import Control.Monad.Eff.Console (print) | |
import Data.Foldable (class Foldable, foldl) | |
import Control.Alt ((<|>)) | |
type FileSize = Int | |
data Path = Path FileSize | Missing |
This file contains 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
module ClickCounter where | |
import Prelude | |
import Component as C | |
import Pux.Html as H | |
import Pux.Html.Events as E | |
import Data.Generic (class Generic) | |
type State = Int |
This file contains 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
module Main where | |
import HeroPrelude | |
import Component as C | |
import Counter as Counter | |
import Data.String as String | |
import Pux as Pux | |
import Pux.Html as H | |
import Pux.Router as PuxRouter | |
import TypeHere as TypeHere |