Giter VIP home page Giter VIP logo

vscode-stencil-tools's Introduction

Version Installs

Stencil Tools

This repository will be archived after the upcoming 3.0.0 release.

Active development can be found in the Stencil Tools monorepo, which contains the Stencil Tools suite, which adds support for editors other than VS Code, zero-config component generation, intelligent editor features, and more.

Description

VS Code extension that makes working with Stencil projects a breeze.

Features

  • Automatically creates Stencil components (component.tsx, component.spec.tsx, component.css)
  • Snippets with Automatic Import support for Stencil Decorators, Lifecycle Events, and Tests
  • Easily start any new Stencil project from the Command Palette
  • Quickly open the Stencil Docs in your browser
  • Configurable component templates
    • Add a custom prefix to generated component tags
    • Easily toggle on/off @Component({ shadow: true })
    • Change the extension of any generated file
      • css => scss or sass
      • spec.ts => test.ts

Usage

Generate a Component

New Component

  • From the File Explorer
    • Right click on a folder
    • Select "Generate Stencil Component"
    • Enter your component name in the prompt
  • From the Command Palette
    • Select "> Stencil: New Component"
    • Enter your component name in the prompt

Generate a Test from a Component

  • From the File Explorer
    • Right click on a component file
    • Select "Generate Test for Stencil Component"
  • From the Command Palette, when a Component is open
    • Select "> Stencil: New Test for Component"

Start a Stencil Project

Start a Project

  • From the Command Palette
    • Select "> Stencil: Start New Project"
    • Select a Starter (components, app, pwa)
    • Choose an empty directory and click "Start Project"
    • When you open the new project, Stencil Tools will automatically prepare the project and install any dependencies

Use Stencil Snippets

Use Snippets

  • From a Component File
    • type s- and select your snippet

Open the Stencil Docs

Open Docs

  • From the Command Palette
    • Select "> Stencil: Open Docs"

Changelog

2.1.0 (2019-12-30)

  • Updated component.ts and component.e2e.ts templates to match @stencil/core@one defaults.

2.0.0 (2018-06-11)

  • Breaking Change: command names are now properly namespaced
  • Overhaul of the Start Project feature
  • Brand new snippets with AutoImport
  • Small optimizations to the Component and Test Generators
  • Read More

1.0.0 (2018-06-06)

  • Published the extension to VS Code Marketplace

Bugs

Please report here

Credits

vscode-stencil-tools's People

Contributors

natemoo-re avatar dbaikov avatar smasala avatar chippi avatar monsieurman avatar

Watchers

James Cloos 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.