Build your entire project with one command 🚀

Overview

Dev Template

dt --template mvc

No more installing and configuring all basic dependencies manually every time you start a new project. the dev template can install and configure everything with a single command. A CLI that runs templates with a sequence of commands to launch your projects. Anyone (including you) can create a template that will install and run the commands needed to start your projects.

current version semantic-release

Installing the command line tool

The dev template is currently tested on Node.js 14 & 16, although it may work on older versions of Node.js. You must also have npm 6 or higher.

you need to have installed: git, npm and node

Installation is as simple as running the following command (if you see EACCES error, reading fixing npm permissions may help):

npm install -g dev-template

Example

Create and open a new empty folder and run our hello-world as an example. wait until the process finishes and run yarn dev after starting the server open your browser at http://localhost:3000 and see if it is showing "Hello World!"

mkdir example-dt
cd example-dt
dt --template hello-world
yarn dev

How to use

To get started you need to keep in mind one of the templates created by the community for the dev template, see the list if you don't know one by heart.

Now run follow the instructions in template documentation or only run:

dt --template {template-name}

You can get the template name into the list.

to see the template documentation click on template card in the list

footer

if you want to contribute to the project read the terms of contribution. if you want to create your own template for everyone to use read the template documentation

Comments
  • docs: add example of templates in template documentation

    docs: add example of templates in template documentation

    fix #14

    When creating this PR, I make sure that I agree with the terms described in:

    https://github.com/dtemplate/dev-template/blob/HEAD/CONTRIBUTING.md

    opened by Theryston 0
  • test: add utils test

    test: add utils test

    When creating this PR, I make sure that I agree with the terms described in:

    https://github.com/dtemplate/dev-template/blob/HEAD/CONTRIBUTING.md

    fix #11

    opened by Theryston 0
  • write tests

    write tests

    I could see that the tests are only written for some utils. I think it would be nice to write the tests for all utils runners and all files that execute a function.

    opened by Theryston 0
  • command cd don't work

    command cd don't work

    Describe the bug

    If you create a template that runs the cd example command (this in the run object that receives an array of objects) it doesn't work and the next commands continue to be executed in the same folder. does not make folder changes.

    Code that caused the error

     {
      "name": "...",
      "version": "...",
      "description": "...",
      "successfullyMessages": [
        "..."
      ],
      "run": [
        "cd example"
      ]
    }
    

    Additional context

    I think a cd:folderPath key could be created to solve this. But whoever has a better solution can comment here.

    bug 
    opened by Theryston 0
  • Template typescript support

    Template typescript support

    Describe the feature

    Currently dt (dev-template) is not supporting writing templates in typescript.

    Problems

    The dev-template is written in typescript but the code that runs in the cli when they call dt in the terminal is a compiled code (ie javascript) so javascript will never understand typescript this because the typescript is typed what for javascript is an error typing

    Solution

    The only viable solution I could see was to add a new field in the template.json (file where the template data is in the template repository itself) with the name build for example, which is an array of strings. then make the CLI execute these commands (if any) and in these commands the template creators must pass the commands to build the template

    example of new template.json:

    {
      "name": "...",
      "version": "1.0.0",
      "description": "...",
      "build": [
          "tsc"
       ],
      "successfullyMessages": [
        "..."
      ],
      "run": [
        "..."
        "file:/dist/my-file-name.js"
      ]
    }
    
    feature 
    opened by Theryston 0
  • Install template dependencies

    Install template dependencies

    Describe the bug

    When dt runs a template it clones the template repository on github to the folder .dev-template/temp/{template-name} in the root where the command dt --template {do-name was executed -template}. But the TEMPLATE dependencies themselves are being installed in the root from where the command dt --template {template-name} was run, the idea is just the opposite, everything that has to do with templates should be in the folder .dev-template/temp/{template-name} and then it will be deleted. so that there is no remainder of the template that affects the structure of the project for the end user

    Code that caused the error

    dt --template **
    

    Additional context

    A big problem is if the same dependencies are used in the template and in the project that the template uses, basically it uninstalls the dependencies that the template uses, if this keeps happening and in a template use the TypeScript dependency and the project that the template generates use also have TypeScript. after the template process the typescript will be uninstalled. this because dt will understand that the typescript is a dependency of the template

    bug 
    opened by Theryston 0
Releases(v1.0.2)
Owner
dev template
Official dt templates created by the community
dev template
This tool uses native browser APIs to take screenshots of a given web page, tab, window, or the user's entire screen.

This tool uses native browser APIs to take screenshots of a given web page, tab, window, or the user's entire screen.

xataio 761 Jan 1, 2023
The entire bee movie script, but in commit messages.

Project Name Project Description Live Version This page is not yet deployed. Feedback and Bugs If you have feedback or a bug report, please feel free

Naomi Carrigan 4 Oct 1, 2022
Download all Moodle files with one click. This is a Chrome extension built to save time and effort from downloading files manually one by one!

Moodle Downloader Extension Moodle downloader extension for Chrome. The extension is tested with both the TUM moodle and the official moodle demo. Not

Zhongpin Wang 8 Nov 15, 2022
Run a command, watch the filesystem, stop the process on file change and then run the command again...

hubmon Run a command, watch the filesystem, stop the process on file change and then run the command again... Install You can install this command lin

Hubert SABLONNIÈRE 7 Jul 30, 2022
Supercharge your All-in-One workspace with the Command Palette within Notion 🕹️

Notion Palette Supercharge your All-in-One workspace with the Command Palette within Notion ??️ Notion Palette is a free and open source extension, yo

Ruter 13 Nov 10, 2022
Easiest way to build documentation for your project. No config or build required, hosted on @netlify.

Hyperdocs is the simplest way you can create documentation for your project. It blends the best of all the other documentation tools in one. Hyperdocs

Lalit 76 Dec 22, 2022
In this project I have build a To Do List app that you can list, add, delete and manage your daily tasks better. Build with HTML, CSS, JS, ES6, JSON

ToDo List This project is build by javascript web packages which can add and remove daily tasks. Built With Html Css Javascript Sublime Text Author ??

Sahar Saba Amiri 7 Oct 25, 2022
Create nbundle-powered Notion apps with one command

⚠️ This project is under development and is not ready for public use. All 1.0.x releases are considered alpha releases, are not stable, and may have b

nbundle 11 Nov 29, 2022
Tag semantically with one command.

gsvt Create git semver tags with additional major and minor tags easily Example Let's say the latest tag is v2.1.1: Command Result gsvt v2.1.2, v2.1,

ViPro (京京) 3 Sep 24, 2022
Zenload - "Load couple loaders and apply transform one-by-one

Zenload Load couple loaders and apply transforms one-by-one. Install npm i zenload -g How to use? With env vairable ZENLOAD: NODE_OPTIONS='"--loader

coderaiser 1 Jan 25, 2022
A real time Web-App for one to one chatting.

We-Vibe A real time web-app for one to one chatting. The project is broadly divided into two parts - Server and Public (client). The Socket.io module

Sushmita Kumari 6 Dec 15, 2022
Vite plugin to client bundle i18next locales composited from one to many json/yaml files from one to many libraries. Zero config HMR support included.

vite-plugin-i18next-loader yarn add -D vite-plugin-i18next-loader Vite plugin to client bundle i18next locales composited from one to many json/yaml f

AlienFast 4 Nov 30, 2022
A command-line tool to convert Project Zomboid map data into Deep Zoom format

pzmap2dzi pzmap2dzi is a command-line tool running on Windows to convert Project Zomboid map data into Deep Zoom format. Features Supports both python

Min Xiang 14 Dec 31, 2022
Veselin Petranchev 2 Oct 11, 2022
Awesome Books. In this project, I built a basic website that allows users to add/remove books from a book list. This project is build with JavaScript.

Event Page Awesome Books. In this project, I built a basic website that allows users to add/remove books from a book list. Built With HTML CSS JavaScr

Miftah Amin 16 Feb 28, 2022
Awesome book with ES6, this project is build using HTML,CSS, JavaScript ES6 the project allows you to add books and save them with the author , for another time checks

Project Name Awsome books Description the project. adding books daynamiclly Built With Major languages Frameworks Technologies used Live Demo (if avai

Alzubair Alqaraghuli 5 Jul 25, 2022
Emem Ekpo 7 Sep 9, 2022