Skip to content

Commit

Permalink
Milestone 0
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsartem authored Jun 2, 2022
1 parent 4d5a8e1 commit da14ac8
Show file tree
Hide file tree
Showing 58 changed files with 21,557 additions and 7,986 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ root = true
[*]
indent_style = space
indent_size = 2
max_line_length = 80
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
Expand Down
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/changelog_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"template": "${{CHANGELOG}}\n\n${{UNCATEGORIZED}}",
"pr_template": "- #${{NUMBER}} ${{TITLE}}",
"empty_template": "- no changes"
}
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: "release"

on:
push:
tags:
- "v*"

jobs:
npm-publish:
name: "Publish"
runs-on: ubuntu-latest
defaults:
run:
shell: bash

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

### Set version
- name: Set version to ${{ env.RELEASE_VERSION }}
run: npm version --new-version --allow-same-version ${{ env.RELEASE_VERSION }} --no-git-tag-version

### Publish to NPM registry
- uses: actions/setup-node@v1
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"

- run: npm i
- run: npm run build

- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

### Create a release
- name: Build Changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v1
with:
configuration: ".github/workflows/changelog_config.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release
id: release
uses: softprops/action-gh-release@v1
with:
name: Fluence CLI ${{ env.RELEASE_VERSION }}
tag_name: ${{ env.RELEASE_VERSION }}
body: ${{steps.changelog.outputs.changelog}}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

name: "tag"

on:
workflow_dispatch:

jobs:
tag:
name: "Tag"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.PERSONAL_TOKEN }}
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
*-error.log
/.nyc_output
/dist
/lib
/artifacts
/tmp
/--fix
/yarn.lock
node_modules
oclif.manifest.json
.eslintcache
/schemas
/fluence.yaml
.fluence
/src/aqua
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npm run pre-commit
2 changes: 2 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
9 changes: 2 additions & 7 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"require": [
"test/helpers/init.js",
"ts-node/register"
],
"watch-extensions": [
"ts"
],
"require": ["test/helpers/init.js", "ts-node/register"],
"watch-extensions": ["ts"],
"recursive": true,
"reporter": "spec",
"timeout": 60000
Expand Down
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"editorconfig.editorconfig",
"streetsidesoftware.code-spell-checker",
"redhat.vscode-yaml",
"FluenceLabs.aqua-syntax-highlight"
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cSpell.words": [
"fluence",
"Fluence",
"oclif"
],
"aquaSettings.imports": [
"/home/shams/.fluence/aqua",
"/home/shams/Projects/work/fluence-cli/artifacts"
]
}
5 changes: 5 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Fluence CLI
Copyright 2022 Fluence Labs Limited

This product includes software developed at
Fluence Labs Limited (https://fluence.network/).
Loading

0 comments on commit da14ac8

Please sign in to comment.