Skip to content

Commit

Permalink
Project restructured
Browse files Browse the repository at this point in the history
  • Loading branch information
hirensoni913 committed Sep 14, 2022
1 parent 7442920 commit c1422fe
Show file tree
Hide file tree
Showing 18 changed files with 2,403 additions and 11,363 deletions.
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
["@babel/preset-env", {
"modules": false
}],
["@babel/preset-react"]
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties"
]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
23 changes: 23 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parser": "babel-eslint",
"extends": [
"standard",
"standard-react"
],
"env": {
"es6": true
},
"plugins": [
"react"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
// don't force es6 functions to include space before paren
"space-before-function-paren": 0,

// allow specifying true explicitly for boolean props
"react/jsx-boolean-value": 0
}
}
16 changes: 13 additions & 3 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,38 @@
name: Node.js Package

on:
push:
branches: [master]
release:
types: [created]
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: tagName
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- name: update the version with TAG
run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json
- run: yarn install
- run: yarn build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: tagName
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
scope: openimis
- name: update the version with TAG
run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json
- run: yarn install
- run: yarn build
- run: npm publish --access public
Expand All @@ -40,11 +46,15 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: tagName
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- name: update the version with TAG
run: echo $(jq --arg a "$GIT_TAG_NAME" '.version = ($a)' package.json) > package.json
- run: yarn install
- run: yarn build
- run: npm publish
Expand Down
18 changes: 9 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
# See https://help.github.com/ignore-files/ for more about ignoring files.

# testing
/coverage
# dependencies
node_modules

# production
/build
# builds
build
dist
.rpt2_cache

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand All @@ -21,3 +20,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
Loading

0 comments on commit c1422fe

Please sign in to comment.