Local Development

TakeShape Config

  • .graphqlrc - Generated by init. Reference to the TS endpoint
  • .tsgrc -  Generated by init.  Details to connect to a specific project on the TS platform
  • tsg.yml - Configuration options to build your project including paths to relevant directories, routes and data contexts

Build Environment

  • .gitignore - What files to ignore if you're using git (you should use some form of version control, if you aren't you're doing it wrong).
  • .eslintrc - JS linting
  • .stylelinerc - CSS linting rules https://github.com/stylelint/stylelint.
  • postcss.config.js - Basic config for postcss.
  • .editorcconfig - Maintain a consistent coding style http://editorconfig.org.
  • webpack.config.js - Compile JS and CSS and provide cache busting

CLI

Usage

tsg  <command>

Commands

init

build

watch

status

Options

--token,  -t takeshape API auth token

--site, -s takeshape static site id

--file, -f path to tsg.yml

--output, -o build output path

--endpoint, -e endpoint

--version,  -v tsg version number

--watchContent,  -W  rebuild on content change (watch only)

Examples

$ tsg build --file path/to/tsg.yml

Join us

Interested in joining the team as coworker or investor?

contact@takeshape.com