-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: only dist and types getting published
- Loading branch information
pooya parsa
committed
Apr 17, 2020
1 parent
1f296a4
commit d63ea3e
Showing
10 changed files
with
220 additions
and
1,409 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 |
---|---|---|
@@ -1,49 +1,5 @@ | ||
# Dependencies | ||
node_modules | ||
examples/**/*/yarn.lock | ||
jspm_packages | ||
package-lock.json | ||
|
||
# Logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Other | ||
.cache | ||
|
||
# Dist folder | ||
*.lock | ||
dist | ||
|
||
# Dist example generation | ||
examples/**/dist | ||
|
||
# Coverage support | ||
types | ||
coverage | ||
*.lcov | ||
.nyc_output | ||
.vscode | ||
|
||
# Intellij idea | ||
*.iml | ||
.idea | ||
|
||
# OSX | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk |
This file was deleted.
Oops, something went wrong.
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
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,36 @@ | ||
import babel from 'rollup-plugin-babel' | ||
import resolve from 'rollup-plugin-node-resolve' | ||
import { terser } from 'rollup-plugin-terser' | ||
|
||
const extensions = ['.js', '.ts', '.tsx'] | ||
|
||
export default [ | ||
{ | ||
input: './src/hookable.ts', | ||
output: { file: './dist/hookable.js', format: 'cjs' }, | ||
plugins: [ | ||
resolve({ extensions }), | ||
babel({ | ||
extensions, | ||
presets: [ | ||
'@babel/preset-typescript' | ||
] | ||
}) | ||
] | ||
}, | ||
{ | ||
input: './src/hookable.ts', | ||
output: { name: 'hookable', file: './dist/hookable.min.js', format: 'umd' }, | ||
plugins: [ | ||
resolve({ extensions }), | ||
babel({ | ||
extensions, | ||
presets: [ | ||
'@babel/preset-env', | ||
'@babel/preset-typescript' | ||
] | ||
}), | ||
terser() | ||
] | ||
} | ||
] |
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
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,8 @@ | ||
export type unregHook = () => {} | ||
export type hookFn = (...args: any) => Promise<void> | void | ||
|
||
export interface Logger { | ||
error(...args: any), | ||
fatal?(...args: any), | ||
warn?(...args: any) | ||
} |
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
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,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"importHelpers": false, | ||
"noEmitHelpers": true, | ||
"strict": false, | ||
"esModuleInterop": true, | ||
"outDir": "dist", | ||
"declaration": true, | ||
"declarationDir": "types", | ||
"types": [ | ||
"node" | ||
], | ||
}, | ||
"include": [ | ||
"src" | ||
] | ||
} |
Oops, something went wrong.