From 0dd8c8350defc67e1b9210190b0f3e820f8f5ca4 Mon Sep 17 00:00:00 2001 From: winwin2011 Date: Tue, 5 Sep 2023 12:16:12 +0800 Subject: [PATCH 1/3] chore: contributing guide --- CONTRIBUTING.md | 34 ++++++++++++++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..b4c570d --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,34 @@ +# CONTRIBUTING + +## Prerequisites + +- Node.js: v14.x.x +- Package manager: npm + +## Install + +```bash +npm install +``` + +## Develop + +Start dev server. + +```bash +npm run start +``` + +Then open `http://127.0.0.1:8082/index.html` in your browser. + +Resources will be rebuild when files changed. Refresh page to see updates, HMR not supported. + +## Build + +```bash +# Build Package +npm run build + +# Build Demo Page +npm run demo +``` \ No newline at end of file diff --git a/package.json b/package.json index 3fe0e34..ee17a88 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "2.0.0", "description": "jsonschema editor", "main": "package/index.js", - "license": "MIC", + "license": "MIT", "scripts": { "start": "ykit s -p 8082", "demo": "NODE_ENV=production ykit pack -m", @@ -39,6 +39,7 @@ "style-loader": "^0.20.3", "webpack": "^4.5.0", "webpack-cli": "^4.9.1", + "ykit": "^0.8.13", "ykit-config-antd": "^2" } } From 4d34a9abf49a3e05e6fcaa3e7c93a9936cafa8ab Mon Sep 17 00:00:00 2001 From: winwin2011 Date: Tue, 5 Sep 2023 12:29:35 +0800 Subject: [PATCH 2/3] fix: cross env --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ee17a88..82a57a8 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "license": "MIT", "scripts": { "start": "ykit s -p 8082", - "demo": "NODE_ENV=production ykit pack -m", - "build": "NODE_ENV=production webpack" + "demo": "cross-env NODE_ENV=production ykit pack -m", + "build": "cross-env NODE_ENV=production webpack" }, "dependencies": { "@ant-design/icons": "^4.2.1", @@ -31,7 +31,7 @@ "babel-preset-env": "^1.6.1", "babel-preset-react": "^6.24.1", "babel-preset-react-app": "^3.1.0", - "cross-env": "^5.1.1", + "cross-env": "^5.2.1", "css-loader": "^0.28.11", "extract-text-webpack-plugin": "^4.0.0-beta.0", "less": "^2.7.2", From 6d5fddc07d70621c6a876b8be88e13a48339236a Mon Sep 17 00:00:00 2001 From: winwin2011 Date: Tue, 5 Sep 2023 12:33:55 +0800 Subject: [PATCH 3/3] chore: repo url --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 82a57a8..cbb3a03 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "version": "2.0.0", "description": "jsonschema editor", "main": "package/index.js", + "repository": { + "url": "https://github.com/Open-Federation/json-schema-editor-visual" + }, "license": "MIT", "scripts": { "start": "ykit s -p 8082",