Skip to content

Commit

Permalink
feat: frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek committed Sep 9, 2023
1 parent 5c01a92 commit bf0c417
Show file tree
Hide file tree
Showing 5 changed files with 874 additions and 26 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.json]
indent_size = 2

[*.{yaml,yml}]
indent_size = 2
1 change: 1 addition & 0 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {presets: ['@babel/preset-env']}
7 changes: 7 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
preset: 'ts-jest',
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
'^.+\\.(js|jsx)$': 'babel-jest'
}
};
20 changes: 19 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "./dist/index.js",
"repository": "https://github.com/Unleash/unleash-action.git",
"license": "Apache-2.0",
"type": "module",
"scripts": {
"build": "tsc",
"release": "ncc build src/index.ts --license licenses.txt -o dist",
Expand All @@ -19,9 +20,26 @@
"unleash-proxy-client": "^2.5.0"
},
"devDependencies": {
"@types/jest": "^29.5.4",
"@babel/preset-env": "^7.22.14",
"@vercel/ncc": "^0.36.1",
"babel-jest": "^29.6.4",
"jest": "^29.6.4",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"prettier": {
"proseWrap": "never",
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all",
"overrides": [
{
"files": "*.{json,yaml,yml,md}",
"options": {
"tabWidth": 2
}
}
]
}
}
Loading

0 comments on commit bf0c417

Please sign in to comment.