create-contentful-app

Bootstrap a Contentful App

MIT License

Downloads
115.9K
Stars
105
Committers
45

Bot releases are hidden (Show)

create-contentful-app - @contentful/[email protected]

Published by andipaetzold over 2 years ago

1.2.0 (2022-04-07)

Improved create-contentful-app tooling for the App Framework

The create-contentful-app CLI has been rewritten to be faster and more flexible. It is now possible to bootstrap an app with JavaScript instead of Typescript, Yarn instead of npm or even create an app from your custom template. All you need to do is run npx create-contentful-app. To learn about how to use the new features, simply run npx create-contentful-app –help. For more details, please check out our documentation.

create-contentful-app - [email protected]

Published by andipaetzold over 2 years ago

1.2.0 (2022-04-07)

Improved create-contentful-app tooling for the App Framework

The create-contentful-app CLI has been rewritten to be faster and more flexible. It is now possible to bootstrap an app with JavaScript instead of Typescript, Yarn instead of npm or even create an app from your custom template. All you need to do is run npx create-contentful-app. To learn about how to use the new features, simply run npx create-contentful-app –help. For more details, please check out our documentation.

create-contentful-app - @contentful/[email protected]

Published by andipaetzold over 2 years ago

1.0.0 (2022-04-07)

BREAKING CHANGES

  • change create-definition to create-app-definition (#893) (c11f3ec)
create-contentful-app - @contentful/[email protected]

Published by andipaetzold over 2 years ago

1.0.0 (2022-04-07)

Features

BREAKING CHANGES

  • React Apps Toolkit v1

React Hooks for building apps faster

React is the most popular framework when it comes to writing Contentful apps and with the new React Apps Toolkit, we provide multiple new React hooks that abstract the most common use cases. That way, you have to write less boilerplate code and can focus on the core functionality of your Contentful app. Combined with Contentful’s open source Forma 36 design library it allows developers to seamlessly integrate into Contentful so that you can build editorial apps faster with less manual work. To learn more about the new React Apps Toolkit, check out the package on npm.

Usage:

ReactDOM.render(
  // wrap the app with the SDK Provider, so the new hooks can be used
  <SDKProvider>
    <App />
  </SDKProvider>,
  document.getElementById(‘root’)
);

function App() {
  // returns an instance of the App SDK
  const sdk = useSDK();
  
  // returns an initialized plain CMA client
  const cma = useCMA();

  // returns the current state of a field and an update method
  const [value, setValue] = useFieldValue();

  // …
}
Package Rankings
Top 3.36% on Npmjs.org
Related Projects