]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Version Automation Part 2 5694/head
authorJoe Workman <joe@workmanmail.com>
Wed, 27 Aug 2014 05:56:04 +0000 (22:56 -0700)
committerJoe Workman <joe@workmanmail.com>
Wed, 27 Aug 2014 05:56:04 +0000 (22:56 -0700)
This time, I am more exact on exactly what files are processed for the version info. So if you want to start adding it to more files then you will need to make sure that its processed by the grunt file.

21 files changed:
Gruntfile.js
bower.json
js/foundation/foundation.abide.js
js/foundation/foundation.accordion.js
js/foundation/foundation.alert.js
js/foundation/foundation.clearing.js
js/foundation/foundation.dropdown.js
js/foundation/foundation.equalizer.js
js/foundation/foundation.interchange.js
js/foundation/foundation.joyride.js
js/foundation/foundation.js
js/foundation/foundation.magellan.js
js/foundation/foundation.offcanvas.js
js/foundation/foundation.orbit.js
js/foundation/foundation.reveal.js
js/foundation/foundation.slider.js
js/foundation/foundation.tab.js
js/foundation/foundation.tooltip.js
js/foundation/foundation.topbar.js
package.json
scss/foundation/components/_global.scss

index 697331e2faffcf072fc64bce0fb484897031d626..9ac873ddd99c52d6c9bf0426e2b839173f6e13f4 100755 (executable)
@@ -62,6 +62,24 @@ module.exports = function(grunt) {
       }
     },
 
+    'string-replace': {
+      dist: {
+        files: {
+          'dist/assets/css/':'dist/assets/css/*.css',
+          'dist/assets/js/':'dist/assets/js/*js',
+          'dist/assets/js/foundation/':'dist/assets/js/foundation/*js',
+          'dist/assets/scss/foundation/components/':'dist/assets/scss/foundation/components/*.scss',
+          'dist/docs/assets/css/':'dist/docs/assets/css/*.css',
+          'dist/docs/assets/js/':'dist/docs/assets/js/*.js'
+        },
+        options: {
+          replacements: [
+            {pattern: /{{\s*VERSION\s*}}/g, replacement: '<%= pkg.version %>'}
+          ]
+        }
+      }
+    },
+
     concat: {
       dist: {
         files: {
@@ -219,9 +237,10 @@ module.exports = function(grunt) {
   grunt.loadNpmTasks('grunt-rsync');
   grunt.loadNpmTasks('grunt-sass');
   grunt.loadNpmTasks('grunt-contrib-jst');
+  grunt.loadNpmTasks('grunt-string-replace');
 
   grunt.task.registerTask('watch_start', ['karma:dev_watch:start', 'watch']);
-  grunt.registerTask('build:assets', ['clean', 'sass', 'concat', 'uglify', 'copy', 'jst']);
+  grunt.registerTask('build:assets', ['clean', 'sass', 'concat', 'uglify', 'copy', 'jst', 'string-replace']);
   grunt.registerTask('build', ['build:assets', 'assemble']);
   grunt.registerTask('travis', ['build', 'karma:continuous']);
   grunt.registerTask('develop', ['travis', 'watch_start']);
index 6f99f655cc23e1ca8990c0e729a37635bf3b4fbb..8ddc58ac93c9f12a7b0cedcbf0dc64da50aea393 100755 (executable)
@@ -1,6 +1,6 @@
 {
   "name": "foundation",
-  "version": "5.3.3",
+  "version": "5.4.1",
   "main": [
     "css/foundation.css",
     "js/foundation.js"
index 9d24f25a1022698a8d58ad153b22fee5f167176b..8994d417efd97bfc40d104a0c8c2fe923b6c6d4a 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.abide = {
     name : 'abide',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings : {
       live_validate : true,
index 777f87154b0d1500662ed75bfcc17cc00cd1e169..9622637207c0a0b425041a75fa3b70ec54e628d7 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.accordion = {
     name : 'accordion',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings : {
       active_class: 'active',
index ef8c9881752d95959025ef0b50e3c3c31bd5d7b8..1453169d13ca1b7fd7a8c91d730f89ca0424be70 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.alert = {
     name : 'alert',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings : {
       callback: function (){}
index d1c3c753ac7bbb2297386b02375201e8e893b45d..b91a8a05817553ff7a2caecb817ceec97505a898 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.clearing = {
     name : 'clearing',
 
-    version: '5.4.1',
+    version: '{{VERSION}}',
 
     settings : {
       templates : {
index 68e4b87450252efd198dedc85af1344aa00f519a..b919d1b2c7dbf1c5384c8679c298f7b0043974de 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.dropdown = {
     name : 'dropdown',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings : {
       active_class: 'open',
index dde2da72ab499e9bcfe418a58be46ec25f418a0e..d85901e19312c49f68c165f4f4ed053f514af5c2 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.equalizer = {
     name : 'equalizer',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings : {
       use_tallest: true,
index 8d8b05e7f949ebcd7f91710ec93f718dc9f0f69c..ddc6420ecd656e59727f17843430d6f562c46cb4 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.interchange = {
     name : 'interchange',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     cache : {},
 
index 5916b27becc7c924aec0ce384acb9ab0eb77dc97..c0731b051cce778c238fdb9193a6a5683007bbff 100755 (executable)
@@ -6,7 +6,7 @@
   Foundation.libs.joyride = {
     name : 'joyride',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     defaults : {
       expose                   : false,     // turn on or off the expose feature
index 61c632ec9be861b368b0537b648b7aa3902cf17a..dd4e92d78c7d230deef3510f30a385e0b21d75c0 100755 (executable)
   window.Foundation = {
     name : 'Foundation',
 
-    version : '5.3.3',
+    version : '{{VERSION}}',
 
     media_queries : {
       small : S('.foundation-mq-small').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
index 9158f73f9d4b553da47fbeffa1ff9355bc345b26..65af76802d77d232410c95eec49e9df854fb8812 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs['magellan-expedition'] = {
     name : 'magellan-expedition',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings : {
       active_class: 'active',
index 9ed31dfdca6ab4d4f5709fe6b241f5118e25208f..19ac36ec31d179f56a15a6c8ba828dc0ae985eae 100644 (file)
@@ -4,7 +4,7 @@
   Foundation.libs.offcanvas = {
     name : 'offcanvas',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings : {
       open_method: 'move',
index aba8b3cadf207392982fd6c069b7198dfdb6dccd..2eb0cb1916211c943f37e5312cd631b118b212aa 100755 (executable)
   Foundation.libs.orbit = {
     name: 'orbit',
 
-    version: '5.3.3',
+    version: '{{VERSION}}',
 
     settings: {
       animation: 'slide',
index 0514286191ae6627512dec74c001e385cd1d0566..362f1c9bd7360bc49ee67e377772c31a0b914a51 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.reveal = {
     name : 'reveal',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     locked : false,
 
index 87588eace02bdb9b3c31a224e803c8f8a271745d..51200b3454f3f327b1a3cc82ba584b57bcbce102 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.slider = {
     name : 'slider',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings: {
       start: 0,
index 3c8d8fd75781eb7e05219473747f42a6ee5b74df..59d768f2da87217a5c3cade2c84f61568d7fdbee 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.tab = {
     name : 'tab',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings : {
       active_class: 'active',
index 7444a34003167fb8aec224fa385e006176d425c4..6d7388e0522b4be6544ac210fd62d2a9c7b72c63 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.tooltip = {
     name : 'tooltip',
 
-    version : '5.4.1',
+    version : '{{VERSION}}',
 
     settings : {
       additional_inheritable_classes : [],
index 432901ca51f7ee89dbdb87e342e52ff363351be3..24539f45d6a17ad6d54a0fb2b31511d7de65d458 100755 (executable)
@@ -4,7 +4,7 @@
   Foundation.libs.topbar = {
     name : 'topbar',
 
-    version: '5.4.1',
+    version: '{{VERSION}}',
 
     settings : {
       index : 0,
index 6b3d9191192694a46eae60d31a3f51ee1d939292..9f538445ebc6ee27d6f736ca8c148f04c1543d49 100755 (executable)
@@ -1,6 +1,6 @@
 {
   "name": "zurb-foundation",
-  "version": "5.3.3",
+  "version": "5.4.1",
   "devDependencies": {
     "assemble": "~0.4.37",
     "grunt": "~0.4.4",
index 967d7e4ac2ea10ea469100d78c2b4c5e079a6190..b4cc521bcf4b88381b4bbb725a1cac4ffc487a8d 100755 (executable)
@@ -339,7 +339,7 @@ $cursor-text-value: text !default;
   // Forward slash placed around everything to convince PhantomJS to read the value.
 
   meta.foundation-version {
-    font-family: "/5.4.1/";
+    font-family: "/{{VERSION}}/";
   }
 
   meta.foundation-mq-small {