-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5eb573f
commit c345f5e
Showing
7 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: NPM Publish | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'v2' | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ^14.15.0 || ^16.10.0 || >=18.0.0 | ||
- run: yarn | ||
- run: yarn build | ||
- run: cp ./{package.json,LICENSE,README.md} dist/ | ||
- uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
package: ./dist/package.json | ||
token: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
## Install | ||
|
||
### 1. Install dependencies | ||
### 1. Install package | ||
|
||
```shell | ||
yarn | ||
npm i -g @steroidsjs/gii-fs | ||
``` | ||
|
||
## Start | ||
|
||
### Development mode | ||
### 2. Create config | ||
|
||
Create config.json (sample is gii-fn-config.json.sample) | ||
Create config.json. Sample: | ||
|
||
```shell | ||
yarn start:dev /path/to/config.json | ||
```json | ||
{ | ||
"port": 7800, | ||
"projects": [ | ||
"/Users/user/Projects/backend-nest" | ||
] | ||
} | ||
``` | ||
|
||
### Production mode | ||
## Start | ||
|
||
1. Build | ||
### Production mode | ||
|
||
```shell | ||
yarn build | ||
gii-fs /path/to/config.json | ||
``` | ||
2. Start | ||
|
||
```shell | ||
yarn start:prod /path/to/config.json | ||
``` | ||
It is not necessary to specify the path to the config. Then will be used the default path ~/gii-fs.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"port": 7800, | ||
"projects": [ | ||
"/Users/vladislavkoktashev/Projects/sfu/backend-nest" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env node | ||
|
||
require('./main.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters