Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google/create-local-home-app

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google/create-local-home-app

Create Local Home SDK apps.

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

Create Local Home App

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

Prerequisites

  • Node.js LTS 10.16.0+

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.

FAQs

Package last updated on 14 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc