-
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.
Merge pull request #98 from Sfeir/monobranch
Monobranch: step 1 to 13
- Loading branch information
Showing
825 changed files
with
22,572 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
clone="../clone-angular-200" | ||
app=$1 | ||
root=$(pwd) | ||
|
||
copy_step () { | ||
name=$1 | ||
echo "copy step $name" | ||
|
||
path=steps/$name | ||
|
||
ng g app $name --minimal || exit 1 | ||
|
||
cd $clone | ||
branch=$(git branch | grep \* | cut -d ' ' -f2) | ||
cd $root | ||
|
||
rm -r $path/src/app && cp -r $clone/src/app $path/src/app | ||
|
||
rm -r $path/src/environments && cp -r $clone/src/environments $path/src/ | ||
rm -r $path/src/assets && cp -r $clone/src/assets $path/src/assets | ||
rm -r $path/src/styles.css && cp -r $clone/src/styles.css $path/src/styles.css | ||
rm -r $path/src/index.html && cp -r $clone/src/index.html $path/src/index.html | ||
|
||
git add . | ||
git status | ||
git commit -m "feat($name): create project from branch $branch" | ||
} | ||
|
||
if [ -d $clone/src/app ]; then | ||
echo "generate" | ||
|
||
copy_step "$app" | ||
cd $clone | ||
git checkout $(git branch | grep \* | cut -d ' ' -f2)-solution | ||
cd $root | ||
copy_step "$app-solution" | ||
|
||
ng serve $app-solution -o | ||
fi |
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,11 @@ | ||
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
# | ||
# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed | ||
|
||
> 0.5% | ||
last 2 versions | ||
Firefox ESR | ||
not dead | ||
not IE 9-11 |
Oops, something went wrong.