Skip to content

Commit ef7d869

Browse files
committed
Initial Commit
1 parent 397966a commit ef7d869

File tree

66 files changed

+7595
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+7595
-0
lines changed

.githooks/pre-commit

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#! /bin/bash
2+
3+
npx prettier --write .
4+
5+
# Get list of staged files
6+
staged_files=$(git diff --cached --name-only --diff-filter=ACMR)
7+
8+
# Run Prettier on the staged files and add them to the staging area
9+
for file in $staged_files; do
10+
if [ -e "$file" ]; then
11+
# npx prettier --write "$file"
12+
git add "$file"
13+
fi
14+
done

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
/out
3+
/dist
4+
/build
5+
/src/angular/**/*.jsx
6+
/src/angular/**/*.tsx
7+
/.idea
8+
/.ng2react
9+
.DS_Store

.prettierignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Ignore artifacts:
2+
dist
3+
coverage
4+
5+
# Ignore all HTML files:
6+
*.html
7+
*.md
8+
package.json
9+
package-lock.json

.prettierrc.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"endOfLine": "lf",
4+
"printWidth": 120,
5+
"tabWidth": 2,
6+
"arrowParens": "always",
7+
"semi": false
8+
}

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["maxbilbow.ng2react-vscode"]
3+
}

.vscode/settings.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ng2react.enabled": "yes",
3+
"ng2react.sandbox": true,
4+
"ng2react.openai.model": "gpt-4",
5+
"ng2react.source.angularRoot": "src/angular",
6+
"ng2react.source.reactRoot": "src/react",
7+
"ng2react.source.testRoot": "src/test",
8+
"ng2react.targetLanguage": "typescript"
9+
}

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @ng2react/examples
2+
3+
This is a collection of examples of how to use the `ng2react` library.

0 commit comments

Comments
 (0)