Giter Club home page Giter Club logo

placecode's Introduction

Placecode - Dynamic Template Generator

npm version License

Table of Contents

Introduction

Placecode is a powerful npm CLI package that simplifies dynamic template creation for developers. It allows you to generate customizable templates with ease, tailoring them to your specific project needs.

Problem

Starting a new coding project from scratch can be time-consuming and repetitive. Boilerplate code often hinders developers from focusing on the core functionality that matters. Pre-made starter projects or static boilerplates offer some convenience, but they lack the flexibility to cater to individual developers' preferences and project requirements.

Solution

Placecode provides a unique solution to this problem by enabling developers to create dynamic templates effortlessly. With simple comment markers, you can annotate code blocks, files, and folders to specific features defined in the placecode.json file. These dynamic templates can then be shared on the placecode.io, where other developers can select their preferred features and generate a project tailored to their requirements uisng the same placecode CLI.

Features

  • Command-line Interface (CLI) for local template generation.
  • Dynamic template generation based on selected features.
  • Intuitive comment markers for specifying code blocks and files related to specific features.
  • Customizable placecode.json file for defining features and dependencies.
  • Support for a wide range of web frameworks, libraries, and tools.

Getting Started

Please ensure that you have Node.js (version 10 or higher) installed before proceeding with the installation.

To use Placecode, you need to install it globally via npm. Open your terminal and run:

npm install -g placecode

Warning: Make sure to install Placecode globally to ensure proper functionality.

For more details on installation and troubleshooting, refer to the Installation Guide.

Command Reference

  • placecode init: Initialize a Placecode project for dynamic template creation.
  • placecode run: Execute the dynamic template based on the enabled features in placecode.json.
  • placecode re: Revert the changes made by placecode run and restore the original project state.
  • placecode fmt: Format comment markers in your placecode project for consistency.
  • placecode validate: Validate the placecode.json file and comment markers for errors.
  • placecode zpc: Add empty zpc.txt files to every directory for specifying files and folders associated with specific features.
  • placecode zpc -rm: Remove all empty zpc.txt files from the project.
  • placecode gen <template-code-from-placecode.io>: Generate templates from existing dynamic templates from placecode.io.

For more details on each command and their usage, refer to the Command Reference Guide.

Documentation

For comprehensive documentation on using Placecode, creating dynamic templates, configuration options, and more, please visit the official documentation.

Contribution

We welcome and appreciate contributions from the community. Whether it's bug fixes, new features, or improvements to existing code, feel free to submit a pull request. Please refer to our Contribution Guidelines for more information.

License

This project is licensed under the MIT License.

placecode's People

Contributors

dilshanhiruna avatar

Watchers

 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.