-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from 3mp3ri0r/feature/update-foam-cli
Update foam cli to foam-core 0.17.6
- Loading branch information
Showing
74 changed files
with
11,942 additions
and
2,009 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,43 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"env": { "node": true, "es6": true }, | ||
"plugins": ["@typescript-eslint", "import", "jest"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"plugin:jest/recommended" | ||
], | ||
"rules": { | ||
"no-use-before-define": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": ["**/src/test/**", "**/src/**/*{test,spec}.ts"] | ||
} | ||
] | ||
}, | ||
"settings": { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [".ts", ".tsx"] | ||
}, | ||
"import/resolver": { | ||
"typescript": { | ||
"alwaysTryTypes": true | ||
} | ||
} | ||
}, | ||
"ignorePatterns": ["**/core/common/**", "*.js"], | ||
"reportUnusedDisableDirectives": true | ||
} |
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,47 @@ | ||
|
||
|
||
name: integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16' | ||
- name: Install Dependencies | ||
run: yarn | ||
- name: Check Lint Rules | ||
run: yarn lint | ||
|
||
test: | ||
name: Build and Test | ||
strategy: | ||
matrix: | ||
os: [macos-10.15, ubuntu-20.04, windows-2019] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
OS: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16' | ||
- name: Install Dependencies | ||
run: yarn | ||
- name: Build Packages | ||
run: yarn build | ||
- name: Run Tests | ||
run: yarn test |
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,20 @@ | ||
name: Publish Package to npmjs | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# Setup .npmrc file to publish to npm | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
# Defaults to the user or organization that owns the workflow file | ||
scope: '@octocat' | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn publish | ||
env: | ||
NODE_AUTH_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
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,36 @@ | ||
{ | ||
"rules": { | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"name": "vscode", | ||
"message": "Core submodule must not depend on VS Code." | ||
} | ||
] | ||
// Ideally we would also prevent the core module from depending on other modules | ||
// but I have been struggling to get it to work. | ||
// For future reference, below are some configurations I think should achieve this | ||
// (but I couldn't manage to get working). | ||
// | ||
// "import/no-internal-modules": [ | ||
// "error", | ||
// { | ||
// "allow": ["./src/core"] | ||
// } | ||
// ] | ||
// "import/no-restricted-paths": [ | ||
// "error", | ||
// { | ||
// "zones": [ | ||
// { | ||
// "target": "./src/core", | ||
// "from": "./src/(!core)", | ||
// "message": "Core module can't have outside dependencies." | ||
// } | ||
// ] | ||
// } | ||
// ] | ||
// "import/no-relative-parent-imports": "error" | ||
// note: https://github.com/import-js/eslint-plugin-import/issues/1610 | ||
} | ||
} |
Oops, something went wrong.