To quickly get started with apollo-elements, run this command
npm init @apollo-elements app
The generated app comes with plenty of bells-and-whistles:
import MyQuery from './My.query.graphql'
import styles from './my-element.css'
These npm scripts help you get your work done in style:
runs the code generator and the development server in watch mode
npm run build
bundles the app into
npm run lint
The generator currently doesn't offer strong opinions on testing your UI components, so
npm test currently exist with an error code. For unit testing business logic (i.e. typePolicies), we recommend @web/test-runner
Check out the
@apollo-elements/create README for more info.