From 48d2bc8bd75554e30cc3f117645a0f625afcd7a3 Mon Sep 17 00:00:00 2001 From: ZauberNerd Date: Mon, 9 Oct 2017 16:16:40 +0200 Subject: [PATCH] chore: move spec to packages --- .gitignore | 2 +- package.json | 28 +------------ {spec => packages/spec}/codestyle.js | 0 {spec => packages/spec}/develop.js | 0 {spec => packages/spec}/jest.js | 0 {spec => packages/spec}/middleware.js | 0 .../spec}/mock/bad-export/package.json | 0 .../spec}/mock/bad-export/server.js | 0 .../spec}/mock/bad-handler/package.json | 0 .../spec}/mock/bad-handler/server.js | 0 {spec => packages/spec}/mock/good/browser.js | 0 .../spec}/mock/good/package.json | 0 {spec => packages/spec}/mock/good/server.js | 0 .../spec}/mock/integration/main.js | 0 .../spec}/mock/integration/package.json | 0 .../spec}/mock/integration/style.css | 0 .../spec}/mock/webpack.bad-export.js | 0 .../spec}/mock/webpack.bad-handler.js | 0 {spec => packages/spec}/mock/webpack.good.js | 0 packages/spec/package.json | 40 +++++++++++++++++++ {spec => packages/spec}/plugin.js | 0 {spec => packages/spec}/renderer.js | 0 {spec => packages/spec}/serve.js | 0 {spec => packages/spec}/transpiler.js | 0 24 files changed, 42 insertions(+), 28 deletions(-) rename {spec => packages/spec}/codestyle.js (100%) rename {spec => packages/spec}/develop.js (100%) rename {spec => packages/spec}/jest.js (100%) rename {spec => packages/spec}/middleware.js (100%) rename {spec => packages/spec}/mock/bad-export/package.json (100%) rename {spec => packages/spec}/mock/bad-export/server.js (100%) rename {spec => packages/spec}/mock/bad-handler/package.json (100%) rename {spec => packages/spec}/mock/bad-handler/server.js (100%) rename {spec => packages/spec}/mock/good/browser.js (100%) rename {spec => packages/spec}/mock/good/package.json (100%) rename {spec => packages/spec}/mock/good/server.js (100%) rename {spec => packages/spec}/mock/integration/main.js (100%) rename {spec => packages/spec}/mock/integration/package.json (100%) rename {spec => packages/spec}/mock/integration/style.css (100%) rename {spec => packages/spec}/mock/webpack.bad-export.js (100%) rename {spec => packages/spec}/mock/webpack.bad-handler.js (100%) rename {spec => packages/spec}/mock/webpack.good.js (100%) create mode 100644 packages/spec/package.json rename {spec => packages/spec}/plugin.js (100%) rename {spec => packages/spec}/renderer.js (100%) rename {spec => packages/spec}/serve.js (100%) rename {spec => packages/spec}/transpiler.js (100%) diff --git a/.gitignore b/.gitignore index 97ec8430b..4087c4d3e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,5 @@ npm-debug.log .DS_Store yarn.lock package-lock.json -spec/mock/integration/build +packages/spec/mock/integration/build .vscode diff --git a/package.json b/package.json index 4ddc7f9fd..d2c45b207 100644 --- a/package.json +++ b/package.json @@ -57,34 +57,8 @@ } }, "devDependencies": { - "babel-eslint": "^8.0.1", - "eslint-plugin-flowtype": "^2.39.1", - "glob": "^7.1.2", - "hops-cli": "file:./packages/cli", - "hops-config": "file:./packages/config", - "hops-middleware": "file:./packages/middleware", - "hops-plugin": "file:./packages/plugin", - "hops-react": "file:./packages/react", - "hops-redux": "file:./packages/redux", - "hops-renderer": "file:./packages/renderer", - "hops-transpiler": "file:./packages/transpiler", - "isomorphic-fetch": "^2.2.1", - "jest": "^21.2.1", - "jest-preset-hops": "file:./packages/jest-preset", "lerna": "^2.4.0", - "mkdirp": "^0.5.1", - "mocha": "^4.0.1", - "mocha-standard": "^1.0.0", "npm-check-updates": "^2.13.0", - "nsp": "^2.8.1", - "react": "^15.6.2", - "react-dom": "^15.6.2", - "react-helmet": "^5.2.0", - "react-redux": "^5.0.6", - "react-router": "^4.2.0", - "react-router-dom": "^4.2.2", - "redux": "^3.7.2", - "redux-thunk": "^2.2.0", - "semistandard": "^11.0.0" + "nsp": "^2.8.1" } } diff --git a/spec/codestyle.js b/packages/spec/codestyle.js similarity index 100% rename from spec/codestyle.js rename to packages/spec/codestyle.js diff --git a/spec/develop.js b/packages/spec/develop.js similarity index 100% rename from spec/develop.js rename to packages/spec/develop.js diff --git a/spec/jest.js b/packages/spec/jest.js similarity index 100% rename from spec/jest.js rename to packages/spec/jest.js diff --git a/spec/middleware.js b/packages/spec/middleware.js similarity index 100% rename from spec/middleware.js rename to packages/spec/middleware.js diff --git a/spec/mock/bad-export/package.json b/packages/spec/mock/bad-export/package.json similarity index 100% rename from spec/mock/bad-export/package.json rename to packages/spec/mock/bad-export/package.json diff --git a/spec/mock/bad-export/server.js b/packages/spec/mock/bad-export/server.js similarity index 100% rename from spec/mock/bad-export/server.js rename to packages/spec/mock/bad-export/server.js diff --git a/spec/mock/bad-handler/package.json b/packages/spec/mock/bad-handler/package.json similarity index 100% rename from spec/mock/bad-handler/package.json rename to packages/spec/mock/bad-handler/package.json diff --git a/spec/mock/bad-handler/server.js b/packages/spec/mock/bad-handler/server.js similarity index 100% rename from spec/mock/bad-handler/server.js rename to packages/spec/mock/bad-handler/server.js diff --git a/spec/mock/good/browser.js b/packages/spec/mock/good/browser.js similarity index 100% rename from spec/mock/good/browser.js rename to packages/spec/mock/good/browser.js diff --git a/spec/mock/good/package.json b/packages/spec/mock/good/package.json similarity index 100% rename from spec/mock/good/package.json rename to packages/spec/mock/good/package.json diff --git a/spec/mock/good/server.js b/packages/spec/mock/good/server.js similarity index 100% rename from spec/mock/good/server.js rename to packages/spec/mock/good/server.js diff --git a/spec/mock/integration/main.js b/packages/spec/mock/integration/main.js similarity index 100% rename from spec/mock/integration/main.js rename to packages/spec/mock/integration/main.js diff --git a/spec/mock/integration/package.json b/packages/spec/mock/integration/package.json similarity index 100% rename from spec/mock/integration/package.json rename to packages/spec/mock/integration/package.json diff --git a/spec/mock/integration/style.css b/packages/spec/mock/integration/style.css similarity index 100% rename from spec/mock/integration/style.css rename to packages/spec/mock/integration/style.css diff --git a/spec/mock/webpack.bad-export.js b/packages/spec/mock/webpack.bad-export.js similarity index 100% rename from spec/mock/webpack.bad-export.js rename to packages/spec/mock/webpack.bad-export.js diff --git a/spec/mock/webpack.bad-handler.js b/packages/spec/mock/webpack.bad-handler.js similarity index 100% rename from spec/mock/webpack.bad-handler.js rename to packages/spec/mock/webpack.bad-handler.js diff --git a/spec/mock/webpack.good.js b/packages/spec/mock/webpack.good.js similarity index 100% rename from spec/mock/webpack.good.js rename to packages/spec/mock/webpack.good.js diff --git a/packages/spec/package.json b/packages/spec/package.json new file mode 100644 index 000000000..7ededaec1 --- /dev/null +++ b/packages/spec/package.json @@ -0,0 +1,40 @@ +{ + "name": "hops-spec", + "version": "6.2.8", + "private": true, + "scripts": { + "test": "mocha --exit '*.js'" + }, + "devDependencies": { + "babel-eslint": "^8.0.1", + "eslint-plugin-flowtype": "^2.39.1", + "hops-build": "6.2.8", + "hops-build-config": "6.2.8", + "hops-cli": "6.2.8", + "hops-config": "6.2.8", + "hops-express": "6.2.8", + "hops-local-cli": "6.2.8", + "hops-middleware": "6.2.8", + "hops-plugin": "6.2.8", + "hops-react": "6.2.8", + "hops-redux": "6.2.8", + "hops-renderer": "6.2.8", + "hops-server": "6.2.8", + "hops-transpiler": "6.2.8", + "isomorphic-fetch": "^2.2.1", + "jest": "^21.2.1", + "jest-preset-hops": "6.2.8", + "mkdirp": "^0.5.1", + "mocha": "^4.0.1", + "mocha-standard": "^1.0.0", + "react": "^15.6.2", + "react-dom": "^15.6.2", + "react-helmet": "^5.2.0", + "react-redux": "^5.0.6", + "react-router": "^4.2.0", + "react-router-dom": "^4.2.2", + "redux": "^3.7.2", + "redux-thunk": "^2.2.0", + "semistandard": "^11.0.0" + } +} diff --git a/spec/plugin.js b/packages/spec/plugin.js similarity index 100% rename from spec/plugin.js rename to packages/spec/plugin.js diff --git a/spec/renderer.js b/packages/spec/renderer.js similarity index 100% rename from spec/renderer.js rename to packages/spec/renderer.js diff --git a/spec/serve.js b/packages/spec/serve.js similarity index 100% rename from spec/serve.js rename to packages/spec/serve.js diff --git a/spec/transpiler.js b/packages/spec/transpiler.js similarity index 100% rename from spec/transpiler.js rename to packages/spec/transpiler.js