使用Bower和Grunt自定义语义ui

ofs*_*dio 5 gruntjs bower semantic-ui

我的项目使用Bower来安装deps和Grunt来构建.我的项目树看起来像这样

|
|-bower_components
|                |
|                |-jquery
|                |-semantic
|                |-...
|-Bower.json
|-Gruntfile.js
|-public
|      |
|      |-css // Compiled, concatenated and minified semantic-ui
|      |-js  // and other libs should be here
|-...
|-etc..
Run Code Online (Sandbox Code Playgroud)
  1. 是否可以使用Grunt构建自定义语义ui(即自定义字体,颜色,删除未使用的组件)(或者可能使用Grunt调用的Gulp)?

  2. 在哪里放置语义主题配置和覆盖文件?

小智 1

我确信有一天有人会构建一个符合语义的 grunt 构建,但现在,我只是用它来使用 grunt 调用所有 gulp 命令。https://github.com/sindresorhus/grunt-shell。只需确保您正在调用 gulp 构建任务而不是默认的 gulp 任务。它有一个监视任务,会导致 grunt 无法完成 shell 任务。