Security News
Internet Archive Hacked, 31 Million Record Compromised
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
atom-vue-component-compiler
Advanced tools
compiles a vue component with the help of vue-component-compiler
compiles a vue component with the help of vue-component-compiler
npm install atom-vue-component-compiler
requiring atom-vue-component-compiler
returns a Function(options)
Options | Type | Default | Usage |
---|---|---|---|
packageName | string | none | name of the package you are developing uses atom.packages.resolvePackagePath to find the required path |
src | string | "components" | relative path to vue files |
compiled | string | "components_compiled" | relative path where js files will be saved |
calling this function returns another Function(names)
Parameter | Type | Usage |
---|---|---|
names | array | names 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.
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
Copyright (c) 2015 Paul Pflugradt Licensed under the MIT license.
FAQs
compiles a vue component with the help of vue-component-compiler
We found that atom-vue-component-compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
Security News
TC39 is meeting in Tokyo this week and they have approved nearly a dozen proposals to advance to the next stages.
Security News
Our threat research team breaks down two malicious npm packages designed to exploit developer trust, steal your data, and destroy data on your machine.