diff --git a/.gitignore b/.gitignore index d3e5350..222553b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ -node_modules -.cache -.vscode -.temp -built -.nyc_output -coverage \ No newline at end of file +/node_modules +/.cache +/.vscode +/.temp +/built +/.DS_Store +/coverage +/.nyc_output +/dist \ No newline at end of file diff --git a/.npmignore b/.npmignore index ff9ed97..f88d11e 100644 --- a/.npmignore +++ b/.npmignore @@ -1,8 +1,9 @@ -node_modules -.cache -.vscode -.temp -built -tests -.nyc_output -coverage \ No newline at end of file +/node_modules +/.cache +/.vscode +/.temp +/.DS_Store +/coverage +/.nyc_output +/dist +/tests \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index 4582786..3f475c0 100644 --- a/.prettierrc +++ b/.prettierrc @@ -16,4 +16,4 @@ } } ] -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index 5f5fd91..1ce9786 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pri-plugin-dob", - "version": "0.0.2", + "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1427,7 +1427,7 @@ "rc-dialog": "7.1.3", "rc-dropdown": "2.1.1", "rc-editor-mention": "1.1.6", - "rc-form": "2.1.7", + "rc-form": "2.2.0", "rc-input-number": "4.0.5", "rc-menu": "6.2.9", "rc-notification": "3.0.1", @@ -2333,9 +2333,9 @@ } }, "babel-plugin-import": { - "version": "1.6.7", - "resolved": "https://registry.npmjs.org/babel-plugin-import/-/babel-plugin-import-1.6.7.tgz", - "integrity": "sha512-abUSrC1u8THc4yBwAk7S+FEGJkONLf7F90h9w1CNbJ2GhfmqFnu8JktMy6K2GULvDMdUsCvKXROemp+KzgNS4w==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/babel-plugin-import/-/babel-plugin-import-1.7.0.tgz", + "integrity": "sha512-iWcbukNK4R45Ot4zv3zi4RvNypNuY+9OuUEeGNAneKbgmImNWgjS2QlLV+CtrcQDG7e0jcPTcrmfxTZ89kaxTA==", "requires": { "@babel/helper-module-imports": "7.0.0-beta.44" } @@ -14046,9 +14046,9 @@ } }, "pri": { - "version": "0.4.54", - "resolved": "https://registry.npmjs.org/pri/-/pri-0.4.54.tgz", - "integrity": "sha512-scvBeaqc6egA62WXtvBL7YaWjbzQ8erHqmnETVYGn9rFDf1BBeQTBfKPuDppvJ1p+VUA6d4/PTmrC5smtsT+CA==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/pri/-/pri-0.5.0.tgz", + "integrity": "sha512-XV5wG7a6Hd+anKRSDlsNAKnUf1TNkhZEvmU5XIlnjdf3LbqIVm4tQ5DW5MozcQtOQEUS875sfPUG1W3cxp2kBA==", "requires": { "@babel/core": "7.0.0-beta.44", "@babel/plugin-transform-runtime": "7.0.0-beta.44", @@ -14079,7 +14079,7 @@ "antd": "3.4.0", "ava": "1.0.0-beta.3", "babel-loader": "8.0.0-beta.2", - "babel-plugin-import": "1.6.7", + "babel-plugin-import": "1.7.0", "body-parser": "1.18.2", "chokidar": "2.0.3", "colors": "1.2.1", @@ -14095,6 +14095,7 @@ "gulp-typescript": "4.0.2", "highlight.js": "9.12.0", "html-webpack-plugin": "3.2.0", + "isomorphic-fetch": "2.2.1", "koa": "2.5.0", "koa-compress": "2.0.0", "koa-mount": "3.0.0", @@ -14127,7 +14128,7 @@ "typescript": "2.8.1", "update-notifier": "2.4.0", "walk": "2.3.13", - "webpack": "4.4.1", + "webpack": "4.5.0", "webpack-cli": "2.0.13", "webpack-dev-server": "3.1.1", "yargs": "11.0.0" @@ -14512,9 +14513,9 @@ } }, "rc-form": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/rc-form/-/rc-form-2.1.7.tgz", - "integrity": "sha512-Sz6gnkjD92sM7E/QTSFkgiyiYEzZ3hAmKxgPJY2l3PK9DKGHEamJq5Lj5L4bJWW3pLGzkEZJOC6xS5+6nde/yA==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/rc-form/-/rc-form-2.2.0.tgz", + "integrity": "sha512-W3fct0JFyLHBOiWfLByJKLoB82tuPGvSsJ5V4pm6RRJ+ehofpvOIA5nmgKpPyosg3EfC9rx32rJrEK0fidnaRw==", "requires": { "async-validator": "1.8.2", "babel-runtime": "6.26.0", @@ -17592,9 +17593,9 @@ } }, "webpack": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.4.1.tgz", - "integrity": "sha512-iLUJcsEAjaPKWbB32ADr29Pg9fPUVfFEMPK4VXyZGftzhSEFg2BLjHLoBYZ14wdTEA8xqG/hjpuX8qOmabRYvw==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.5.0.tgz", + "integrity": "sha512-6GrZsvQJnG7o7mjbfjp6s5CyMfdopjt1A/X8LcYwceis9ySjqBX6Lusso2wNZ06utHj2ZvfL6L3f7hfgVeJP6g==", "requires": { "acorn": "5.5.3", "acorn-dynamic-import": "3.0.0", diff --git a/package.json b/package.json index 63619b9..4ca1d40 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,21 @@ { "name": "pri-plugin-dob", - "version": "1.0.0", + "version": "1.0.1", "types": "src/index.ts", "main": "built/index.js", "scripts": { "start": "pri plugin-watch", "prepublishOnly": "pri plugin-build", "release": "npm publish", - "test": "pri test" + "test": "pri plugin-test", + "build": "pri build", + "preview": "pri preview" }, "dependencies": { "pri": "*" }, "pri": { - "web-entry": ["./built/web-store/index.js", "./built/web-menu/index.js"] + "web-entry": ["./built/web-store/index.js", "./built/web-menu/index.js"], + "type": "plugin" } } diff --git a/tests/index.ts b/tests/index.ts index 587e52d..5c2714b 100644 --- a/tests/index.ts +++ b/tests/index.ts @@ -1,9 +1,5 @@ import test from "ava" -function sum(a: number, b: number) { - return a + b -} - -test("adds 1 + 2 to equal 3", t => { - t.true(sum(1, 2) === 3) +test("Example", t => { + t.true(true) }) diff --git a/tsconfig.json b/tsconfig.json index d61b943..a51fe80 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,4 +21,4 @@ "built", "lib" ] -} \ No newline at end of file +} diff --git a/tslint.json b/tslint.json index 7773005..de77796 100644 --- a/tslint.json +++ b/tslint.json @@ -23,4 +23,4 @@ "no-object-literal-type-assertion": false, "no-submodule-imports": false } -} \ No newline at end of file +}