Procházet zdrojové kódy

Added import to gruntfile (perfomance)

soyjavi před 13 roky
rodič
revize
1d870065cc

+ 10 - 3
GruntFile.coffee

@@ -46,10 +46,11 @@ module.exports = (grunt) ->
         'src/stylesheets/lungo.widget.*.styl',
         'src/stylesheets/lungo.media.*.styl']
       theme: [
-        'src/stylesheets/theme/*.styl']
+        'src/stylesheets/theme/theme.*.styl']
+      theme_firefoxos: [
+        'src/stylesheets/theme/firefoxos/theme.*.styl']
       icons: [
         'src/stylesheets/lungo.icon**.styl']
-
       calendar:
         coffee: 'src/plugins/calendar/**.coffee'
         stylus: 'src/plugins/calendar/**.styl'
@@ -68,8 +69,11 @@ module.exports = (grunt) ->
         options: compress: true, import: [ '__init']
         files: '<%=meta.endpoint%>/<%=meta.file%><%=meta.version%>/<%=meta.file%>.css': '<%=source.stylus%>'
       theme:
-        options: compress: false
+        options: compress: false, import: [ '__init']
         files: '<%=meta.endpoint%>/<%=meta.file%><%=meta.version%>/<%=meta.file%>.theme.css': '<%=source.theme%>'
+      theme_firefoxos:
+        options: compress: true, import: [ '__init']
+        files: '<%=meta.packages%>/<%=meta.file%>.firefoxos/<%=meta.file%>.firefoxos.theme.css': '<%=source.theme_firefoxos%>'
       icons:
         files: '<%=meta.packages%>/<%=meta.file%>.icon/<%=meta.file%>.icon.css': '<%=source.icons%>'
       calendar:
@@ -89,6 +93,9 @@ module.exports = (grunt) ->
       theme:
         files: ['<%= source.theme %>']
         tasks: ["stylus:theme"]
+      theme_firefoxos:
+        files: ['<%= source.theme_firefoxos %>']
+        tasks: ["stylus:theme_firefoxos"]
 
       calendar:
         files: ['<%= source.calendar.coffee %>','<%= source.calendar.stylus %>']

+ 1 - 0
src/stylesheets/theme/__init.styl

@@ -1,4 +1,5 @@
 @import "../CSSmethods/vendor.styl"
+
 /* -------------------------- COLOUR -------------------------- */
 THEME               = #3498db
 COLOR               = #292929 /* #2C3E50 */

+ 0 - 1
src/stylesheets/theme/theme.base.styl

@@ -8,7 +8,6 @@
  */
 
 @import url("http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700")
-@import "__init.styl"
 
 body
   background-color: #000

+ 0 - 1
src/stylesheets/theme/theme.layout.list.styl

@@ -7,7 +7,6 @@
  * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  */
 
-@import "__init.styl"
 .list
   section & li
     background: #fff

+ 0 - 2
src/stylesheets/theme/theme.layout.nav.styl

@@ -7,8 +7,6 @@
  * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  */
 
-@import "__init.styl"
-
 nav
   section > header > &
     & a:not(.button)

+ 0 - 2
src/stylesheets/theme/theme.layout.styl

@@ -7,8 +7,6 @@
  * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  */
 
-@import "__init.styl"
-
 body > section
   background-color: COLOR
   &, & a

+ 0 - 2
src/stylesheets/theme/theme.media.styl

@@ -1,5 +1,3 @@
-@import "__init.styl"
-
 
 /* ==== Any tablet ==== */
 @media only screen and (min-width: 768px)

+ 0 - 1
src/stylesheets/theme/theme.widget.button.styl

@@ -7,7 +7,6 @@
  * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  */
 
-@import "__init.styl"
 .button, button
   border-radius (BORDER_radius * 2)
 

+ 0 - 2
src/stylesheets/theme/theme.widget.form.styl

@@ -7,8 +7,6 @@
  * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  */
 
-@import "__init.styl"
-
 form, .form
   & label
     color: #aaa

+ 0 - 3
src/stylesheets/theme/theme.widget.notification.styl

@@ -7,9 +7,6 @@
  * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  */
 
-@import "__init.styl"
-
-
 /* -------------------------- NOTIFICATION -------------------------- */
 .notification
   color: #fff

+ 0 - 2
src/stylesheets/theme/theme.widget.styl

@@ -7,8 +7,6 @@
  * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  */
 
-@import "__init.styl"
-
 /* =================================  TAG  ================================= */
 .tag:not(.icon)
   color: #fff