Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
puli.js provides a Javascript, read-only API for transform Puli path into filesystem paths using a JSON file generated by the PHP JsonRepository.
puli.js is a first step towards creating plugins for automation tools such as Gulp, Grunt or Webpack.
This library is maintained for NodeJS 0.12+.
The JsonRepository generates a JSON file to store its path mappings (usually
/your/project/root/.puli/path-mappings.json
). This file is used by puli.js to transform Puli
paths into filesystem paths.
var puli = require('puli').load('.puli/path-mappings.json')
puli.path('/res/foo'); // returns the filesystem path associated to the virtual path /app/foo
puli.paths('/res/**/*.js'); // find matching virtual paths and return associated filesystem paths as an array
puli.exists('/res/**/*.js'); // check if the given virtual path exists or if the given glob contain paths
puli.js provides a read-only API: you cannot edit the path-mappings using it.
Read the Puli Documentation to learn more about Puli.
Contributions to Puli are always welcome!
Report bugs
You can report any bugs or issues you find on the issue tracker.
Pull requests
If you want to contribute on the code, here are some informations:
npm run babel
to
compile one time or run npm run watch
to compile your files live ;src
and tests are located in test
: theses two directories are
compiled by Gulp respectively to dist
and test-dist
;npm test
to launch the test suite (the tests use mocha) ;Create an automation tool plugin using this library
If you are interested in creating an automation tool plugin (for Gulp, Grunt, Webpack, ...), don't hesitate to open an issue in the issue tracker to discuss it. You can also join us on Gitter.
If you are having problems, send a mail to galopintitouan@gmail.com or bschussek@gmail.com or shout out to @titouangalopin or @webmozart on Twitter.
All contents of this package are licensed under the MIT license.
FAQs
Puli JsonRepository Javascript implementation for automation tools plugins
The npm package puli receives a total of 2 weekly downloads. As such, puli popularity was classified as not popular.
We found that puli 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.