JSPM

@vicoders/cli-support

1.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 3
    • Score
      100M100P100Q24175F

    Vicoders CLI Support Module

    Package Exports

    • @vicoders/cli-support

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vicoders/cli-support) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Vicoders CLI Handler

    Getting Started

    Fork this repo to start build new command

    Steps

    Add NPM dependency

    /**
     * Add package dependency to package.json
     *
     * @param name
     * @param options
     * @param options.type NodeDependencyType
     * @param options.version string
     * @param options.overwrite boolean
     */
    addDependency(name, options?)

    Install NPM dependency

    import packageIntall from './utility/package-install';
    
    /**
     * Install NPM dependencies
     *
     * @param options NodePackageTaskOptions
     * @param options.directory
     * @param options.packageName
     * @param options.packageManager ["npm", "yarn"]
     */
    packageIntall(options?)

    Install PHP package via composer

    import phpPackageIntall from './utility/php-package-install';
    
    /**
     * Install NPM dependencies
     *
     * @param options NodePackageTaskOptions
     * @param options.directory
     * @param options.packageName
     */
    phpPackageIntall(options?)

    Add new line to a file

    import { appendTo } from './utility/append-to-file/append-to-file';
    
    /**
     * Install NPM dependencies
     *
     * @param file string
     * @param content string
     */
    appendTo(file, content);
    import { WordpressService } from './services/Php/Wordpress/WordpressService';
    import { App } from '@nsilly/container';
    
    /**
     * Declare new class in provider
     *
     * @param provider string
     * @param classname string
     */
    App.make(WordpressService).declareInServiceProvider(provider, classname);
    // App.make(WordpressService).declareInServiceProvider('app/Providers/BlockServiceProvider.php', `App\\Blocks\\FancyBoxBlock::class,`)