Skip to content

Commit

Permalink
Modify the postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Aug 7, 2018
1 parent 3ee7e8b commit ab3c231
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
17 changes: 12 additions & 5 deletions bin/hello.js
Expand Up @@ -5,16 +5,23 @@ const pkg = require('../package.json');
console.log(`
${chalk.green('Hey there! 👋')}
Thanks for giving the ${pkg.name} a try. 🎉
This project includes two config files in ${chalk.yellow('./config')}
- website.js
- theme.js
The values you set in ${chalk.yellow('website.js')} will affect components, gatsby-config.js, SEO and other files.
The values you set in ${chalk.yellow('theme.js')} will only affect the styling of your page.
The values you set in ${chalk.yellow('theme.js')} will only affect the styling of your page (via the ThemeProvider of emotion).
Happy with your setup? Great!
You can start the development server just like that:
${chalk.yellow('npm run dev')} to start a development environment at ${chalk.green('localhost:8000')} and open the browser
You can start the development server like that:
${chalk.yellow('npm run dev')} to start a development server at ${chalk.green('localhost:8000')} and open the browser
or
${chalk.yellow('npm run build')} to create a production ready static site in ${chalk.green('./public')}
${chalk.yellow('npm run build')} to create a production ready static site in ${chalk.green('./public')}.
To test the production build you can run ${chalk.yellow('npm run serve')}.
For further information check the readme of the project
${pkg.repository.url}
${chalk.blue(pkg.repository.url)}
Interested in more starters? Check out my starter overview!
${chalk.blue('https://gatsby-starter-portfolio.netlify.com/')}
`);
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -54,6 +54,7 @@
"scripts": {
"build": "gatsby build",
"dev": "gatsby develop -o",
"serve": "gatsby serve",
"postinstall": "node ./bin/hello.js"
},
"devDependencies": {
Expand Down

0 comments on commit ab3c231

Please sign in to comment.