Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added versioning file instead of using git tags (Step towards removing git as a dependancy in the future) Updated gulpfile to fit with verisioning system and cleaned up node dependancies. Fixes #108
- Loading branch information
1 parent
a6c6c6e
commit ab468ba
Showing
14 changed files
with
73 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,8 @@ | ||
var elixir = require('laravel-elixir'); | ||
|
||
// Custom extensions | ||
var gulp = require('gulp'); | ||
var Task = elixir.Task; | ||
var fs = require('fs'); | ||
|
||
elixir.extend('queryVersion', function(inputFiles) { | ||
new Task('queryVersion', function() { | ||
var manifestObject = {}; | ||
var uidString = Date.now().toString(16).slice(4); | ||
for (var i = 0; i < inputFiles.length; i++) { | ||
var file = inputFiles[i]; | ||
manifestObject[file] = file + '?version=' + uidString; | ||
} | ||
var fileContents = JSON.stringify(manifestObject, null, 1); | ||
fs.writeFileSync('public/build/manifest.json', fileContents); | ||
}).watch(['./public/css/*.css', './public/js/*.js']); | ||
}); | ||
|
||
elixir(function(mix) { | ||
mix.sass('styles.scss') | ||
.sass('print-styles.scss') | ||
.sass('export-styles.scss') | ||
.browserify('global.js', 'public/js/common.js') | ||
.queryVersion(['css/styles.css', 'css/print-styles.css', 'js/common.js']); | ||
elixir(mix => { | ||
mix.sass('styles.scss'); | ||
mix.sass('print-styles.scss'); | ||
mix.sass('export-styles.scss'); | ||
mix.browserify('global.js', './public/js/common.js'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.13-dev |