https://github.com/rajat19/jsniper
node cli that helps to create a new project using predefined templates
https://github.com/rajat19/jsniper
node template typescript
Last synced: 2 months ago
JSON representation
node cli that helps to create a new project using predefined templates
- Host: GitHub
- URL: https://github.com/rajat19/jsniper
- Owner: rajat19
- License: mit
- Created: 2020-09-17T14:16:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T14:56:56.000Z (about 3 years ago)
- Last Synced: 2026-01-04T01:20:29.277Z (5 months ago)
- Topics: node, template, typescript
- Language: JavaScript
- Homepage: https://rajat19.github.io/jsniper/
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README








# jsniper
basic templating script to start your coding with typescript/javascript
You can add your own templates or can extend another templates inside your template
## Install
There are two ways to install the cli (Do any one)
- From npm registry
```bash
npm install -g jsniper
jsniper
```
- From github registry
```bash
npm install -g @rajat19/jsniper
jsniper
```
## How to run this project (if you want to code)
- Create a new template in `templates` folder or use already existing ones
- Then run following commands
```bash
npm run build && npm link
jsniper
```
## Extending templates
A template can extend some other template as well
You need to create a file `.extends.json` which just contains array with names of templates that needs to be copied from
Check [.extends.json](templates/node-gql-mongo/.extends.json)
This just contains
```json
[
"node-basic"
]
```
## Publish
This package uses github actions to publish to both npm as well as github registries
Check `.github/workflows/npm-publish.yml` file for more details
## Contributing
You can contribute by adding new templates in templates folder