Skip to content

Commit

Permalink
added common lib and core modules
Browse files Browse the repository at this point in the history
  • Loading branch information
snehalsabade committed Jan 31, 2024
1 parent 40cbef5 commit 02269ab
Show file tree
Hide file tree
Showing 4,132 changed files with 1,783,981 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug
---

### Description

Please describe your issue in few words here.

#### How to reproduce

Describe the bug and list the steps you used when the issue occurred.

#### Screenshots

If applicable, add screenshots to help explain your problem.

### Versions

* Last commit id on master:
* Operating System (lsb_release -a):
* Browser [e.g. chrome, safari]:

### Logs

Any logs (if any) generated in
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Request a new feature in Shiksha Frontend
labels: enhancement
---

### Description

Please describe your situation in few words here.

#### Steps followed and expected result

Describe the steps followed by you and your expected results after following the steps.

#### Screenshots

If applicable, add screenshots to help explain your problem.
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- Please refer to CONTRIBUTING.md (https://github.com/shiksha-platform/frontend-modulefederation/blob/main/CONTRIBUTING.md)
before creating the pull request to make sure you follow all the standards. -->

## Description

Please describe the changes in your pull request in few words here.

### Changes

List the changes done to fix a bug or introducing a new feature.

## How to test

Describe the steps required to test the changes proposed in the pull request.

Please consider using the closing keyword if the pull request is proposed to
fix an issue already created in the repository
(https://help.github.com/articles/closing-issues-using-keywords/)
37 changes: 37 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI/CD check

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

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

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run prettier test
run: yarn format:check

# - name: Run the tests and generate coverage report
# run: yarn test

- name: Build
run: yarn build
41 changes: 41 additions & 0 deletions .github/workflows/sandbox-build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CICD
on:
push:
branches:
- newaltv1
jobs:
build:
name: build-deploy-to-sandbox
environment: sandbox
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
yarn install
yarn workspace @shiksha/common-lib build
yarn install
yarn build
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.SSH_HOST }}
- name: Adding known hosts
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
- name: Copy Package
run: |
sh ./scripts/pack-prod-build.sh
rsync shiksha-ui.tar ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/alt.uniteframework.io/shiksha-ui.tar
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /var/www/alt.uniteframework.io/public
rm -rf *
cp ../shiksha-ui.tar ./
tar -xvf shiksha-ui.tar .
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 3pd
bower_components/*
jspm_packages/*
node_modules/*

# Cache files
.cache
.eslintcache
.parcel-cache
.npm
.yarn/cache
.yarn/unplugged
.yarn/install-state.gz

# Dist / builds
build/*
builds/*
dist/*
prod-build/*
*.tar
*.zip

# Editor-related files
.idea
.vscode
.vscode-test

# Env files
.env
.env.*

# Log files
lerna-debug.log
npm-debug.log
yarn-error.log
yarn-debug.log
.serverless

# OS files
.DS_Store
18 changes: 18 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Dependency directories
node_modules/

# dependencies
package.json
package-lock.json

# testing
/coverage

# production
/build
/**/build
/prod-build
.github/
/public
.min.js
.min.css
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"useTabs": false
}
Loading

0 comments on commit 02269ab

Please sign in to comment.