patternity
Advanced tools
Comparing version 1.0.67-rc3 to 1.0.67-rc5
{ | ||
"name": "patternity", | ||
"version": "1.0.67-rc3", | ||
"version": "1.0.67-rc5", | ||
"description": "Patternity is the pattern library and style guide for all Influitive apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,2 +39,14 @@ var sassPaths = require('node-neat').includePaths.map(function(sassPath) { | ||
}, | ||
getExampleFilename: function(componentpath) { | ||
var newpath; | ||
var oldCompsRegex = /\/infl-components\//; | ||
var oldComps = oldCompsRegex.test(componentpath); | ||
if (oldComps) { | ||
newpath = componentpath.replace(oldCompsRegex, '/infl-components-examples/').replace(/\.jsx?$/, '.readme.md'); | ||
} | ||
else { | ||
newpath = componentpath.replace(/\/index.js$/, '\/Readme.md'); | ||
} | ||
return newpath; | ||
}, | ||
updateWebpackConfig: function(webpackConfig, env) { | ||
@@ -52,4 +64,5 @@ webpackConfig.module.loaders = webpackConfig.module.loaders.concat({ | ||
}, | ||
serverPort: 3003, | ||
serverPort: 3000, | ||
styleguideDir: 'public' | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1004501
315
9187