Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #384 from PolymerElements/sjs/dynamic-root-path
Browse files Browse the repository at this point in the history
🍕 Allow for dynamic dynamic project folder.
  • Loading branch information
addyosmani committed Sep 25, 2015
2 parents 8d3aece + babaaec commit 34153f9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
18 changes: 18 additions & 0 deletions wct.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var path = require('path');

var ret = {
'suites': ['app/test'],
'webserver': {
'pathMappings': []
}
};

var mapping = {};
var rootPath = (__dirname).split(path.sep).slice(-1)[0];

mapping['/components/' + rootPath +
'/app/bower_components'] = 'bower_components';

ret.webserver.pathMappings.push(mapping);

module.exports = ret;
8 changes: 0 additions & 8 deletions wct.conf.json

This file was deleted.

0 comments on commit 34153f9

Please sign in to comment.