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

atom-vue-component-compiler

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-vue-component-compiler

compiles a vue component with the help of vue-component-compiler

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

atom-vue-component-compiler

compiles a vue component with the help of vue-component-compiler

Install

npm install atom-vue-component-compiler

Usage

requiring atom-vue-component-compiler

returns a Function(options)

OptionsTypeDefaultUsage
packageNamestringnonename of the package you are developing uses atom.packages.resolvePackagePath to find the required path
srcstring"components"relative path to vue files
compiledstring"components_compiled"relative path where js files will be saved

calling this function returns another Function(names)

ParameterTypeUsage
namesarraynames of the packages you want to compile (will be converted to kebab case)

calling this function which will search in the src path of your package for name in names for #{name}.vue and compile it to #{name}.js and save it into the compiled path of your package.

This function returns a promise, which will be fulfilled when all files have been compiled.

Example

compile = require("atom-vue-component-compiler")(packageName:"your-package-name")
compile ["nested-comp","mainApp"] # will search for nested-comp.vue and main-app.vue
.then ->
  # everything successfully compiled
  # could load with "atom-vue-component-loader"
.catch (err) ->
  # there was a error in reading, compiling or writing

Release History

  • v0.0.2: Converted to kebab naming
  • v0.0.1: First release

License

Copyright (c) 2015 Paul Pflugradt Licensed under the MIT license.

Keywords

FAQs

Package last updated on 19 Jun 2015

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