- Initial project folder setup:
mkdir mypackage # Create a new folder for your package
cd mypackage
pnpm init # Create a brand new package.json| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| import React from 'react'; | |
| import { useTheme } from './Theme'; | |
| import { View } from '@aven/views'; | |
| import CSSProperties from './CSSProperties'; | |
| function validateNumberValue(value) { | |
| if (typeof value === 'number') { | |
| return `${value}px`; | |
| } else { | |
| return value; |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
I hereby claim:
To claim this, I am signing this object:
| /* eslint-disable jsx-a11y/rule-name */ | |
| const path = require("path") | |
| require("dotenv").config({ | |
| path: `../.env.${process.env.NODE_ENV}`, | |
| }) | |
| module.exports = { | |
| siteMetadata: { |
I had pushed this schema.graphql:
type Post @model {
id: ID!
title: String!
slug: String!
content: String!
createdAt: String!