mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-02 04:40:01 +01:00
lint: remove less
This commit is contained in:
12
Gruntfile.js
12
Gruntfile.js
@@ -54,17 +54,13 @@ module.exports = function (grunt) {
|
||||
}
|
||||
}
|
||||
|
||||
const styleUpdated_Client = pluginList.map(p => `node_modules/${p}/*.less`)
|
||||
const styleUpdated_Client = pluginList.map(p => `node_modules/${p}/*.scss`)
|
||||
.concat(pluginList.map(p => `node_modules/${p}/*.css`))
|
||||
.concat(pluginList.map(p => `node_modules/${p}/*.scss`))
|
||||
.concat(pluginList.map(p => `node_modules/${p}/+(public|static|less)/**/*.less`))
|
||||
.concat(pluginList.map(p => `node_modules/${p}/+(public|static|scss)/**/*.scss`))
|
||||
.concat(pluginList.map(p => `node_modules/${p}/+(public|static)/**/*.css`));
|
||||
|
||||
const styleUpdated_Admin = pluginList.map(p => `node_modules/${p}/*.less`)
|
||||
const styleUpdated_Admin = pluginList.map(p => `node_modules/${p}/*.scss`)
|
||||
.concat(pluginList.map(p => `node_modules/${p}/*.css`))
|
||||
.concat(pluginList.map(p => `node_modules/${p}/*.scss`))
|
||||
.concat(pluginList.map(p => `node_modules/${p}/+(public|static|less)/**/*.less`))
|
||||
.concat(pluginList.map(p => `node_modules/${p}/+(public|static|scss)/**/*.scss`))
|
||||
.concat(pluginList.map(p => `node_modules/${p}/+(public|static)/**/*.css`));
|
||||
|
||||
@@ -78,7 +74,6 @@ module.exports = function (grunt) {
|
||||
grunt.config(['watch'], {
|
||||
styleUpdated_Client: {
|
||||
files: [
|
||||
'public/less/**/*.less',
|
||||
'public/scss/**/*.scss',
|
||||
...styleUpdated_Client,
|
||||
],
|
||||
@@ -88,7 +83,6 @@ module.exports = function (grunt) {
|
||||
},
|
||||
styleUpdated_Admin: {
|
||||
files: [
|
||||
'public/less/**/*.less',
|
||||
'public/scss/**/*.scss',
|
||||
...styleUpdated_Admin,
|
||||
],
|
||||
@@ -221,4 +215,4 @@ function addBaseThemes(pluginList) {
|
||||
}
|
||||
} while (baseTheme);
|
||||
return pluginList;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ settingsController.get = async function (req, res, next) {
|
||||
{ name: 'Default', value: '' },
|
||||
];
|
||||
userData.bootswatchSkinOptions.push(
|
||||
...meta.css.supportedSkins.map(skin => ({ name: _.capitalize(skin), value: skin}))
|
||||
...meta.css.supportedSkins.map(skin => ({ name: _.capitalize(skin), value: skin }))
|
||||
);
|
||||
|
||||
userData.bootswatchSkinOptions.forEach((skin) => {
|
||||
|
||||
Reference in New Issue
Block a user