Quellcode durchsuchen

Fix GruntJS for icons

soyjavi vor 13 Jahren
Ursprung
Commit
e96f6598c8

+ 4 - 0
example/index.html

@@ -46,6 +46,10 @@
 
     <!-- Main Stylesheet -->
     <link rel="stylesheet" href="../packages/lungo/lungo.css">
+    <link rel="stylesheet" href="../packages/lungo/lungo.icon.css">
+    <link rel="stylesheet" href="../packages/lungo/lungo.icon.brand.css">
+    <link rel="stylesheet" href="../packages/lungo/lungo.css">
+
     <link rel="stylesheet" href="../packages/lungo/theme.lungo.css">
 
     <!-- App Stylesheet -->

+ 19 - 8
grunt.js

@@ -24,21 +24,28 @@ module.exports = function(grunt) {
         device: ['src/device/*.js'],
 
         javascripts: ['src/**/*.js'],
-        stylesheets: ['src/**/*.styl']
+        stylesheets: [
+            'src/**/Lungo.base.styl',
+            'src/**/Lungo.layout.styl',
+            'src/**/Lungo.layout.*.styl',
+            'src/**/Lungo.widgets.styl',
+            'src/**/Lungo.widgets.*.styl'],
+        icons: ['src/**/Lungo.icon**.styl'],
+        themes: ['src/**/theme**.styl']
     },
 
     stylus: {
-      compile: {
+      stylesheets: {
         options: { compress: true, paths: ['src/stylesheets/import'] },
-        files: {
-          'packages/<%=meta.file%>/<%=meta.file%>.css': ['src/**/Lungo.*.styl']
-        }
+        files: { 'packages/<%=meta.file%>/<%=meta.file%>.css': '<config:resources.stylesheets>' }
+      },
+      icons: {
+        options: { compress: true },
+        files: { 'packages/lungo/**.css': '<config:resources.icons>' }
       },
       flatten: {
         options: { flatten: true },
-        files: {
-          'packages/lungo/**.css': ['src/**/theme**.styl']
-        }
+        files: { 'packages/lungo/**.css': '<config:resources.themes>' }
       }
     },
 
@@ -57,6 +64,10 @@ module.exports = function(grunt) {
       js: {
         src: ['<banner>', 'build/<%=meta.file%>.js'],
         dest: 'packages/<%=meta.file%>/<%=meta.file%>.js'
+      },
+      js: {
+        src: ['<banner>', 'build/<%=meta.file%>.device.js'],
+        dest: 'packages/<%=meta.file%>.device/<%=meta.file%>.device.js'
       }
     },
 

Datei-Diff unterdrückt, da er zu groß ist
+ 4 - 0
packages/lungo.device/lungo.device.js


+ 1 - 0
packages/lungo.theme

@@ -0,0 +1 @@
+Subproject commit 87a2c5ae80df08d263ecb794b8420c4c6eea2b98

Datei-Diff unterdrückt, da er zu groß ist
+ 39 - 0
packages/lungo/Lungo.icon.brand.css


Datei-Diff unterdrückt, da er zu groß ist
+ 64 - 0
packages/lungo/Lungo.icon.css


Datei-Diff unterdrückt, da er zu groß ist
+ 54 - 159
packages/lungo/lungo.css


Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
packages/lungo/lungo.js


src/stylesheets/Lungo.widgets.icon.brand.styl → src/stylesheets/Lungo.icon.brand.styl


src/stylesheets/Lungo.widgets.icon.styl → src/stylesheets/Lungo.icon.styl