forked from sombochea/verdaccio-ui
feat: migrating flow to typescript (#47)
This PR convert the code base to Typescript, the changes are the following: - migrate code base to Typescript (3.4.x) - enable `eslint` and `@typescript-eslint/eslint-plugin` (warnings still need to be addressed in future pull request - update relevant dependencies for this PR (linting, etc) - enable `bundlezise` (it was disabled for some reason) * refactor: refactoring to typescript * refactor: migrating to typescript * refactor: applied feedbacks * fix: fixed conflicts * refactored: changed registry * refactor: updated registry & removed unnecessary lib * fix: fixed registry ur * fix: fixed page load * refactor: refactored footer wip * refactor: converting to ts..wip * refactor: converting to ts. wip * refactor: converting to ts. wip * refactor: converting to ts * refactor: converting to ts * fix: fixed load errors * refactor: converted files to ts * refactor: removed flow from tests * fix: removed transpiled files * refactor: added ts-ignore * fix: fixed errors * fix: fixed types * fix: fixing jest import -.- * fix: fixing lint errors * fix: fixing lint errors * fix: fixed lint errors * refactor: removed unnecessary tsconfig's config * fix: fixing errors * fix: fixed warning * fix: fixed test * refactor: wip * refactor: wip * refactor: wip * fix: fixing tests: wip * wip * wip * fix: fixed search test * wip * fix: fixing lint errors * fix: re-added stylelint * refactor: updated stylelint script * fix: fixed: 'styles.js' were found. * fix: fixed Search tests * chore: enable eslint eslint needs expecitely to know which file has to lint, by default is JS, in this case we need also ts,tsx files eslint . --ext .js,.ts * chore: vcode eslint settings * chore: restore eslint previous conf * chore: clean jest config * chore: fix eslint warnings * chore: eslint errors cleared chore: clean warnings chore: remove github actions test phases chore: remove dupe rule * chore: update handler name * chore: restore logo from img to url css prop - loading images with css is more performant than using img html tags, switching this might be a breaking change - restore no-empty-source seems the linting do not accept false - update snapshots - remove @material-ui/styles * chore: update stylelint linting * chore: update stylelint linting * chore: fix a mistake on move tabs to a function * chore: eanble bundlezie * chore: use default_executor in circleci * chore: update readme
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
7d1764458b
commit
6b5d0b7e2e
120
package.json
120
package.json
@@ -11,62 +11,62 @@
|
||||
},
|
||||
"main": "index.js",
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "7.5.2",
|
||||
"@commitlint/config-conventional": "7.5.0",
|
||||
"@material-ui/core": "3.9.0",
|
||||
"@commitlint/cli": "8.0.0",
|
||||
"@commitlint/config-conventional": "8.0.0",
|
||||
"@material-ui/core": "3.9.3",
|
||||
"@material-ui/icons": "3.0.2",
|
||||
"@octokit/rest": "16.23.2",
|
||||
"@verdaccio/babel-preset": "0.1.0",
|
||||
"@verdaccio/types": "5.0.0-beta.4",
|
||||
"@types/enzyme": "3.9.3",
|
||||
"@types/lodash": "4.14.134",
|
||||
"@types/material-ui": "0.21.6",
|
||||
"@types/node": "12.0.8",
|
||||
"@types/react": "16.8.16",
|
||||
"@types/react-dom": "16.8.4",
|
||||
"@types/react-router-dom": "4.3.2",
|
||||
"@verdaccio/babel-preset": "0.2.1",
|
||||
"@verdaccio/eslint-config": "0.0.1",
|
||||
"@verdaccio/types": "6.1.0",
|
||||
"autosuggest-highlight": "3.1.1",
|
||||
"bundlesize": "0.17.1",
|
||||
"codecov": "3.2.0",
|
||||
"babel-loader": "8.0.6",
|
||||
"bundlesize": "0.17.2",
|
||||
"codecov": "3.5.0",
|
||||
"concurrently": "4.1.0",
|
||||
"cross-env": "5.2.0",
|
||||
"css-loader": "0.28.10",
|
||||
"date-fns": "1.30.1",
|
||||
"emotion": "9.2.12",
|
||||
"enzyme": "3.9.0",
|
||||
"enzyme-adapter-react-16": "1.10.0",
|
||||
"enzyme": "3.10.0",
|
||||
"enzyme-adapter-react-16": "1.14.0",
|
||||
"enzyme-to-json": "3.3.5",
|
||||
"eslint": "5.14.1",
|
||||
"eslint-config-google": "0.12.0",
|
||||
"eslint-config-prettier": "4.1.0",
|
||||
"eslint-loader": "2.1.2",
|
||||
"eslint-plugin-babel": "5.3.0",
|
||||
"eslint-plugin-flowtype": "3.4.2",
|
||||
"eslint-plugin-import": "2.16.0",
|
||||
"eslint-plugin-jest": "22.3.0",
|
||||
"eslint": "5.16.0",
|
||||
"eslint-plugin-jsx-a11y": "6.2.1",
|
||||
"eslint-plugin-prettier": "3.0.1",
|
||||
"eslint-plugin-react": "7.11.1",
|
||||
"eslint-plugin-prettier": "3.1.0",
|
||||
"eslint-plugin-react": "7.13.0",
|
||||
"eslint-plugin-verdaccio": "0.0.5",
|
||||
"file-loader": "2.0.0",
|
||||
"flow-bin": "0.81.0",
|
||||
"flow-runtime": "0.17.0",
|
||||
"friendly-errors-webpack-plugin": "1.7.0",
|
||||
"get-stdin": "6.0.0",
|
||||
"github-markdown-css": "2.10.0",
|
||||
"html-webpack-plugin": "3.2.0",
|
||||
"husky": "0.15.0-rc.8",
|
||||
"husky": "2.4.1",
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"in-publish": "2.0.0",
|
||||
"jest": "24.1.0",
|
||||
"jest-emotion": "10.0.10",
|
||||
"jest-environment-jsdom": "24.0.0",
|
||||
"jest-environment-jsdom-global": "1.1.1",
|
||||
"jest-environment-node": "24.0.0",
|
||||
"jest": "24.8.0",
|
||||
"jest-emotion": "10.0.11",
|
||||
"jest-environment-jsdom": "24.8.0",
|
||||
"jest-environment-jsdom-global": "1.2.0",
|
||||
"jest-environment-node": "24.8.0",
|
||||
"js-yaml": "3.13.1",
|
||||
"localstorage-memory": "1.0.3",
|
||||
"mini-css-extract-plugin": "0.5.0",
|
||||
"mini-css-extract-plugin": "0.7.0",
|
||||
"node-mocks-http": "1.7.3",
|
||||
"node-sass": "4.11.0",
|
||||
"node-sass": "4.12.0",
|
||||
"normalize.css": "8.0.1",
|
||||
"optimize-css-assets-webpack-plugin": "5.0.1",
|
||||
"ora": "1.4.0",
|
||||
"prettier": "1.14.3",
|
||||
"ora": "3.4.0",
|
||||
"prettier": "1.18.2",
|
||||
"prop-types": "15.7.2",
|
||||
"puppeteer": "1.8.0",
|
||||
"puppeteer": "1.17.0",
|
||||
"react": "16.8.3",
|
||||
"react-autosuggest": "9.4.2",
|
||||
"react-dom": "16.8.3",
|
||||
@@ -80,18 +80,19 @@
|
||||
"source-map-loader": "0.2.4",
|
||||
"standard-version": "4.4.0",
|
||||
"style-loader": "0.23.1",
|
||||
"stylelint": "9.10.1",
|
||||
"stylelint-config-recommended": "2.1.0",
|
||||
"stylelint-config-recommended-scss": "3.2.0",
|
||||
"stylelint": "10.1.0",
|
||||
"stylelint-config-recommended": "2.2.0",
|
||||
"stylelint-config-recommended-scss": "3.3.0",
|
||||
"stylelint-config-styled-components": "0.1.1",
|
||||
"stylelint-processor-styled-components": "1.5.2",
|
||||
"stylelint-scss": "3.5.4",
|
||||
"stylelint-processor-styled-components": "1.8.0",
|
||||
"stylelint-scss": "3.8.0",
|
||||
"stylelint-webpack-plugin": "0.10.5",
|
||||
"supertest": "3.4.2",
|
||||
"supertest": "4.0.2",
|
||||
"typeface-roboto": "0.0.54",
|
||||
"typescript": "3.4.5",
|
||||
"url-loader": "1.1.2",
|
||||
"validator": "10.11.0",
|
||||
"verdaccio": "4.0.1",
|
||||
"verdaccio": "4.0.3",
|
||||
"verdaccio-auth-memory": "0.0.4",
|
||||
"verdaccio-memory": "2.0.0",
|
||||
"webpack": "4.20.2",
|
||||
@@ -101,24 +102,51 @@
|
||||
"webpack-dev-server": "3.2.1",
|
||||
"webpack-merge": "4.2.1",
|
||||
"whatwg-fetch": "3.0.0",
|
||||
"xss": "1.0.3"
|
||||
"xss": "1.0.6"
|
||||
},
|
||||
"keywords": [
|
||||
"verdaccio",
|
||||
"verdaccio-plugin",
|
||||
"verdaccio-theme"
|
||||
],
|
||||
"bundlesize": [
|
||||
{
|
||||
"path": "./static/vendors.*.js",
|
||||
"maxSize": "180 kB"
|
||||
},
|
||||
{
|
||||
"path": "./static/main.*.js",
|
||||
"maxSize": "30 kB"
|
||||
},
|
||||
{
|
||||
"path": "./static/[0-9].*.{js,css}",
|
||||
"maxSize": "30 kB"
|
||||
},
|
||||
{
|
||||
"path": "./static/*.svg",
|
||||
"maxSize": "1.3 kB"
|
||||
},
|
||||
{
|
||||
"path": "./static/*.png",
|
||||
"maxSize": "15 kB"
|
||||
},
|
||||
{
|
||||
"path": "./static/fonts/*.{woff,woff2}",
|
||||
"maxSize": "20 kB"
|
||||
}
|
||||
],
|
||||
"scripts": {
|
||||
"flow": "flow check",
|
||||
"type-check": "tsc --noEmit",
|
||||
"type-check:watch": "npm run type-check -- --watch",
|
||||
"release": "standard-version -a -s",
|
||||
"test:clean": "npx jest --clearCache",
|
||||
"test": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest --config ./jest.config.js --maxWorkers 2 --passWithNoTests",
|
||||
"test": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest --config ./jest/jest.config.js --maxWorkers 2",
|
||||
"test:size": "bundlesize",
|
||||
"lint": "npm run flow && npm run lint:js && npm run lint:css",
|
||||
"lint:js": "eslint .",
|
||||
"lint": "npm run lint:js && npm run lint:css",
|
||||
"lint:js": "npm run type-check && eslint . --ext .js,.ts,.tsx",
|
||||
"lint:css": "stylelint 'src/**/styles.ts'",
|
||||
"coverage:publish": "codecov",
|
||||
"lint:css": "stylelint 'src/webui/**/styles.js'",
|
||||
"pre:webpack": "rimraf static/*",
|
||||
"prepublish": "in-publish && npm run build || not-in-publish",
|
||||
"dev:web": "cross-env BABEL_ENV=ui babel-node tools/dev.server.js",
|
||||
"verdaccio:server": "node tools/verdaccio.js",
|
||||
"build": "npm run pre:webpack && cross-env BABEL_ENV=ui webpack --config tools/webpack.prod.config.babel.js",
|
||||
|
||||
Reference in New Issue
Block a user