ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var nlWin = '\r\n',
|
||||
nlUnix = '\n';
|
||||
|
||||
function findCopyright(lang, nlSys) {
|
||||
var copyrightText = {
|
||||
firstLine: 'Copyright © Magento, Inc. All rights reserved.',
|
||||
secondLine: 'See COPYING.txt for license details.'
|
||||
};
|
||||
switch (lang) {
|
||||
case 'less':
|
||||
return new RegExp(
|
||||
'// /\\*\\*' + nlSys + '// \\* ' +
|
||||
copyrightText.firstLine +
|
||||
'' + nlSys + '// \\* ' +
|
||||
copyrightText.secondLine +
|
||||
'' + nlSys + '// \\*/' + nlSys + nlSys
|
||||
);
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
documentation: {
|
||||
options: {
|
||||
patterns: [
|
||||
{
|
||||
match: findCopyright('less', nlWin),
|
||||
replacement: ''
|
||||
},
|
||||
{
|
||||
match: findCopyright('less', nlUnix),
|
||||
replacement: ''
|
||||
}
|
||||
]
|
||||
},
|
||||
files: [{
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: [
|
||||
'<%= path.doc %>/source/**/*.less'
|
||||
],
|
||||
dest: '<%= path.doc %>/source/'
|
||||
}]
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user