Git Product home page Git Product logo

base.proj's Introduction

base.proj

Create a new project from one or more project templates using provided PHP or BASH script. More advanced functionality is provided by the PHP scripts, but the BASH script has few dependencies.

Early stages, usage and files subject to change.

PHP usage

Use bin/console create to create a new project at a given directory with 0 or more project types, where choosing a project type copies the files from that project type in the templates directory into the new project directory. The files in templates/base will always be added to the project. Usage looks like:

bin/console create git php dest

to create a new project in a folder dest with the base, git, and php project type folder contents.

There is also some project management. Create a project in a defined parent folder by prefixing a path with ":". Use the open subcommand to open a given project with a defined command. More commands will likely be added to help with projects.

With the default command script, a console.local.yml or console.local.php can be added to the config directory using Symfony style configuration to change settings, with the baseProjOpts specifying configuration options, eg:

parameters:
  baseProjOpts:
    openCommand: 'gvim'
    projPath: '/home/me/projects'

The script makes use of some Symfony console commands, which make use of a PHP class, TJM\BaseProj\BaseProj(null, array). This can be used for programatic project management.

BASH usage

Use bin/create to create a new project much like the PHP version, except without advanced merging and other features. Usage looks like:

bin/create git php dest

Requires bash executable to exist locally as well as rsync and mkdir commands (common on Mac OS X, Linux, BSD).

License

SPDX-License-Identifier: 0BSD OR Unlicense OR CC0-1.0

base.proj's People

Contributors

tobymackenzie avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.