mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
converted moment to external dependency
This commit is contained in:
parent
0af5083d4c
commit
f3274c22b3
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
6012
static/index.html
6012
static/index.html
File diff suppressed because it is too large
Load diff
2
static/js/moment.min.js
vendored
2
static/js/moment.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue