Skip to content

Commit

Permalink
Merge branch 'MDL-75012-39-5' of https://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
… into MOODLE_39_STABLE
  • Loading branch information
junpataleta committed Mar 2, 2023
2 parents 457d2b5 + 45947bc commit 1210127
Show file tree
Hide file tree
Showing 437 changed files with 3,472 additions and 8,127 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
lts/gallium
lts/hydrogen
20 changes: 16 additions & 4 deletions .stylelintrc
@@ -1,9 +1,14 @@
{
"customSyntax": "postcss-scss",
"plugins": [
"stylelint-csstree-validator"
],
"rules": {
"csstree/validator": true,
"csstree/validator": {
"syntaxExtensions": [
"sass"
]
},
"at-rule-empty-line-before": [ "always",
{"except": [ "blockless-after-blockless"], ignore: ["after-comment", "inside-block"]}
],
Expand Down Expand Up @@ -45,7 +50,7 @@
"function-name-case": "lower",
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never-single-line",
"function-url-scheme-blacklist": ["data"],
"function-url-scheme-disallowed-list": ["data"],
"function-whitespace-after": "always",
"indentation": 4,
"keyframe-declaration-no-important": true,
Expand Down Expand Up @@ -84,12 +89,19 @@
"selector-type-no-unknown": true,
"string-no-newline": true,
"time-min-milliseconds": 100,
"unit-blacklist": ["pt"],
"unit-disallowed-list": ["pt"],
"unit-case": "lower",
"unit-no-unknown": true,
"value-keyword-case": ["lower", {"ignoreKeywords": ["/(@|$)/"]}],
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
}
},
"overrides": [
{
"files": ["**/yui/**/*.css"],
"rules": {
}
}
]
}
26 changes: 12 additions & 14 deletions Gruntfile.js
Expand Up @@ -80,7 +80,9 @@ const registerStyleLintTasks = (grunt, files, fullRunDir) => {
return {
stylelint: {
scss: {
options: {syntax: 'scss'},
options: {
customSyntax: 'postcss-scss',
},
src: files,
},
},
Expand Down Expand Up @@ -219,7 +221,7 @@ module.exports = function(grunt) {
}

/**
* Function to generate the destination for the uglify task
* Function to generate the destination for the minification task
* (e.g. build/file.min.js). This function will be passed to
* the rename property of files array when building dynamically:
* http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically
Expand Down Expand Up @@ -348,7 +350,7 @@ module.exports = function(grunt) {
};
};

const terser = require('rollup-plugin-terser').terser;
const terser = require('@rollup/plugin-terser');

// Project configuration.
grunt.initConfig({
Expand All @@ -374,6 +376,13 @@ module.exports = function(grunt) {
sourcemap: true,
treeshake: false,
context: 'window',

// Treat all modules as external and do not try to resolve them.
// https://rollupjs.org/configuration-options/#external
// We do not need to resolve them as each module is transpiled individually and there is no tree shaking
// or combining of dependencies.
external: true,

plugins: [
rateLimit({initialDelay: 0}),
babel({
Expand All @@ -397,16 +406,6 @@ module.exports = function(grunt) {
],
presets: [
['@babel/preset-env', {
targets: {
browsers: [
">0.25%",
"last 2 versions",
"not ie <= 10",
"not op_mini all",
"not Opera > 0",
"not dead"
]
},
modules: false,
useBuiltIns: false
}]
Expand Down Expand Up @@ -905,7 +904,6 @@ module.exports = function(grunt) {
});

// Register NPM tasks.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-eslint');
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/analytics/amd/build/log_info.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1210127

Please sign in to comment.