1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

publish to npm

This commit is contained in:
ido 2014-12-30 18:10:18 +02:00
parent 71af8eb7ad
commit 2b20484bf0
4 changed files with 7 additions and 10 deletions

2
.gitignore vendored
View File

@ -16,3 +16,5 @@ npm-debug.log
### bower ### ### bower ###
/bower_components/* /bower_components/*
/web

View File

@ -20,5 +20,6 @@ npm-debug.log
/test /test
### gh-pages content ### ### gh-pages content ###
index.html /index.html
playground /playground
/web

View File

@ -33,7 +33,7 @@ Some love JSX, some don't. We don't. More specifically, it seems to us that JSX
## Installation ## Installation
You can install react-templates using npm: You can install react-templates using npm:
```shell ```shell
npm install git+ssh://git@github.com:wix/react-templates -g npm install react-templates -g
``` ```
## Usage ## Usage
@ -41,9 +41,6 @@ npm install git+ssh://git@github.com:wix/react-templates -g
rt [file.rt|dir]* [options] rt [file.rt|dir]* [options]
``` ```
**src/cli.js < filename.rt >**
*(you might need to provide execution permission to the file)* ?
Note that in most cases, this package will be wrapped in a Grunt task, so that cli will not be used explicitly. Note that in most cases, this package will be wrapped in a Grunt task, so that cli will not be used explicitly.
[grunt-react-templates](https://github.com/wix/grunt-react-templates) [grunt-react-templates](https://github.com/wix/grunt-react-templates)

View File

@ -1,10 +1,7 @@
{ {
"name": "react-templates", "name": "react-templates",
"version": "0.1.2", "version": "0.1.3",
"description": "Light weight templates for react -> write html get valid react code", "description": "Light weight templates for react -> write html get valid react code",
"publishConfig": {
"registry": "http://repo.dev.wix/artifactory/api/npm/npm-local"
},
"main": "./src/cli.js", "main": "./src/cli.js",
"bin": { "bin": {
"rt": "./bin/rt.js" "rt": "./bin/rt.js"