mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Issue #344 : Avoid templating syntax conflict with Django
This commit is contained in:
22
Gruntfile.js
22
Gruntfile.js
@@ -4,18 +4,16 @@ module.exports = function(grunt) {
|
||||
var now = new Date();
|
||||
var version = '-' + dateFormat(now, "yyyy-mm-dd-hh-MM");
|
||||
|
||||
var mapToSrcFolder = function (path) {
|
||||
// get the list of scripts paths to include
|
||||
var piskelScripts = require('./src/piskel-script-list.js').scripts.map(function (path) {
|
||||
return "src/" + path;
|
||||
};
|
||||
|
||||
var piskelScripts = require('./src/piskel-script-list.js').scripts.map(mapToSrcFolder).filter(function (path) {
|
||||
}).filter(function (path) {
|
||||
return path.indexOf('devtools') === -1;
|
||||
});
|
||||
var piskelStyles = require('./src/piskel-style-list.js').styles.map(mapToSrcFolder);
|
||||
|
||||
var mapToCasperFolder = function (path) {
|
||||
return "test/casperjs/" + path;
|
||||
};
|
||||
// get the list of styles paths to include
|
||||
var piskelStyles = require('./src/piskel-style-list.js').styles.map(function (path) {
|
||||
return "src/" + path;
|
||||
});
|
||||
|
||||
var casperEnvironments = {
|
||||
'local' : {
|
||||
@@ -30,7 +28,9 @@ module.exports = function(grunt) {
|
||||
|
||||
var getCasperConfig = function (env) {
|
||||
var conf = casperEnvironments[env];
|
||||
var tests = require(conf.suite).tests.map(mapToCasperFolder);
|
||||
var tests = require(conf.suite).tests.map(function (path) {
|
||||
return "test/casperjs/" + path;
|
||||
});
|
||||
return {
|
||||
filesSrc : tests,
|
||||
options : {
|
||||
@@ -232,7 +232,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
files: [
|
||||
// src/index.html should already have been moved by the includereplace task
|
||||
{src: ['dest/index.html'], dest: 'dest/piskelapp-partials/main-partial.html'}
|
||||
{src: ['dest-tmp/index.html'], dest: 'dest/piskelapp-partials/main-partial.html'}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user