-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: compile files before release (#15)
* feat: compile files before release * Remove kill-port as it is not needed and does fail sometimes on windows sd * Remove postinstall hook, as it is not needed * Enhance docs with additional import to remove
- Loading branch information
1 parent
10b36c1
commit 941d3d7
Showing
18 changed files
with
238 additions
and
105 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
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
load-eufemia-styles.js | ||
*.js | ||
*.d.ts | ||
!babel.config.js |
25 changes: 25 additions & 0 deletions
25
packages/gatsby-plugin-eufemia-theme-handler/babel.config.js
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,25 @@ | ||
const presets = [ | ||
'@babel/preset-react', | ||
[ | ||
'@babel/preset-typescript', | ||
{ | ||
isTSX: true, | ||
allExtensions: true, | ||
}, | ||
], | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
modules: process.env.GATSBY_FILES ? false : 'auto', | ||
targets: { node: 'current' }, | ||
}, | ||
], | ||
] | ||
|
||
const gatsbyFiles = ['**/gatsby-browser.ts', '**/gatsby-ssr.ts'] | ||
|
||
module.exports = { | ||
ignore: process.env.GATSBY_FILES ? ['**/*.d.ts'] : gatsbyFiles, | ||
only: process.env.GATSBY_FILES ? gatsbyFiles : undefined, | ||
presets, | ||
} |
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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
17 changes: 0 additions & 17 deletions
17
packages/gatsby-plugin-eufemia-theme-handler/themeHandler.d.ts
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
packages/gatsby-plugin-eufemia-theme-handler/tsconfig.json
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,18 @@ | ||
{ | ||
"compileOnSave": false, | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
"skipLibCheck": true, | ||
"declaration": true, | ||
"allowJs": true, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"isolatedModules": true, | ||
"emitDeclarationOnly": true, | ||
"declarationDir": ".", | ||
"rootDir": "src", | ||
"baseUrl": "." | ||
}, | ||
"include": ["src/*.ts", "src/*.tsx"], | ||
"exclude": ["node_modules", "dist"] | ||
} |
Oops, something went wrong.