-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(presentation): Create a new npm package for core presentatio…
…n modules in deck
- Loading branch information
1 parent
9b2b049
commit 22e0621
Showing
7 changed files
with
505 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "@spinnaker/presentation", | ||
"description": "Provides re-usable UI components for deck", | ||
"version": "0.0.1", | ||
"module": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"clean": "npx shx rm -rf dist", | ||
"prepublishOnly": "npm run build", | ||
"watch": "rollup -c -w" | ||
}, | ||
"peerDependencies": { | ||
"lodash": "^4.17.20", | ||
"react": "~16.14.0", | ||
"react-dom": "^16.14.0" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.1", | ||
"@rollup/plugin-typescript": "^8.1.0", | ||
"@types/react": "~16.14.0", | ||
"@types/react-dom": "^16.9.10", | ||
"rollup": "^2.35.1", | ||
"typescript": "^4.0.0" | ||
}, | ||
"dependencies": { | ||
"formik": "^1.4.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import nodeResolve from '@rollup/plugin-node-resolve'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
|
||
export default [ | ||
{ | ||
input: 'src/index.ts', | ||
output: [{ dir: 'dist', format: 'es', sourcemap: true }], | ||
plugins: [nodeResolve(), commonjs(), typescript()], | ||
external: ['react', 'lodash'], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './utils'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './noop'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function noopFn() {} | ||
const noop = noopFn as any; | ||
export { noop }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../tsconfig.base", | ||
"exclude": ["dist"], | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"strict": true | ||
} | ||
} |
Oops, something went wrong.