Skip to content

Commit

Permalink
Switch to monorepo
Browse files Browse the repository at this point in the history
Signed-off-by: Vit Gottwald <[email protected]>
  • Loading branch information
VitGottwald committed Aug 26, 2020
1 parent 33f9088 commit c76098f
Show file tree
Hide file tree
Showing 278 changed files with 55,688 additions and 1,551 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
insert_final_newline = true
end_of_line = lf
indent_style = space
max_line_length = 85

[*.{js,ts,css}]
indent_size = 4

[*.{json,yml}]
indent_size = 2
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Set default behavior to automatically normalize line endings.
* text=auto

* text=auto eol=lf
7 changes: 4 additions & 3 deletions .github/workflows/theia-zowe-explorer-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
# check out source
- uses: actions/checkout@v2

# install yarn
- run: npm install -g yarn

# install dependencies
# equivalent to `npm ci`
# - run: yarn install --frozen-lockfile
- run: npm ci
- run: yarn install --frozen-lockfile

# copy test data file needed for build :-(
- name: Create test data file
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/zowe-exlorer-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: npm install
# install yarn
- run: npm install -g yarn

- run: yarn install --frozen-lockfile

# run audit on 1 system to avoid overloading the audit API
- name: Audit from Windows / Node 12.x
run: npm audit --production --audit-level=moderate
run: yarn audit --production --level=moderate
if: matrix.os == 'windows-latest' && matrix.node-version == '12.x'

- name: Create test data file
run: cp resources/testProfileData.example.ts resources/testProfileData.ts

- run: npm run build --if-present
- run: yarn run build --if-present

- run: npm test
- run: yarn test
env:
CI: true
NODE_OPTIONS: --max_old_space_size=4096
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
out
lib
logs
resources/temp
resources/Favorites.txt
Expand All @@ -12,6 +13,9 @@ vscode-extension-for-zowe*.vsix
.history
.DS_Store
.idea

temp
*.zip
*.vsix
*.tgz
# used as workspace for theia test
.tmp
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist
out
lib
yarn.lock
*.js
results
1 change: 1 addition & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
printWidth: 85
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["esbenp.prettier-vscode"]
}
97 changes: 53 additions & 44 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,57 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "Unit Tests (Jest)",
"request": "launch",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--runInBand"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--verbose"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "build dev watch",
"smartStep": true
},
{
"name": "Integration Tests (Mocha)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/__tests__/__integration__"
],
"outFiles": [
"${workspaceFolder}/out/__tests__/**/*.js"
],
"preLaunchTask": "Pretest"
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Zowe Explorer VS Code Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/packages/zowe-explorer",
"--verbose"
],
"outFiles": ["${workspaceFolder}/packages/zowe-explorer/out/**/*.js"],
"preLaunchTask": "build dev watch",
"smartStep": true
},
{
"name": "Run Zowe Explorer FTP VS Code Extensionn",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/packages/zowe-explorer-ftp-extension",
"--verbose"
],
"outFiles": [
"${workspaceFolder}/packages/zowe-explorer-ftp-extension/out/**/*.js"
],
"preLaunchTask": "build dev watch",
"smartStep": true
},
{
"type": "node",
"name": "Zowe Explorer Unit Tests (Jest)",
"request": "launch",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": ["--runInBand"],
"cwd": "${workspaceFolder}/packages/zowe-explorer",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"name": "Zowe Explorer Integration Tests (Mocha)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/packages/zowe-explorer",
"--extensionTestsPath=${workspaceFolder}/packages/zowe-explorer/out/__tests__/__integration__"
],
"outFiles": ["${workspaceFolder}/out/__tests__/**/*.js"],
"preLaunchTask": "Pretest"
}
]
}
43 changes: 27 additions & 16 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false,
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
// Make sure people do not accidentally forget to sign
"git.alwaysSignOff": true,
"typescript.tsdk": "node_modules/typescript/lib"
}
"files.exclude": {
"out": false,
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},

// Make sure people do not accidentally forget to sign
"git.alwaysSignOff": true,

"typescript.tsdk": "node_modules/typescript/lib",
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
// Standardize on the Prettier formatter
"editor.defaultFormatter": "esbenp.prettier-vscode",
// Enforce prettier on save
"editor.formatOnSave": true,
"npm.packageManager": "yarn",
"eslint.packageManager": "yarn",
"eslint.workingDirectories": [
{ "directory": "packages/zowe-explorer-ftp-extension", "changeProcessCWD": true }
]
}
12 changes: 8 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
"group": "build",
"isBackground": true,
"type":"shell",
"command": "npm",
"options": {
"cwd": "packages/zowe-explorer",
},
"command": "yarn",
"args": [
"run",
"watch"
],
"problemMatcher":[
Expand Down Expand Up @@ -63,9 +65,11 @@
"group": "build",
"isBackground": false,
"type": "shell",
"command":"npm",
"options": {
"cwd": "packages/zowe-explorer",
},
"command":"yarn",
"args": [
"run",
"build:integration"
]
}
Expand Down
Loading

0 comments on commit c76098f

Please sign in to comment.