Skip to content

Commit

Permalink
Merge pull request #98 from Sfeir/monobranch
Browse files Browse the repository at this point in the history
Monobranch: step 1 to 13
  • Loading branch information
nlm-pro authored Nov 25, 2018
2 parents 624c4fd + f2ec4b2 commit 3be7bc6
Show file tree
Hide file tree
Showing 825 changed files with 22,572 additions and 1 deletion.
2,477 changes: 2,476 additions & 1 deletion angular.json

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions scripts/migrate-step.sh
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
11 changes: 11 additions & 0 deletions steps/binding-solution/browserslist
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
Loading

0 comments on commit 3be7bc6

Please sign in to comment.