Socket
Socket
Sign inDemoInstall

dash-components-archetype-dev

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dash-components-archetype-dev

A [Builder](https://github.com/FormidableLabs/builder) Archetype for Dash components suites (Development)


Version published
Weekly downloads
7
increased by133.33%
Maintainers
1
Weekly downloads
 
Created
Source

Dash Components Archetype

Overview

This is a Builder archetype for Dash component suites. It defines build- and test configuration, as well as development scripts and a convenient way to generate a new component suite project with all the necessary boilerplate.

Generating a component suite project

$ npm install -g builder-init
$ builder-init dash-components-archetype

Answer the prompts, then:

$ cd [YOUR-COMPONENT-SUITE-NAME]
$ npm install

Development

We don't yet have a dev server with demo capabilities in this archetype. The best way to test your components is by linking into dash2 and testing them from there.

  1. Prepare module by linking and watching for changes

     # Symlink module
     $ npm link
    
     # Transpile components to `lib/` and watch for changes
     $ npm start
    
  2. Link module into dash2 project

     # In the `dash2/renderer` project directory:
     $ npm link [YOUR-COMPONENT-SUITE-NAME]
    

Now you should be able to restart the webpack process (in dash2/renderer: ctrl-c, npm start), after which webpack will automatically pick up new changes to the component suite.

Customizing your project

Components path

The default path to your components is src/components. If you want to change this, you'll also have to update the DASH_COMPONENTS_SOURCE environment variable in your project's package.json:

{
  "scripts": {
    "start": "DASH_COMPONENTS_SOURCE=src/components builder run transpile-dev-watch",
    "test": "builder run check"
  }
}

Release

To tag and release a new version of the archetype, follow these instructions. You might be tempted to add some of these steps to NPM's *version lifecycle methods, but that would interfere with versioning and publishing of the actual project depending on the archetype, since Builder merges the project package.json scripts with the archetype's package.json scripts.

# 1. Bump package.json `version` according to [semver][]
vi package.json

# 2. Generate `dev/*` package files
builder-support gen-dev

# 3. Run tests
npm run builder:check

# 4. Commit and tag
git add package.json dev
git commit -m "vx.x.x"
git tag -a "vx.x.x" -m "vx.x.x"
git push --follow-tags

5. Publish main and dev package
npm publish && cd dev && npm publish && cd -

Keywords

FAQs

Package last updated on 26 Jun 2016

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