Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
Replace @operational/scripts with tsdx
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien0102 committed Jan 14, 2020
1 parent 396e6ba commit f2adece
Show file tree
Hide file tree
Showing 6 changed files with 2,352 additions and 4,797 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
"extends": [
"react-app",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"array-callback-return": "off"
}
}
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,3 @@ package-lock.json

# examples artefacts
examples/*.tsx

# Files managed by operational-scripts
tslint.json
.prettierrc
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": true,
"printWidth": 120,
"trailingComma": "all"
}
31 changes: 14 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
"name": "restful-react",
"description": "A declarative client from RESTful React Apps",
"version": "9.7.1",
"main": "lib/index.js",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"module": "dist/restful-react.esm.js",
"license": "MIT",
"files": [
"lib"
"dist"
],
"bin": {
"restful-react": "lib/bin/restful-react.js"
"restful-react": "dist/bin/restful-react.js"
},
"keywords": [
"rest",
Expand Down Expand Up @@ -39,13 +41,12 @@
"url": "https://github.com/contiamo/restful-react"
},
"scripts": {
"start": "operational-scripts start",
"test": "operational-scripts test",
"build": "operational-scripts build --for npm && rollup -c rollup.config.js",
"preversion": "npm run build",
"start": "tsdx watch",
"test": "tsdx test",
"lint": "tsdx lint",
"build": "tsdx build",
"prepare": "tsdx build",
"version": "auto-changelog -p && git add CHANGELOG.md",
"lint": "tslint src/**/*{ts,tsx} --project .",
"prepublishOnly": "operational-scripts prepare && rollup -c rollup.config.js",
"ci": "[ ! -z $DANGER_GITHUB_API_TOKEN ] && yarn danger ci || echo \"Skipping Danger for External Contributor\"",
"examples": "run-p example:*",
"example:github": "node lib/bin/restful-react.js import --github OAI:OpenAPI-Specification:master:examples/v3.0/petstore.yaml --output examples/petstoreFromGithubSpec.tsx",
Expand All @@ -55,17 +56,17 @@
},
"husky": {
"hooks": {
"pre-commit": "operational-scripts precommit"
"pre-commit": "tsdx lint"
}
},
"devDependencies": {
"@operational/scripts": "^2.0.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0",
"@testing-library/react-hooks": "^3.2.1",
"@types/chalk": "^2.2.0",
"@types/commander": "^2.12.2",
"@types/inquirer": "6.5.0",
"@types/jest": "^24.0.25",
"@types/lodash": "^4.14.149",
"@types/nock": "^11.1.0",
"@types/node": "^13.1.6",
Expand All @@ -74,14 +75,11 @@
"@types/react-dom": "^16.8.5",
"@types/request": "^2.48.4",
"@types/yamljs": "^0.2.30",
"@wessberg/rollup-plugin-ts": "^1.2.6",
"auto-changelog": "^1.16.2",
"danger": "^9.2.10",
"doctoc": "^1.4.0",
"husky": "^4.0.7",
"isomorphic-fetch": "^2.2.1",
"jest": "^24.9.0",
"lint-staged": "^9.5.0",
"nock": "^11.7.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
Expand All @@ -90,10 +88,9 @@
"react-test-renderer": "^16.8.5",
"rollup": "^1.29.0",
"rollup-plugin-typescript2": "^0.25.3",
"ts-jest": "^24.3.0",
"tsdx": "^0.12.1",
"tslib": "^1.10.0",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-blank-line": "^0.0.9",
"typescript": "^3.7.4"
},
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"exclude": ["node_modules", "dist", "lib", "__tests__", "**/*.test*", "**/*.spec*"],
"include": ["src"],
"compilerOptions": {
"skipLibCheck": true,
Expand Down
Loading

0 comments on commit f2adece

Please sign in to comment.