$ npm run styleguide:cli
> [email protected] styleguide:cli C:\Development\Other\styleguidetest
> styleguidist server
You can now view style guide in the browser.
Local: http://localhost:6060/
On your network: http://10.0.75.1:6060/
Compiled successfully!
$ npm run styleguide:cli:verbose
...
global: true,
Buffer: true,
setImmediate: true,
__filename: 'mock',
__dirname: 'mock'
},
cache: true,
context: 'C:\Development\Other\styleguidetest',
target: 'web',
resolveLoader: {
unsafeCache: true,
mainFields: [
'loader',
'main'
],
extensions: [
'.js',
'.json'
],
mainFiles: [
'index'
],
cacheWithContext: false
}
}
You can now view style guide in the browser.
Local: http://localhost:6060/
On your network: http://10.0.75.1:6060/
Loading components:
Compiled successfully!
$ npm run styleguide:cli:config
...
__dirname: 'mock'
},
cache: true,
context: 'C:\Development\Other\styleguidetest',
target: 'web',
resolveLoader: {
unsafeCache: true,
mainFields: [
'loader',
'main'
],
extensions: [
'.js',
'.json'
],
mainFiles: [
'index'
],
cacheWithContext: false
}
}
You can now view style guide in the browser.
Local: http://localhost:6060/
On your network: http://10.0.75.1:6060/
Loading components:
Compiled successfully!
When run using the following script (styleguide.js):
const styleguidist = require('react-styleguidist');
const styleguide = styleguidist({
verbose: true
});
styleguide.server((err, config) => {
console.log("Verbose should be on? ", config.verbose);
if (err) {
console.log(err);
}
else {
console.log('Listening at http://' + config.serverHost + ':' + config.serverPort);
}
});
no output is received other than the log statements from the styleguide.js.
$ npm run styleguide:node
> [email protected] styleguide:node C:\Development\Other\styleguidetest
> node styleguide.js
Verbose should be on? true
Listening at http://0.0.0.0:6060