Git Product home page Git Product logo

create-local-home-app's Introduction

Create Local Home App

Create a new Local Home app project targeting the Local Home SDK with optional bundler support.

Prerequisites

Quickstart

npm init @google/local-home-app app/
cd app
npm run build
npm start

This will generate a new project scaffold with no bundler configuration enabled, and begin serving the app from your local machine.

Usage

To create a new Local Home app, run:

npm init @google/local-home-app app/

This will generate a new TypeScript project with the following structure:

app/
├── index.ts
├── test.ts
├── index.template.html
├── package.json
├── tsconfig.json
├── tslint.json
└── .gitignore

Open index.ts and begin adding your fulfillment code for the Local Home intents.

Built-in commands

The generated project supports the following commands:

npm run build

Compile the TypeScript source (optionally bundling the JS) and generate index.html for hosting the development app into dist/

npm start

Start a local development server with the files in dist/

npm test

Run ava tests from test.ts.

npm run compile

Check that TypeScript code compile without creating any output.

npm run lint

Check TypeScript files for common syntax and formatting issues.

Bundler support

To create a new project with support for one of the following bundlers, add the --bundler option as shown in the options below:

webpack

Generate a new project with support for webpack.

npm init @google/local-home-app app/ --bundler webpack

rollup

Generate a new project with support for rollup.js.

npm init @google/local-home-app app/ --bundler rollup

parcel

Generate a new project with support for Parcel.

npm init @google/local-home-app app/ --bundler parcel

License

This software is available under the Apache License, Version 2.0. See LICENSE.

create-local-home-app's People

Contributors

proppy 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.