Git Product home page Git Product logo

offnml-demo-test's Introduction

For detailed documentation on the Decoupled Kit Starters, visit the Decoupled Kit developer documentation.

For more information on using the starter on Pantheon Front-End Sites, visit the Pantheon.io platform documentation.

Getting Started

The Next Drupal starter requires Node.js and is built and tested on the LTS version which can be found on the Node.js downloads page.

The starter kit supports npm, pnpm, and yarn. If you created the starer via the Pantheon Front-End Sites dashboard, it will use npm by default. To change this, delete the package-lock.json file and the node-modules folder, then run the install command of your preferred package manager.

If you created the starter via create-pantheon-decoupled-kit, it will detect the package manager used to run the command and use it install the starter's dependencies unless the --noInstall flag was used.

@pantheon-systems npm Packages

@pantheon-systems/drupal-kit npm package

The Pantheon @pantheon-systems/drupal-kit is included as a dependency in this project. This allows developers to make use of utility functions to simplify the process of building and maintaining a Front-End site on Pantheon.

API reference documentation can be found at https://decoupledkit.pantheon.io/docs/Packages/drupal-kit.

create-pantheon-decoupled-kit

The create-pantheon-decoupled-kit npm package, or "the CLI", is the single source of truth for all of the JavaScript/TypeScript starter kit templates. See Using the CLI for more information.

In addition to scaffolding new projects, a number of add-ons are available which can be added to an existing project. For more detailed information on the available add-ons, see the Decoupled Kit developer documentation.

@pantheon-systems/decoupled-kit-health-check

To ensure the Decoupled Kit starter has what it needs to source data from a Decoupled Kit Backend, a health-check is run as a part of the the build command and will error in case a critical component is not met.

See a detailed description of the health-check here.

To disable the health check, see Disabling the decoupled kit health check

Local development

Lando

To configure the starter for local development with Lando, see the Decoupled Kit developer docs on Local Development.

Commands

The Decoupled Kit starters include a number of scripts defined in the package.json. To list all of these scripts, cd into your starter's directory and in a terminal use the npm run command.

Some commands include:

dev

Runs the starter in developer mode.

build

Runs the build step for the starter. By default, the @pantheon-systems/decoupled-kit-health-check is run before the build. This command is required for Pantheon Front-End Sites.

start

Runs the starter in production mode. This command is required for Pantheon Front-End Sites.

test

Runs the tests.

update-snapshots

Updates the snapshots used for the snapshot tests. The starter comes with an example snapshot test that may need to be updating depending on your configuration.

offnml-demo-test's People

Watchers

Jeremy Dickens avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.