Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Updating build + moving to FESK
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed May 12, 2019
1 parent f8de31a commit 441affb
Show file tree
Hide file tree
Showing 17 changed files with 165 additions and 49 deletions.
38 changes: 38 additions & 0 deletions examples/hyperion-annotation-example/package.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
13 changes: 10 additions & 3 deletions examples/react-context-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
15 changes: 11 additions & 4 deletions examples/vanilla-minimum-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}
13 changes: 12 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -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/(.*)$': '<rootDir>/packages/$1/src',
}
};
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"lerna": "3.10.7",
"packages": [
"packages/*",
"examples/*"
"examples/*",
"documentation"
],
"npmClient": "yarn",
"useWorkspaces": true,
Expand Down
5 changes: 2 additions & 3 deletions packages/annotations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
"author": "Stephen Fraser <[email protected]>",
"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": {
Expand Down
31 changes: 31 additions & 0 deletions packages/atlas/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"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
}
}
12 changes: 12 additions & 0 deletions packages/atlas/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src"
},
"exclude": [
"node_modules",
"dist",
"**/__tests__/*.test.ts",
"__tests__"
]
}
1 change: 1 addition & 0 deletions packages/atlas/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@fesk/scripts/webpack');
5 changes: 2 additions & 3 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
"author": "Stephen Fraser <[email protected]>",
"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"
}
}
10 changes: 2 additions & 8 deletions packages/pattern-matching/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"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"
Expand All @@ -19,7 +14,6 @@
"access": "public"
},
"devDependencies": {
"microbundle": "^0.9.0",
"tslib": "^1.9.3"
}
}
27 changes: 16 additions & 11 deletions packages/react-vault/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"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"
Expand All @@ -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
}
}
7 changes: 7 additions & 0 deletions packages/react-vault/webpack.config.js
Original file line number Diff line number Diff line change
@@ -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;
5 changes: 2 additions & 3 deletions packages/search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
"author": "Stephen Fraser <[email protected]>",
"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"
}
}
23 changes: 14 additions & 9 deletions packages/vault/package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"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",
Expand All @@ -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"
}
}
1 change: 1 addition & 0 deletions packages/vault/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@fesk/scripts/webpack');
5 changes: 2 additions & 3 deletions packages/vue-vault/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
"author": "Stephen Fraser <[email protected]>",
"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"
}
}

0 comments on commit 441affb

Please sign in to comment.