mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-22 17:47:11 +03:00
wip rollup - fix jscs
This commit is contained in:
parent
ccc251c75c
commit
9a4158540b
11
Gruntfile.js
11
Gruntfile.js
|
@ -302,13 +302,15 @@ module.exports = function (grunt) {
|
|||
advanced: false
|
||||
},
|
||||
core: {
|
||||
files: [{
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'dist/css',
|
||||
src: ['*.css', '!*.min.css'],
|
||||
dest: 'dist/css',
|
||||
ext: '.min.css'
|
||||
}]
|
||||
}
|
||||
]
|
||||
},
|
||||
docs: {
|
||||
src: 'docs/assets/css/docs.css',
|
||||
|
@ -377,7 +379,7 @@ module.exports = function (grunt) {
|
|||
options: {
|
||||
// https://regex101.com/r/hG8lU4/1
|
||||
process: function (content, srcpath) {
|
||||
return content.replace(/([\s\S]+)/mg, "// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs\n\n$1");
|
||||
return content.replace(/([\s\S]+)/mg, '// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs\n\n$1');
|
||||
}
|
||||
},
|
||||
expand: true,
|
||||
|
@ -613,6 +615,9 @@ module.exports = function (grunt) {
|
|||
grunt.registerTask('dist-js', [
|
||||
'clean:dist-js',
|
||||
'eslint',
|
||||
'jscs:grunt',
|
||||
'jscs:core',
|
||||
'jscs:test',
|
||||
'exec:rollup-iife',
|
||||
'exec:rollup-umd',
|
||||
'exec:rollup-es6',
|
||||
|
|
|
@ -38,8 +38,8 @@ module.exports = (function () {
|
|||
}
|
||||
|
||||
return {
|
||||
'commonJs': commonJs,
|
||||
'systemJs': systemJs
|
||||
commonJs: commonJs,
|
||||
systemJs: systemJs
|
||||
}
|
||||
}())
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"esnext": true,
|
||||
"verbose": true,
|
||||
"disallowEmptyBlocks": true,
|
||||
"disallowEmptyBlocks": false,
|
||||
"disallowKeywords": ["with"],
|
||||
"disallowMixedSpacesAndTabs": true,
|
||||
"disallowMultipleLineStrings": true,
|
||||
|
@ -26,7 +26,7 @@
|
|||
"requirePaddingNewLinesBeforeExport": true,
|
||||
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
||||
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
|
||||
"requireSpaceAfterLineComment": true,
|
||||
"requireSpaceAfterLineComment": false,
|
||||
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
|
||||
"requireSpaceBetweenArguments": true,
|
||||
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true, "beforeOpeningRoundBrace": true, "allExcept": ["shorthand"] },
|
||||
|
@ -35,7 +35,7 @@
|
|||
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
|
||||
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
||||
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
||||
"requireSpacesInsideObjectBrackets": "allButNested",
|
||||
"requireSpacesInsideObjectBrackets": false,
|
||||
"validateAlignedFunctionParameters": true,
|
||||
"validateIndentation": 2,
|
||||
"validateLineBreaks": "LF",
|
||||
|
|
2
js/src/bootstrapMaterialDesign.js
vendored
2
js/src/bootstrapMaterialDesign.js
vendored
|
@ -156,7 +156,7 @@ const BootstrapMaterialDesign = (($) => {
|
|||
// private
|
||||
|
||||
_resolveSelector(componentConfig) {
|
||||
let selector = componentConfig['selector']
|
||||
let selector = componentConfig.selector
|
||||
if (Array.isArray(selector)) {
|
||||
selector = selector.join(', ')
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import babel from 'rollup-plugin-babel';
|
|||
|
||||
export default {
|
||||
entry: 'js/src/index.js',
|
||||
sourceMap: true,
|
||||
plugins: [babel()]
|
||||
//external: external
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user