Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ggkovacs/getpackages
Yii 1/2 Packages command Node.js wrapper
https://github.com/ggkovacs/getpackages
nodejs yii yii2
Last synced: 4 months ago
JSON representation
Yii 1/2 Packages command Node.js wrapper
- Host: GitHub
- URL: https://github.com/ggkovacs/getpackages
- Owner: ggkovacs
- License: mit
- Created: 2014-10-06T06:05:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T05:52:25.000Z (almost 3 years ago)
- Last Synced: 2024-09-13T05:57:44.014Z (5 months ago)
- Topics: nodejs, yii, yii2
- Language: JavaScript
- Homepage:
- Size: 573 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Get packages [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]
Version: **6.0.4**Yii 1/2 Packages command Node.js wrapper
## Installation
Run `npm install get-packages`
## Usage
```javascript
var gp = require('get-packages').init();
```## API
### gp.init([options])
#### Options
Type: `String` | `Object`
##### options.applicationPath
- Type: `String`
- Default: `protected`##### options.yiiPackagesCommand
- Type: `String`
- Default: `yiic packages`##### options.isAbsoluteCommandPath
- Type: `Boolean`
- Default: `true`##### options.verbose
- Type: `Boolean`
- Default: `false`### Methods
- gp.init(options)
- gp.get()
- gp.getPackagesDistPath()
- gp.getPackagesDistPathWithoutImageDir()
- gp.getStylesPaths()
- gp.getStylesPathsByFilepath(filepath, glob)
- gp.getStylesSourcePath()
- gp.getStylesSourcePathWithGlob(glob)
- gp.getScriptsSourcePath()
- gp.getScriptsSourcePathWithoutFile()
- gp.getScriptsSourcePathWithGlob(glob)
- gp.getScriptsSourcePathBeforeTranspiling()
- gp.getScriptsSourcePathBeforeTranspilingWithGlob(glob)
- gp.getScriptsToBuild()
- gp.getScriptsToTranspiling()
- gp.getImagesPaths()
- gp.getImagesSourcePath()
- gp.getImagesSourcePathWithGlob(glob)
- gp.getFontsPaths()
- gp.getOtherPaths()
- gp.getExtraParamsByModule(module)
- gp.getCustomPaths(key)
- gp.getCustomPathsWithGlob(key)### Backward compatible methods
- gp.getCssPaths(filepath, glob)
- gp.getAllCssPath(glob)
- gp.getAllJsFile()
- gp.getAllDistPaths()
- gp.getBuildJs()
- gp.getImagePaths()
- gp.getAllImagePaths(glob)
- gp.getFontPaths()#### Utilities
* gp.util.match(filepaths, patterns, options)## Requirement
* Yii 1/2 Packages command# License
MIT © 2021 Gergely Kovács ([email protected])[npm-image]: https://badge.fury.io/js/get-packages.svg
[npm-url]: https://npmjs.org/package/get-packages
[travis-image]: https://travis-ci.com/ggkovacs/getpackages.svg?branch=master
[travis-url]: https://travis-ci.com/ggkovacs/getpackages
[daviddm-image]: https://david-dm.org/ggkovacs/getpackages.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/ggkovacs/getpackages