Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci_tests

on:
pull_request:
branches:
- master
push:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: dependencies
- run: npm i
- run: npm run lint
- run: npm run test

15 changes: 10 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "react-json-view",
"description":
"Interactive react component for displaying javascript arrays and JSON objects.",
"description": "Interactive react component for displaying javascript arrays and JSON objects.",
"version": "1.19.1",
"main": "dist/main.js",
"dependencies": {
Expand Down Expand Up @@ -56,17 +55,13 @@
"react-dom": "^16.0.0 || ^15.5.4"
},
"scripts": {
"build":
"webpack --config webpack/webpack.config.js -p --display-error-details --progress --optimize-minimize",
"build": "webpack --config webpack/webpack.config.js -p --display-error-details --progress --optimize-minimize",
"prebuild": "npm run test:unit",
"build:demo":
"webpack --config webpack/webpack.config-demo.js -p --display-error-details --progress --optimize-minimize",
"dev":
"webpack-dev-server --config webpack/webpack.config-dev.js --open",
"build:demo": "webpack --config webpack/webpack.config-demo.js -p --display-error-details --progress --optimize-minimize",
"dev": "webpack-dev-server --config webpack/webpack.config-dev.js --open",
"modules:debug": "./docker/debug.sh",
"modules:tree": "webpack --config webpack/webpack.config.js --json ",
"modules:size-analyzer":
"webpack --config webpack/webpack.config.js --json | webpack-bundle-size-analyzer",
"modules:size-analyzer": "webpack --config webpack/webpack.config.js --json | webpack-bundle-size-analyzer",
"test": "npm run test:unit && npm run test:coverage",
"test:unit": "nyc mocha test/**/*-test.js",
"test:coverage": "nyc report --reporter=text-lcov | coveralls",
Expand Down