converted moment to external dependency

This commit is contained in:
Marco Pagani 2020-11-17 23:30:37 -05:00
parent 0af5083d4c
commit f3274c22b3
5 changed files with 2740 additions and 3292 deletions

View file

@ -12,14 +12,7 @@ sass.compiler = require("dart-sass");
let eslintConfig = {
parser: "babel-eslint",
globals: [
"jQuery",
"$",
"firebase",
"moment",
"html2canvas",
"ClipboardItem",
],
globals: ["jQuery", "$", "firebase", "html2canvas", "ClipboardItem"],
envs: ["es6", "browser", "node"],
rules: {
"constructor-super": "error",

View file

@ -12,7 +12,7 @@
"deploy:live": "npm run build && firebase deploy -P live"
},
"engines": {
"node": "10"
"node": ">=10"
},
"devDependencies": {
"@babel/core": "^7.12.3",
@ -45,6 +45,7 @@
"@babel/runtime": "^7.12.5",
"chart.js": "^2.9.4",
"chartjs-plugin-annotation": "^0.5.7",
"chartjs-plugin-trendline": "^0.2.2"
"chartjs-plugin-trendline": "^0.2.2",
"moment": "^2.29.1"
}
}

View file

@ -1,9 +1,11 @@
//this file should be concatenated at the top of the legacy js files
// this file should be concatenated at the top of the legacy js files
import Chart from "chart.js";
import chartTrendline from "chartjs-plugin-trendline";
import chartAnnotation from "chartjs-plugin-annotation";
import moment from "moment";
Chart.plugins.register(chartTrendline);
Chart.plugins.register(chartAnnotation);

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long