This is the code behind DeveloPassion's official Website: https://www.developassion.be.
- execute
yarn install
- execute
npm run build
to run the development version locally - execute
npm run build:prod
to build the production version (put under public/)
GraphiQL: http://localhost:8000/___graphql
git tag <version>
git push --tags
- Netlify:
git push
;-) - Old way: Github pages
- execute
npm run deploy
- execute
Adapt metadata.js
- Add new PDF to
static
- Adapt metadata
- Update
terms.tsx
Loaded through GraphQL with Gatsby Image. Generates various sizes etc automatically.
Plugin used:
- https://www.gatsbyjs.org/packages/gatsby-image/
- https://codebushi.com/using-gatsby-image/
- https://using-gatsby-image.gatsbyjs.org/
- https://www.gatsbyjs.org/packages/gatsby-plugin-sharp/
SVGs:
- Under
src/assets/images/svg
- Loaded using a require call and a specific Webpack loader (requires a tslint ignore)
- Add GreenKeeper
- Improve 404, add image
- link *** import {Link} from 'gatsby';
- DeveloPassion
- SEO: https://www.gatsbyjs.org/docs/add-seo-component/
- Add testing: https://www.gatsbyjs.org/docs/testing/
- Add typechecking for graphql queries: https://www.gatsbyjs.org/docs/static-query/
- do it using io-ts
- Add "tslint-sonarts", to tslint.json once this is fixed: https://github.com/AdamLeBlanc/gatsby-plugin-ts-loader/issues/2
- and adapt package.json tslint script
- and remove tslint-npm.json
- add keyboard support on services page (go from one block to the next): https://www.npmjs.com/package/react-hotkeys)
- Condense a bit (reduce top/bottom margins on desktop)
- CSP: remove unsafe-inline on styles