-
Notifications
You must be signed in to change notification settings - Fork 24
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
b98364d
commit 76b539b
Showing
21 changed files
with
145 additions
and
67 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 |
---|---|---|
|
@@ -5,5 +5,6 @@ _config.yml | |
.gitattributes | ||
.gitignore | ||
build.js | ||
Dockerfile | ||
publish.sh | ||
test.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# TODO: build.js should work with env to get paths | ||
|
||
FROM node:latest | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
RUN mkdir /app | ||
COPY ./build.js /apps | ||
COPY ./package*.json /app | ||
WORKDIR /app | ||
RUN npm i | ||
CMD [ "node", "build.js" ] | ||
|
||
# docker build -t remisa/shellman:latest . | ||
# docker push remisa/shellman:latest | ||
# docker run --rm -v "${PWD}":/shellman remisa/shellman:latest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
# Namespaces | ||
|
||
- Directory structure depth is fixed to one | ||
- Don't use dot (`.`) in file names | ||
`nsroot` is the root folder of namespaces and each namespace has its own folder inside it. | ||
|
||
Only one depth level is allowed (due to readability). | ||
|
||
Add new folder for a new namespace. | ||
|
||
Put snippet inside appropriate folder and run npm build task: | ||
|
||
```bash | ||
$ npm run build | ||
``` | ||
|
||
Bump version in `package.json` file according to [SemVer](https://semver.org). | ||
|
||
## Caution: | ||
|
||
- Directory structure depth is fixed to one. | ||
- Don't use dot (`.`) in file and directory names. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"prefix": "archive compress tar.xz", | ||
"body": "tar -cJf ${1:/path/to/archive}.tar.xz ${2:/path/to/directory-or-file}\n", | ||
"description": "compress file/folder to a .tar.xz file" | ||
} |
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,5 @@ | ||
{ | ||
"prefix": "archive decompress tar.xz", | ||
"body": "tar -C ${1:/extract/to/path} -xf ${2:/path/to/archive}.tar.xz\n", | ||
"description": "decompress a .tar.xz file to specified path" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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