Skip to content

Commit

Permalink
fix: initial step of project structure reorg (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
omariosouto committed Oct 10, 2022
1 parent abe1cb9 commit 241dfa7
Show file tree
Hide file tree
Showing 39 changed files with 337 additions and 29 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -25,6 +25,7 @@ jobs:
flutter-version: "3.0.3"
- name: "Start: Unit Testing"
run: |
cd ./package
flutter pub get
yarn install
yarn test
Expand All @@ -39,8 +40,9 @@ jobs:
- uses: subosito/flutter-action@v1
with:
flutter-version: "3.0.3"
- name: "Start: Unit Testing"
- name: "Start: Lint"
run: |
cd ./package
flutter pub get
yarn install
yarn lint
Expand All @@ -60,5 +62,6 @@ jobs:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID__DEMO_FLUTTER }}
run: |
cd ./package
yarn install
yarn deploy:flutterweb:demopreview
1 change: 1 addition & 0 deletions .github/workflows/deploy-demo.yml
Expand Up @@ -32,5 +32,6 @@ jobs:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID__DEMO_FLUTTER }}
run: |
cd ./package
yarn install
yarn deploy:flutterweb:demo
4 changes: 4 additions & 0 deletions .github/workflows/release-base.yml
Expand Up @@ -24,6 +24,7 @@ jobs:
flutter-version: '3.0.3'
- name: "Start: Unit Testing"
run: |
cd ./package
flutter pub get
yarn install
yarn test
Expand All @@ -42,6 +43,7 @@ jobs:
flutter-version: '3.0.3'
- name: "Start: Unit Testing"
run: |
cd ./package
flutter pub get
yarn install
yarn lint
Expand All @@ -66,11 +68,13 @@ jobs:
GIT_AUTHOR_NAME: "@bumper-bot"
GITHUB_TOKEN: ${{ secrets.GH_GLOBAL_TOKEN }}
run: |
cd ./package
echo 'Run Flutter CI Steps'
echo $GITHUB_TOKEN
yarn build
yarn release
- name: Release GitHub Registry
run: |
cd ./package
echo '//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}' > ~/.npmrc
yarn release:github_registry
9 changes: 7 additions & 2 deletions .github/workflows/release-dart.yml
Expand Up @@ -21,6 +21,7 @@ jobs:
node-version: '16'
- name: Setup credentials
run: |
cd ./package
git config --global user.email "13791385+omariosouto@users.noreply.github.com"
git config --global user.name "CI Bot - DevSoutinho"
npm run release:dart:clean
Expand All @@ -35,6 +36,10 @@ jobs:
}
EOF
- name: Check Publish Warnings
run: pub publish --dry-run
run: |
cd ./package
pub publish --dry-run
- name: Publish package
run: pub publish -f
run: |
cd ./package
pub publish -f
39 changes: 16 additions & 23 deletions example/with_flutter_sample/pubspec.lock
Expand Up @@ -28,7 +28,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.2"
version: "2.9.0"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -63,21 +63,14 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
version: "1.2.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.1.1"
code_builder:
dependency: transitive
description:
Expand Down Expand Up @@ -126,7 +119,7 @@ packages:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.3.1"
file:
dependency: transitive
description:
Expand Down Expand Up @@ -185,21 +178,21 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.11"
version: "0.12.12"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
version: "0.1.5"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
version: "1.8.0"
mockito:
dependency: transitive
description:
Expand All @@ -220,7 +213,7 @@ packages:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
version: "1.8.2"
pub_semver:
dependency: transitive
description:
Expand All @@ -231,10 +224,10 @@ packages:
responsive_styles:
dependency: "direct main"
description:
name: responsive_styles
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
path: "../../package"
relative: true
source: path
version: "2.1.0"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -253,7 +246,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.2"
version: "1.9.0"
stack_trace:
dependency: transitive
description:
Expand All @@ -274,21 +267,21 @@ packages:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.1.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.9"
version: "0.4.12"
typed_data:
dependency: transitive
description:
Expand Down
3 changes: 2 additions & 1 deletion example/with_flutter_sample/pubspec.yaml
Expand Up @@ -29,7 +29,8 @@ environment:
dependencies:
flutter:
sdk: flutter
responsive_styles: any
responsive_styles:
path: "../../package"
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json → package/package.json
Expand Up @@ -32,8 +32,8 @@
"bump:flutter": "node ./scripts/bumpFlutter.js",
"postversion": "yarn bump:flutter && git add .",
"deploy:flutterweb:demopreview": "node ./scripts/pullRequestPreview.js",
"deploy:flutterweb:demo_base": "cd example/with_flutter_sample && flutter pub get && flutter build web --web-renderer html && npx vercel ./build/web --confirm --token=$VERCEL_TOKEN_GLOBAL",
"deploy:flutterweb:demo": "cd example/with_flutter_sample && flutter pub get && flutter build web --web-renderer html && npx vercel ./build/web --confirm --token=$VERCEL_TOKEN_GLOBAL --prod"
"deploy:flutterweb:demo_base": "cd ../example/with_flutter_sample && flutter pub get && flutter build web --web-renderer html && npx vercel ./build/web --confirm --token=$VERCEL_TOKEN_GLOBAL",
"deploy:flutterweb:demo": "cd ../example/with_flutter_sample && flutter pub get && flutter build web --web-renderer html && npx vercel ./build/web --confirm --token=$VERCEL_TOKEN_GLOBAL --prod"
},
"dependencies": {},
"devDependencies": {
Expand Down

0 comments on commit 241dfa7

Please sign in to comment.