@one-platform/opc-base
Advanced tools
Comparing version 1.1.2-beta to 1.1.4-beta
{ | ||
"name": "@one-platform/opc-base", | ||
"version": "1.1.2-beta", | ||
"version": "1.1.4-beta", | ||
"description": "It contains shared components like layout, authentication provider for one platform", | ||
@@ -22,4 +22,4 @@ "main": "dist/opc-base.js", | ||
"dev": "wds --watch --open dev --port 5500", | ||
"test": "jest --detectOpenHandles --verbose --forceExit", | ||
"test:debug": "npm run build && DEBUG_MODE=1 jest --verbose=true" | ||
"test": "wtr", | ||
"test:watch": "wtr --watch" | ||
}, | ||
@@ -42,6 +42,8 @@ "files": [ | ||
"@babel/preset-env": "7.15.0", | ||
"@one-platform/opc-feedback": "0.0.9-prerelease", | ||
"@one-platform/opc-menu-drawer": "^0.1.2-prerelease", | ||
"@one-platform/opc-nav": "0.0.2-prerelease", | ||
"@one-platform/opc-notification-drawer": "^0.1.2-prerelease", | ||
"@esm-bundle/chai": "^4.3.4-fix.0", | ||
"@one-platform/opc-feedback": "0.0.10-prerelease", | ||
"@one-platform/opc-menu-drawer": "^0.2.2-prerelease", | ||
"@one-platform/opc-nav": "0.0.4-prerelease", | ||
"@one-platform/opc-notification-drawer": "^0.1.3-prerelease", | ||
"@open-wc/testing": "^3.0.3", | ||
"@rollup/plugin-commonjs": "19.0.0", | ||
@@ -51,11 +53,6 @@ "@rollup/plugin-image": "2.0.6", | ||
"@rollup/plugin-typescript": "8.2.1", | ||
"@types/jest": "26.0.24", | ||
"@types/jest-axe": "3.5.2", | ||
"@web/dev-server": "0.1.18", | ||
"babel-jest": "27.0.6", | ||
"@web/dev-server-esbuild": "^0.2.16", | ||
"@web/test-runner": "^0.13.22", | ||
"electron": "13.1.8", | ||
"jest": "26.6.3", | ||
"jest-axe": "5.0.1", | ||
"jest-electron": "0.1.11", | ||
"jest-environment-jsdom-sixteen": "2.0.0", | ||
"rimraf": "3.0.2", | ||
@@ -68,3 +65,2 @@ "rollup": "2.52.3", | ||
"rollup-plugin-terser": "7.0.2", | ||
"ts-jest": "26.5.6", | ||
"tslib": "2.3.0", | ||
@@ -71,0 +67,0 @@ "typescript": "4.3.4" |
@@ -7,9 +7,11 @@ # Opc-Base | ||
Copy the `config.example.json` file in `dev folder`, rename it as `config.json` and provide the configuration values needed to load the variables. | ||
Copy the `config.example.js` file in `dev folder`, rename it as `config.js` and provide the configuration values needed to load the variables. | ||
For testing es module copy the `config.es.example.js` file in `dev folder`, rename it as `config.es.js` and provide the configuration values needed to load the variables. | ||
### Installation | ||
- ```sh | ||
```sh | ||
npm install | ||
``` | ||
``` | ||
@@ -20,11 +22,11 @@ ### Development Setup | ||
- ```sh | ||
```sh | ||
npm run build:watch | ||
``` | ||
``` | ||
To start the development server | ||
- ```sh | ||
```sh | ||
npm run dev | ||
``` | ||
``` | ||
@@ -36,24 +38,42 @@ ## Docs | ||
## Available Scripts | ||
## Build | ||
In the project directory, you can run: | ||
This projects uses typescript with rollup for bundling | ||
### `npm run dev` | ||
To build the project: | ||
To start the development server. Server will be available in `localhost:5000/dev` | ||
```bash | ||
npm run build | ||
``` | ||
### `npm test` | ||
To watch for changes and rebuild the files: | ||
Runs the e2e test cases with jest | ||
```bash | ||
npm run build:watch | ||
``` | ||
### `npm run build` | ||
Inorder to preview the changes you made the project uses web [@web-dev-server](https://modern-web.dev/docs/dev-server/overview/): | ||
Generates build in production mode. Build will be available in `dist` directory. | ||
```bash | ||
npm run dev | ||
``` | ||
### `npm run build:watch` | ||
## Testing | ||
To watch for any change in source code and run the build again | ||
Testing is done using [@web/test-runner](https://modern-web.dev/docs/test-runner/overview/) and [@open-wc/testing](https://open-wc.org/docs/testing/testing-package/). Remember to build the package as some test are done using build file due to dependency import issues. | ||
To run test: | ||
```bash | ||
npm run test | ||
``` | ||
For local testing during development | ||
```bash | ||
npm run test:watch | ||
``` | ||
## Contributors | ||
👤 **Akhil Mohan** ([@akhilmhdh](https://github.com/akhilmhdh)) |
@@ -9,7 +9,3 @@ { | ||
"noEmitOnError": true, | ||
"lib": [ | ||
"es2016", | ||
"DOM", | ||
"DOM.Iterable" | ||
], | ||
"lib": ["es2016", "DOM", "DOM.Iterable"], | ||
"allowSyntheticDefaultImports": true, | ||
@@ -20,10 +16,10 @@ "experimentalDecorators": true, | ||
"esModuleInterop": true, | ||
"outDir": "./dist", | ||
"rootDir": "./", | ||
"baseUrl": "./src" | ||
"outDir": "./src", | ||
"rootDir": "./src", | ||
"baseUrl": "./src", | ||
"allowJs": true, | ||
"skipLibCheck":true, | ||
}, | ||
"include": [ | ||
"./src/**/*.ts" | ||
], | ||
"include": ["./src/**/*.ts"], | ||
"exclude": [] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2754172
24
3084
77