include moment in package versions

This commit is contained in:
Brian Gough 2016-09-22 11:36:53 +01:00
parent 8b6425317f
commit 837151a395
7 changed files with 16 additions and 10 deletions

View file

@ -1,6 +1,5 @@
fs = require "fs"
PackageVersions = require "./app/coffee/infrastructure/PackageVersions"
pdfjs = PackageVersions.lib('pdfjs')
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-coffee'
@ -159,12 +158,12 @@ module.exports = (grunt) ->
inlineText: false
preserveLicenseComments: false
paths:
"moment": "libs/moment-2.9.0"
"moment": "libs/#{PackageVersions.lib('moment')}"
"mathjax": "/js/libs/mathjax/MathJax.js?config=TeX-AMS_HTML"
"libs/pdf": "libs/#{pdfjs}/pdf"
"libs/pdf": "libs/#{PackageVersions.lib('pdfjs')}/pdf"
shim:
"libs/pdf":
deps: ["libs/#{pdfjs}/compatibility"]
deps: ["libs/#{PackageVersions.lib('pdfjs')}/compatibility"]
skipDirOptimize: true
modules: [

View file

@ -1,5 +1,6 @@
version = {
"pdfjs": "1.3.91p1"
"moment": "2.9.0"
}
module.exports = {

View file

@ -126,7 +126,12 @@ html(itemscope, itemtype='http://schema.org/Product')
window.requirejs = {
"urlArgs" : "fingerprint=#{fingerprint(jsPath + 'main.js')}-#{fingerprint(jsPath + 'libs.js')}",
"paths" : {
"moment": "libs/moment-2.7.0"
"moment": "libs/#{lib('moment')}"
},
"config":{
"moment":{
"noGlobal": true
}
}
};
script(

View file

@ -101,7 +101,7 @@ block content
window.requirejs = {
"paths" : {
"mathjax": "#{buildJsPath('/libs/mathjax/MathJax.js', {cdn:false, fingerprint:false, qs:{config:'TeX-AMS_HTML'}})}",
"moment": "libs/moment-2.7.0",
"moment": "libs/#{lib('moment')}",
"libs/pdf": "libs/#{lib('pdfjs')}/pdf",
"ace": "#{lib('ace')}"
},

View file

@ -1,6 +1,6 @@
define [
"base"
"libs/moment-2.9.0"
"moment"
], (App, moment) ->
moment.locale "en", calendar:
lastDay : '[Yesterday]'
@ -16,4 +16,4 @@ define [
App.filter "relativeDate", () ->
(date) ->
moment(date).calendar()
moment(date).calendar()

View file

@ -1,8 +1,9 @@
define [
"moment"
"ide/track-changes/controllers/TrackChangesListController"
"ide/track-changes/controllers/TrackChangesDiffController"
"ide/track-changes/directives/infiniteScroll"
], () ->
], (moment) ->
class TrackChangesManager
constructor: (@ide, @$scope) ->
@reset()

View file

@ -1,5 +1,5 @@
define [
"libs/moment-2.9.0"
"moment"
"libs/angular-autocomplete/angular-autocomplete"
"libs/ui-bootstrap"
"libs/ng-context-menu-0.1.4"