apex-nitro icon indicating copy to clipboard operation
apex-nitro copied to clipboard

JavaScript isn't being uploaded with the upload sub-command

Open tschf opened this issue 4 years ago • 1 comments
trafficstars

Issue Description

I created a brand new APEX Nitro Project - the only change I made was to update the file apexnitro.cred.json and modify the .gitignore. When I perform the upload command javascript files are not being included in the upload.

C:\Users\TRENT\Projects\tmp> apex-nitro upload
APEX Nitro
=> building source C:\Users\TRENT\Projects\tmp\src ...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
=> build complete
...Now uploading!
Uploading to 1100 - Application Static Files...

SQLcl: Release 20.4 Production on Mon May 03 08:53:59 2021

Copyright (c) 1982, 2021, Oracle.  All rights reserved.

Connected to:
Oracle Database 19c EE High Perf Release 19.0.0.0.0 - Production
Version 19.9.0.0.0

Uploaded: C:\Users\TRENT\Projects\tmp\build\tmp.css
Uploaded: C:\Users\TRENT\Projects\tmp\build\tmp.min.css
Uploaded: C:\Users\TRENT\Projects\tmp\build\static\image.png

SQL> Disconnected from Oracle Database 19c EE High Perf Release 19.0.0.0.0 - Production
Version 19.9.0.0.0

Files were uploaded successfully.

APEX Nitro Version

5.0.2

Operating System

Windows

Node Version

15.12.0

Browser

N/A

APEX Version

20.2

Web Server

ORDS

The only thing that I could think of that may be causing the issue is the nonstandard end-point to the APEX App URL? The app path is like: /ords/dev_trent/f?p=1100. Note the additional path in the URL

..

And just to confirm, the javascript files are being built both on build and upload sub-commands:

image

tschf avatar May 02 '21 23:05 tschf

Config file:

{
  "mode": "pro",
  "template": "apex-nitro-template-default",
  "libraryName": "tmp",
  "mainJs": "./src/main.js",
  "globals": {
    "apex": "apex"
  },
  "srcFolder": "./src",
  "distFolder": "./build",
  "external": [
    "apex"
  ],
  "version": "1.0.0",
  "cssExtensions": [
    "scss"
  ],
  "appUrl": "https://example.com/ords/dev_trent/f?p=1100",
  "launch": {
    "port": 4000,
    "ghostMode": false,
    "notify": true,
    "open": true,
    "openBuilder": false
  },
  "upload": {
    "destination": "application",
    "credentialsPath": "./apexnitro.cred.json"
  },
  "mainCss": "./src/main.scss"
}

tschf avatar May 02 '21 23:05 tschf