diff --git a/examples/hyperion-annotation-example/package.json b/examples/hyperion-annotation-example/package.json new file mode 100644 index 00000000..f15c65f0 --- /dev/null +++ b/examples/hyperion-annotation-example/package.json @@ -0,0 +1,38 @@ +{ + "name": "hyperion-annotation-example", + "private": true, + "version": "0.1.0", + "dependencies": { + "@fesk/react-bem": "1.1.4", + "@hyperion-framework/react-vault": "^0.1.0", + "@hyperion-framework/vault": "^0.1.0", + "@reach/router": "^1.2.1", + "docz-theme-default": "1.0.4", + "react": "^16.8.0", + "react-dom": "^16.8.0", + "react-router-dom": "^4.3.1" + }, + "scripts": { + "start": "fesk-start", + "build": "fesk-build", + "docz:dev": "docz dev", + "docz:build": "docz build" + }, + "devDependencies": { + "@fesk/scripts": "^1.2.1", + "@fesk/webpack-config": "1.2.0", + "docz": "1.0.4" + }, + "resolutions": { + "react": "^16.8.6", + "react-dom": "^16.8.6" + }, + "fesk": { + "port": 5102, + "metalsmith": { + "nunjucks": { + "liveServerPort": 35731 + } + } + } +} diff --git a/examples/react-context-example/package.json b/examples/react-context-example/package.json index 00d77128..8b1c4ad9 100644 --- a/examples/react-context-example/package.json +++ b/examples/react-context-example/package.json @@ -3,16 +3,23 @@ "private": true, "version": "0.1.0", "dependencies": { + "@fesk/eslint-config-standard": "^1.2.0", + "@hyperion-framework/atlas": "^0.1.0", + "@hyperion-framework/react-vault": "^0.1.0", "@hyperion-framework/vault": "^0.1.0", - "@hyperion-framework/react-vault": "^0.1.0", + "@reach/router": "^1.2.1", "react": "^16.8.0", - "react-dom": "^16.8.0" + "react-dom": "^16.8.0", + "react-router-dom": "^4.3.1" }, "scripts": { "start": "fesk-start", "build": "fesk-build" }, "devDependencies": { - "@fesk/scripts": "^1.1.8" + "@fesk/scripts": "^1.2.1" + }, + "fesk": { + "port": 5101 } } diff --git a/examples/vanilla-minimum-viewer/package.json b/examples/vanilla-minimum-viewer/package.json index e62624e2..1293e186 100644 --- a/examples/vanilla-minimum-viewer/package.json +++ b/examples/vanilla-minimum-viewer/package.json @@ -6,11 +6,18 @@ "@hyperion-framework/vault": "^0.1.0" }, "scripts": { - "start": "parcel index.html", - "build": "parcel build index.html --experimental-scope-hoisting" + "build": "fesk-build", + "start": "fesk-start" }, "devDependencies": { - "parcel-bundler": "^1.11.0", - "parcel-plugin-bundle-visualiser": "^1.2.0" + "@fesk/scripts": "^1.2.1" + }, + "fesk": { + "port": 5103, + "metalsmith": { + "nunjucks": { + "liveServerPort": 35735 + } + } } } diff --git a/jest.config.js b/jest.config.js index 4a5b465e..c78cd535 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,15 @@ module.exports = { - preset: 'ts-jest', + preset: 'ts-jest/presets/js-with-ts', testEnvironment: 'node', + coveragePathIgnorePatterns: [ + '/node_modules/', + '/coverage/', + 'dist/', + '(.test)\\.(ts|tsx|js)$', + 'jest.transform.js', + '.json', + ], + moduleNameMapper: { + '^@hyperion-framework/(.*)$': '/packages/$1/src', + } }; diff --git a/lerna.json b/lerna.json index 4c247753..7102d33a 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,8 @@ "lerna": "3.10.7", "packages": [ "packages/*", - "examples/*" + "examples/*", + "documentation" ], "npmClient": "yarn", "useWorkspaces": true, diff --git a/packages/annotations/package.json b/packages/annotations/package.json index 370fd426..7766ac43 100644 --- a/packages/annotations/package.json +++ b/packages/annotations/package.json @@ -9,11 +9,10 @@ "author": "Stephen Fraser ", "license": "MIT", "scripts": { - "build": "microbundle src/index.ts -o dist/hyperion-framework-annotations.js", - "start": "microbundle watch" + "start": "echo \"No build yet for this package\"", + "build": "echo \"No build yet for this package\"" }, "devDependencies": { - "microbundle": "^0.9.0", "tslib": "^1.9.3" }, "publishConfig": { diff --git a/packages/atlas/package.json b/packages/atlas/package.json new file mode 100644 index 00000000..9e2b947b --- /dev/null +++ b/packages/atlas/package.json @@ -0,0 +1,31 @@ +{ + "name": "@hyperion-framework/atlas", + "version": "0.1.0", + "main": "dist/umd/@hyperion-framework/atlas/index.js", + "module": "lib/index.js", + "typings": "dist/@types/index.d.ts", + "author": "Stephen Fraser ", + "license": "MIT", + "scripts": { + "build": "fesk-build --cjs --umd", + "start": "fesk-start --cjs --noServer", + "build-types": "tsc --emitDeclarationOnly --declaration --declarationDir ./dist/@types --sourceMap true -p ./", + "prepublish": "fesk-build --cjs --umd && tsc --emitDeclarationOnly --declaration --declarationDir ./dist/@types --sourceMap true -p ./" + }, + "dependencies": { + "@hyperion-framework/vault": "^0.1.0", + "@hyperion-framework/types": "^0.1.0", + "popmotion": "^8.6.8", + "typescript-memoize": "^1.0.0-alpha.3" + }, + "publishConfig": { + "access": "public" + }, + "devDependencies": { + "@fesk/scripts": "^1.2.1", + "tslib": "^1.9.3" + }, + "fesk": { + "typescript": true + } +} diff --git a/packages/atlas/tsconfig.json b/packages/atlas/tsconfig.json new file mode 100644 index 00000000..f558b1b4 --- /dev/null +++ b/packages/atlas/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "src" + }, + "exclude": [ + "node_modules", + "dist", + "**/__tests__/*.test.ts", + "__tests__" + ] +} diff --git a/packages/atlas/webpack.config.js b/packages/atlas/webpack.config.js new file mode 100644 index 00000000..f8ef7e6b --- /dev/null +++ b/packages/atlas/webpack.config.js @@ -0,0 +1 @@ +module.exports = require('@fesk/scripts/webpack'); diff --git a/packages/auth/package.json b/packages/auth/package.json index 44ede68a..9ad5470d 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -9,14 +9,13 @@ "author": "Stephen Fraser ", "license": "MIT", "scripts": { - "build": "microbundle src/index.ts -o dist/hyperion-framework-auth.js", - "start": "microbundle watch" + "start": "echo \"No build yet for this package\"", + "build": "echo \"No build yet for this package\"" }, "publishConfig": { "access": "public" }, "devDependencies": { - "microbundle": "^0.9.0", "tslib": "^1.9.3" } } diff --git a/packages/pattern-matching/package.json b/packages/pattern-matching/package.json index 87ed4bfc..20d566ea 100644 --- a/packages/pattern-matching/package.json +++ b/packages/pattern-matching/package.json @@ -1,16 +1,11 @@ { "name": "@hyperion-framework/pattern-matching", "version": "0.1.0", - "main": "dist/hyperion-framework-pattern-matching.js", - "umd:main": "dist/hyperion-framework-pattern-matching.umd.js", - "module": "dist/hyperion-framework-pattern-matching.mjs", - "source": "src/index.ts", - "types": "dist/index.d.ts", "author": "Stephen Fraser ", "license": "MIT", "scripts": { - "build": "microbundle src/index.ts -o dist/hyperion-framework-pattern-matching.js", - "start": "microbundle watch" + "start": "echo \"No build yet for this package\"", + "build": "echo \"No build yet for this package\"" }, "dependencies": { "@hyperion-framework/types": "^0.1.0" @@ -19,7 +14,6 @@ "access": "public" }, "devDependencies": { - "microbundle": "^0.9.0", "tslib": "^1.9.3" } } diff --git a/packages/react-vault/package.json b/packages/react-vault/package.json index 3541ec18..a0e913ce 100644 --- a/packages/react-vault/package.json +++ b/packages/react-vault/package.json @@ -1,15 +1,16 @@ { "name": "@hyperion-framework/react-vault", "version": "0.1.0", - "main": "dist/hyperion-framework-react-vault.js", - "umd:main": "dist/hyperion-framework-react-vault.umd.js", - "source": "src/index.ts", - "types": "dist/index.d.ts", + "main": "dist/umd/@hyperion-framework/react-vault/index.js", + "module": "lib/index.js", + "typings": "dist/@types/index.d.ts", "author": "Stephen Fraser ", "license": "MIT", "scripts": { - "build": "microbundle src/index.ts -o dist/hyperion-framework-react-vault.js", - "start": "microbundle watch" + "start": "fesk-start --cjs --noServer", + "build": "fesk-build --cjs --umd", + "build-types": "tsc --emitDeclarationOnly --declaration --declarationDir ./dist/@types --sourceMap true -p ./", + "prepublish": "fesk-build --cjs --umd && tsc --emitDeclarationOnly --declaration --declarationDir ./dist/@types --sourceMap true -p ./" }, "publishConfig": { "access": "public" @@ -19,15 +20,19 @@ "redux-react-hook": "^3.2.0" }, "peerDependencies": { - "react": "^16.8.0", - "react-dom": "^16.8.0" + "react": "^16.8.6", + "react-dom": "^16.8.6" }, "devDependencies": { + "@fesk/scripts": "^1.2.1", + "@fesk/babel-config": "^1.2.0", "@types/react": "^16.8.4", "@types/react-dom": "^16.8.2", - "microbundle": "^0.9.0", - "react": "^16.8.0", - "react-dom": "^16.8.0", + "react": "^16.8.6", + "react-dom": "^16.8.6", "tslib": "^1.9.3" + }, + "fesk": { + "typescript": true } } diff --git a/packages/react-vault/webpack.config.js b/packages/react-vault/webpack.config.js new file mode 100644 index 00000000..fab034e5 --- /dev/null +++ b/packages/react-vault/webpack.config.js @@ -0,0 +1,7 @@ +const webpack = require('@fesk/scripts/webpack'); + +webpack.externals = webpack.externals ? webpack.externals : {}; +webpack.externals.react = 'React'; +webpack.externals['react-dom'] = 'ReactDOM'; + +module.exports = webpack; diff --git a/packages/search/package.json b/packages/search/package.json index cc23f4d4..52c9bd71 100644 --- a/packages/search/package.json +++ b/packages/search/package.json @@ -9,14 +9,13 @@ "author": "Stephen Fraser ", "license": "MIT", "scripts": { - "build": "microbundle src/index.ts -o dist/hyperion-framework-search.js", - "start": "microbundle watch" + "start": "echo \"No build yet for this package\"", + "build": "echo \"No build yet for this package\"" }, "publishConfig": { "access": "public" }, "devDependencies": { - "microbundle": "^0.9.0", "tslib": "^1.9.3" } } diff --git a/packages/vault/package.json b/packages/vault/package.json index b2bcd3bd..533b652a 100644 --- a/packages/vault/package.json +++ b/packages/vault/package.json @@ -1,24 +1,26 @@ { "name": "@hyperion-framework/vault", "version": "0.1.0", - "main": "dist/hyperion-framework-vault.js", - "umd:main": "dist/hyperion-framework-vault.umd.js", - "source": "src/index.ts", - "types": "dist/index.d.ts", + "main": "dist/umd/@hyperion-framework/vault/index.js", + "module": "lib/index.js", + "typings": "dist/@types/index.d.ts", "author": "Stephen Fraser ", "license": "MIT", "scripts": { - "prepare": "microbundle src/index.ts -o dist/hyperion-framework-vault.js", - "build": "microbundle src/index.ts -o dist/hyperion-framework-vault.js", - "start": "microbundle watch" + "start": "fesk-start --cjs --noServer", + "build": "fesk-build --cjs --umd", + "build-types": "tsc --emitDeclarationOnly --declaration --declarationDir ./dist/@types --sourceMap true -p ./", + "prepublish": "fesk-build --cjs --umd && tsc --emitDeclarationOnly --declaration --declarationDir ./dist/@types --sourceMap true -p ./" }, "dependencies": { "@hyperion-framework/types": "^0.1.0", "axios": "^0.18.0", "deepmerge": "^3.1.0", "hash-string": "^1.0.0", + "iiif-prezi2to3": "^1.0.8", "immer": "^2.0.0", "mitt": "^1.1.3", + "popmotion": "^8.6.8", "redux": "^4.0.1", "redux-observable": "^1.0.0", "redux-saga": "^1.0.1", @@ -28,8 +30,11 @@ "publishConfig": { "access": "public" }, + "fesk": { + "typescript": true + }, "devDependencies": { - "microbundle": "^0.9.0", - "tslib": "^1.9.3" + "@fesk/scripts": "^1.2.1", + "typescript": "^3.4.5" } } diff --git a/packages/vault/webpack.config.js b/packages/vault/webpack.config.js new file mode 100644 index 00000000..f8ef7e6b --- /dev/null +++ b/packages/vault/webpack.config.js @@ -0,0 +1 @@ +module.exports = require('@fesk/scripts/webpack'); diff --git a/packages/vue-vault/package.json b/packages/vue-vault/package.json index e285a181..e018ccdb 100644 --- a/packages/vue-vault/package.json +++ b/packages/vue-vault/package.json @@ -9,14 +9,13 @@ "author": "Stephen Fraser ", "license": "MIT", "scripts": { - "build": "microbundle src/index.ts -o dist/hyperion-framework-vue-vault.js", - "start": "microbundle watch" + "start": "echo \"No build yet for this package\"", + "build": "echo \"No build yet for this package\"" }, "publishConfig": { "access": "public" }, "devDependencies": { - "microbundle": "^0.9.0", "tslib": "^1.9.3" } }