Skip to content

Commit 6268c5e

Browse files
authored
Merge pull request #31 from gregoranders/development
0.0.8 Release
2 parents 94ed9d9 + bceff11 commit 6268c5e

File tree

16 files changed

+73
-83
lines changed

16 files changed

+73
-83
lines changed

.github/workflows/development.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
uses: coverallsapp/github-action@master
4747
with:
4848
github-token: ${{ secrets.GITHUB_TOKEN }}
49-
path-to-lcov: ./coverage/lcov.info
49+
path-to-lcov: ./test/coverage/lcov.info
5050
env:
5151
CI: true
5252
- name: npm run e2e

.github/workflows/master.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,14 @@ jobs:
5151
CI: true
5252
- name: publish code coverage to code climate
5353
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
54-
uses: paambaati/codeclimate-action@v2.3.0
54+
uses: paambaati/codeclimate-action@v2.6.0
5555
env:
5656
CI: true
5757
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
5858
with:
5959
coverageCommand: npm run test
60+
coverageLocations: |
61+
./test/coverage/lcov.info:lcov
6062
debug: true
6163
- name: npm run e2e
6264
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
dist/
22
public/assets/
33
public/favicon.html
4-
coverage/
5-
coverage-e2e/
4+
test/
65
node_modules/
76

87
package-lock.json
9-
junit.xml
108
.jest-test-results.json
119

1210
*.js

.prettierrc.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
"editor.codeActionsOnSave": {
33
"source.fixAll.eslint": true
44
},
5-
"eslint.validate": [
6-
"javascript",
7-
"javascriptreact",
8-
"typescript",
9-
"typescriptreact"
10-
],
5+
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
116
"editor.formatOnSave": true,
127
"[javascript]": {
138
"editor.formatOnSave": false
@@ -21,20 +16,6 @@
2116
"[typescriptreact]": {
2217
"editor.formatOnSave": false
2318
},
24-
"importCost.smallPackageSize": 50,
25-
"importCost.mediumPackageSize": 100,
26-
"importCost.smallPackageColor": "#7cc36e",
27-
"importCost.mediumPackageColor": "#7cc36e",
28-
"importCost.largePackageColor": "#d44e40",
29-
"importCost.typescriptExtensions": [
30-
"\\.tsx?$"
31-
],
32-
"importCost.javascriptExtensions": [
33-
"\\.jsx?$"
34-
],
35-
"importCost.bundleSizeDecoration": "both",
36-
"importCost.showCalculatingDecoration": true,
37-
"importCost.debug": false,
3819
"editor.tabSize": 2,
3920
"editor.wordWrapColumn": 120,
4021
"editor.minimap.enabled": false

.vscode/workspace.code-workspace

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,13 @@
55
}
66
],
77
"settings": {
8-
"editor.defaultFormatter": "vscode.typescript-language-features",
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
99
"workbench.colorTheme": "Nord Deep",
1010
"workbench.iconTheme": "material-icon-theme",
1111
"editor.codeActionsOnSave": {
1212
"source.fixAll.eslint": true
1313
},
14-
"eslint.validate": [
15-
"javascript",
16-
"javascriptreact",
17-
"typescript",
18-
"typescriptreact",
19-
],
20-
"importCost.smallPackageSize": 50,
21-
"importCost.mediumPackageSize": 100,
22-
"importCost.smallPackageColor": "#7cc36e",
23-
"importCost.mediumPackageColor": "#7cc36e",
24-
"importCost.largePackageColor": "#d44e40",
25-
"importCost.typescriptExtensions": [
26-
"\\.tsx?$"
27-
],
28-
"importCost.javascriptExtensions": [
29-
"\\.jsx?$"
30-
],
31-
"importCost.bundleSizeDecoration": "both",
32-
"importCost.showCalculatingDecoration": true,
33-
"importCost.debug": false,
14+
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
3415
"typescript.tsdk": "node_modules/typescript/lib"
3516
},
3617
"extensions": {
@@ -51,4 +32,3 @@
5132
]
5233
}
5334
}
54-

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#### 0.0.8 (2020-06-14)
2+
3+
##### Chores
4+
5+
* **vscode:** remove unused configuration ([21b6479c](https://github.com/gregoranders/ts-react-playground/commit/21b6479cdca62da9b7526ef70a33dd38b737a946))
6+
* **test:** move results into common folder ([e6e45b22](https://github.com/gregoranders/ts-react-playground/commit/e6e45b229c6bb97eee6ea38599b4e1496288af64))
7+
* **package:** move prettier config ([68b76317](https://github.com/gregoranders/ts-react-playground/commit/68b7631735566cec3622cb6ad9e2b51ac26d1aa8))
8+
* **build:** move scripts ([77b92587](https://github.com/gregoranders/ts-react-playground/commit/77b92587181f43ce710c33093c7d7f10744788d9))
9+
10+
##### Documentation Changes
11+
12+
* **security:** support only latest version ([bc2eea82](https://github.com/gregoranders/ts-react-playground/commit/bc2eea828e6c8a17cc22529148ac43355f5ae0db))
13+
* **build:** add changelog generation ([ee4f85e2](https://github.com/gregoranders/ts-react-playground/commit/ee4f85e2436ed69f264445f67c24c706b8a1f75b))
14+
15+
##### Other Changes
16+
17+
* bump @types/recharts from 1.8.11 to 1.8.12 ([e95f780f](https://github.com/gregoranders/ts-react-playground/commit/e95f780ff41d3d6802416065d4e22c3ea64ab47f))
18+

SECURITY.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# Security Policy
2-
2+
33
## Supported Versions
4+
45
5-
| Version | Supported |
6+
| Version | Supported |
67
| ------- | ------------------ |
7-
| 0.0.7 | :white_check_mark: |
8-
| 0.0.6 | :white_check_mark: |
9-
| 0.0.5 | :white_check_mark: |
10-
| 0.0.4 | :white_check_mark: |
11-
| 0.0.3 | :white_check_mark: |
12-
| 0.0.2 | :white_check_mark: |
13-
| 0.0.1 | :white_check_mark: |
8+
| 0.0.7 | :white_check_mark: |
9+
| 0.0.6 | :x: |
10+
| 0.0.5 | :x: |
11+
| 0.0.4 | :x: |
12+
| 0.0.3 | :x: |
13+
| 0.0.2 | :x: |
14+
| 0.0.1 | :x: |
1415
16+
1517
## Reporting a Vulnerability
1618

1719
[Create Issue](https://github.com/gregoranders/ts-react-playground/issues/new?labels=bug&template=bug_report.md&title=Security+Issue)

docs/Intro.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Meta } from '@storybook/addon-docs/blocks';
22

33
<Meta title="Docs|Intro" />
44

5-
# ts-react-playground - [TypeScript](http://www.typescriptlang.org/) [React](https://reactjs.org/) Playground v0.0.7
5+
# ts-react-playground - [TypeScript](http://www.typescriptlang.org/) [React](https://reactjs.org/) Playground
66

77
[![Dependency Status][daviddm-image]][daviddm-url]
88
[![License][license-image]][license-url]

package.json

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{
22
"name": "ts-react-playground",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "TypeScript React Playground",
55
"scripts": {
66
"start": "webpack-dev-server --open --progress --config webpack.config.js",
7-
"clear": "npm run prebuild && rimraf ./node_modules ./dist ./coverage ./coverage-e2e ./package-lock.json .jest-test-results.json junit.xml",
7+
"clear": "npm run prebuild && npm run pretest && rimraf ./node_modules ./dist ./package-lock.json .jest-test-results.json junit.xml",
88
"prebuild": "npm run prebuild:webpack && npm run prebuild:esm",
99
"build": "npm run build:webpack",
1010
"prebuild:esm": "npm run prevendor && npm run prescript && npm run preserviceWorker && npm run prescss && npm run prefavicon",
1111
"build:esm": "npm run vendor && npm run script && npm run scss && npm run favicon && npm run serviceWorker",
12-
"postbuild:esm": "ts-node minify.ts",
12+
"postbuild:esm": "ts-node ./scripts/minify.ts",
1313
"prebuild:webpack": "rimraf ./dist",
1414
"build:webpack": "cross-env NODE_ENV=production webpack --config webpack.config.js",
15-
"test": "jest --runInBand --env=enzyme --setupFilesAfterEnv=jest-enzyme --reporters=jest-spec-reporter jest-junit --coverage --coverageDirectory ../coverage --rootDir ./src",
15+
"pretest": "rimraf ./test",
16+
"test": "jest --runInBand --env=enzyme --setupFilesAfterEnv=jest-enzyme --reporters=jest-html-reporter jest-spec-reporter jest-junit --coverage --collectCoverage true --coverageDirectory ../test/coverage --rootDir ./src",
1617
"test:update": "npm run test -- -u",
1718
"e2e:serve": "webpack-dev-server --config ./e2e/webpack.config.js --quiet true --liveReload false --inline false",
18-
"e2e": "cross-env-shell NODE_PORT=$(ts-node findport.ts) NODE_E2E=webpack jest --testTimeout=60000 --runInBand --reporters=jest-spec-reporter --preset=jest-puppeteer --coverage --coverageDirectory ../coverage-e2e --rootDir ./e2e",
19-
"serve": "ts-node server.ts",
20-
"e2e:esm": "cross-env-shell NODE_PORT=$(ts-node findport.ts) NODE_E2E=esm jest --testTimeout=60000 --runInBand --reporters=jest-spec-reporter --preset=jest-puppeteer --coverage --coverageDirectory ../coverage-e2e --rootDir ./e2e",
19+
"e2e": "cross-env-shell NODE_PORT=$(ts-node ./scripts/findport.ts) NODE_E2E=webpack jest --testTimeout=60000 --runInBand --reporters=jest-spec-reporter --preset=jest-puppeteer --rootDir ./e2e",
20+
"serve": "ts-node ./scripts/server.ts",
21+
"e2e:esm": "cross-env-shell NODE_PORT=$(ts-node ./scripts/findport.ts) NODE_E2E=esm jest --testTimeout=60000 --runInBand --reporters=jest-spec-reporter --preset=jest-puppeteer --rootDir ./e2e",
2122
"livereload": "livereloadx -a ./public",
2223
"prescript": "rimraf ./public/script",
2324
"script": "tsc --project ./src/script --outDir ./public/script",
@@ -28,7 +29,7 @@
2829
"prewatch-scss": "npm run scss",
2930
"watch-scss": "node-sass --output-style compressed --watch --output ./public ./src/style/styles.scss",
3031
"prefavicon": "rimraf ./public/assets ./public/favicon.html",
31-
"favicon": "ts-node favicon.ts",
32+
"favicon": "ts-node ./scripts/favicon.ts",
3233
"prevendor": "rimraf ./public/vendor ./public/es-module-shims.js",
3334
"vendor": "rimraf ./public/vendor && npm run vendor:base && npm run vendor:faker && npm run vendor:fontawesome && npm run vendor:react && npm run vendor:recharts && npm run vendor:esmoduleshims",
3435
"vendor:base": "cross-env NODE_ENV=production rollup -c ./src/vendor/rollup-base.config.js",
@@ -47,9 +48,9 @@
4748
"docker:up": "docker-compose up -d",
4849
"docker:down": "docker-compose down",
4950
"codeclimate": "docker run --interactive --tty --rm --env CODECLIMATE_CODE=\"$PWD\" --volume \"$PWD\":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze",
50-
"prestorybook": "jest --runInBand --json --outputFile=.jest-test-results.json --env=enzyme --setupFilesAfterEnv=jest-enzyme --reporters=jest-spec-reporter jest-junit --coverage --coverageDirectory ../coverage --rootDir ./src",
51+
"prestorybook": "jest --runInBand --json --outputFile=.jest-test-results.json --env=enzyme --setupFilesAfterEnv=jest-enzyme --reporters=jest-spec-reporter jest-junit --coverage --collectCoverage true --coverageDirectory ../test/coverage --rootDir ./src",
5152
"storybook": "cross-env NODE_ENV=production start-storybook",
52-
"prebuild-storybook": "jest --runInBand --json --outputFile=.jest-test-results.json --env=enzyme --setupFilesAfterEnv=jest-enzyme --reporters=jest-spec-reporter jest-junit --coverage --coverageDirectory ../coverage --rootDir ./src",
53+
"prebuild-storybook": "jest --runInBand --json --outputFile=.jest-test-results.json --env=enzyme --setupFilesAfterEnv=jest-enzyme --reporters=jest-spec-reporter jest-junit --coverage --collectCoverage true --coverageDirectory ../test/coverage --rootDir ./src",
5354
"build-storybook": "rimraf ./docs/public/docs/* && cross-env NODE_ENV=production build-storybook -c .storybook --quiet -o ./docs/public/docs"
5455
},
5556
"repository": {
@@ -87,7 +88,6 @@
8788
]
8889
},
8990
"jest": {
90-
"collectCoverage": true,
9191
"collectCoverageFrom": [
9292
"!setup.ts",
9393
"!webpack.config.js",
@@ -148,6 +148,20 @@
148148
"^.+\\.mdx$": "@storybook/addon-docs/jest-transform-mdx"
149149
}
150150
},
151+
"jest-html-reporter": {
152+
"pageTitle": "ts-react-playground",
153+
"outputPath": "./test/index.html"
154+
},
155+
"jest-junit": {
156+
"outputDirectory": "./test"
157+
},
158+
"prettier": {
159+
"semi": true,
160+
"trailingComma": "all",
161+
"singleQuote": true,
162+
"printWidth": 120,
163+
"tabWidth": 2
164+
},
151165
"author": "Gregor Anders <gregor.anders@gmail.com>",
152166
"license": "MIT",
153167
"bugs": {
@@ -242,7 +256,7 @@
242256
"@types/react-router-dom": "5.1.5",
243257
"@types/react-test-renderer": "16.9.2",
244258
"@types/react-transition-group": "4.4.0",
245-
"@types/recharts": "1.8.11",
259+
"@types/recharts": "1.8.12",
246260
"@types/recoil": "0.0.0",
247261
"@types/scheduler": "0.16.1",
248262
"@types/storybook__addon-info": "5.2.1",
@@ -268,13 +282,15 @@
268282
"faker": "4.1.0",
269283
"favicons": "6.1.0",
270284
"file-loader": "6.0.0",
285+
"generate-changelog": "1.8.0",
271286
"html-webpack-plugin": "4.3.0",
272287
"husky": "4.2.5",
273288
"identity-obj-proxy": "3.0.0",
274289
"jest": "26.0.1",
275290
"jest-cli": "26.0.1",
276291
"jest-environment-enzyme": "7.1.2",
277292
"jest-enzyme": "7.1.2",
293+
"jest-html-reporter": "3.1.3",
278294
"jest-image-snapshot": "4.0.2",
279295
"jest-junit": "10.0.0",
280296
"jest-puppeteer": "4.4.0",

favicon.ts renamed to scripts/favicon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as packageJson from './package.json';
1+
import * as packageJson from '../package.json';
22
import * as fs from 'fs';
33
import * as path from 'path';
44
import * as favicons from 'favicons';
@@ -20,7 +20,7 @@ const configuration: favicons.Configuration = {
2020
display: 'standalone',
2121
orientation: 'any',
2222
scope: '/',
23-
start_url: `${packageJson.basename}/index.html`,
23+
start_url: `${packageJson.basename}index.html`,
2424
version: '1.0',
2525
logging: false,
2626
pixel_art: false,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { getPort } from 'portfinder-sync';
2-
import { baseport } from './package.json';
2+
import { baseport } from '../package.json';
33

44
console.log(getPort(baseport));
File renamed without changes.

server.ts renamed to scripts/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import * as express from 'express';
55
import * as https from 'http';
66
import * as compression from 'compression';
77

8-
import { baseport } from './package.json';
8+
import { baseport } from '../package.json';
99

1010
// import { api } from './controller';
1111
const hostname = 'localhost';
12-
const staticPath: string = path.join(__dirname, 'public');
12+
const staticPath: string = path.join(__dirname, '..', 'public');
1313

1414
const application = express();
1515

0 commit comments

Comments
 (0)