mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
2c6d43a0c0
no issue - Split theme helpers into individual files for each - Do the same for tests - Have utils to share some things between them - Move assetHash onto config
23 lines
600 B
JavaScript
23 lines
600 B
JavaScript
var _ = require('lodash'),
|
|
utils;
|
|
|
|
utils = {
|
|
assetTemplate: _.template('<%= source %>?v=<%= version %>'),
|
|
linkTemplate: _.template('<a href="<%= url %>"><%= text %></a>'),
|
|
scriptTemplate: _.template('<script src="<%= source %>?v=<%= version %>"></script>'),
|
|
isProduction: process.env.NODE_ENV === 'production',
|
|
scriptFiles: {
|
|
production: [
|
|
'vendor.min.js',
|
|
'ghost.min.js'
|
|
],
|
|
development: [
|
|
'vendor-dev.js',
|
|
'templates-dev.js',
|
|
'ghost-dev.js'
|
|
]
|
|
}
|
|
};
|
|
|
|
module.exports = utils;
|