Skip to content

Commit

Permalink
✅transpiled code to support old browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
John4650-hub committed Oct 5, 2023
1 parent 3e365ec commit f45aecb
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
node-version: 16

- run: sudo npm install --save-dev webpack webpack-cli
- run: npm install --save-dev @babel/core @babel/cli @babel/preset-env
- run: cd www && mkdir dist && cd ..
- run: npm run build
- run: npm run babelit
- run: ls
- run: sudo npm install -g [email protected]
- run: sudo cordova platform add android
Expand Down Expand Up @@ -68,7 +70,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.TK }}
with:
tag_name: ${{ github.run_number }}
release_name: ${{ github.event.repository.name }} v5.0.6 #release
release_name: ${{ github.event.repository.name }} v5.0.7 #release

- name: upload Release Apk
id: upload_release_assets
Expand Down
17 changes: 17 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"edge": "17",
"firefox": "60",
"chrome": "67",
"safari": "11.1"
},
"useBuiltIns": "usage",
"corejs": "3.6.5"
}
]
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main":"./www/js/app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --config webpack.config.js"
"build": "webpack --config webpack.config.js",
"babelit":"npx babel www/dist --out-dir www/dist"
},
"keywords": [
"ecosystem:cordova"
Expand Down
2 changes: 1 addition & 1 deletion sample.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Now ctrl + S 5o save changes to a file you are currently editing
transpiled code to support old browsers
1 change: 1 addition & 0 deletions www/js/components/tabs/changeLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ let log = [{
✅Now app can run in background
✅Prevent abrupt closure of app when using other apps
`},{version:'v5.0.6',info: `✅Now ctrl + S 5o save changes to a file you are currently editing
`},{version:'v5.0.7',info: `✅transpiled code to support old browsers
`}
]

Expand Down

0 comments on commit f45aecb

Please sign in to comment.