forked from huge/frontEnd/hugeOA

Mr Ke
2020-05-16 79ba63b0b79339d49de02257eb73ef39c772a321
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const { kebabCase } = require("lodash");
const { headers, comment } = require("..");
const path = require("path");
module.exports = function(name) {
  // 首字母大写化
  name = name.slice(0, 1).toUpperCase() + name.slice(1);
  return [
    ...headers(),
    `.${kebabCase(name)} {`,
    `  &-main {`,
    ``,
    `  }`,
    `}`,
    ``
  ].join("\n");
};