Skip to content

Fixes and documentations to pug and parcel #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 1, 2022
Merged

Fixes and documentations to pug and parcel #80

merged 13 commits into from
May 1, 2022

Conversation

boray-tw
Copy link
Contributor

Update pug-cli and its Commands

  • Reason: pug-cli@1.0.0-alpha6 is dependent of pug@2.0.4 which is of high severity vulnerability reported by npm as shown in the following figure.
    Imgur
  • Solution:
    • Update pug-cli": "^1.0.0-alpha6 with @anduh/pug-cli": "^1.0.0-alpha8 in package.json. (Reference: pug-cli#86)
    • Update the compiling command of pug from pug to pug3.
  • Misc: Add a Windows-version pug-compiling command.

Update parcel, its Commands and Documentations

  • Reason:
    1. Parcel@2.4.1 is dependent of an updated version of caniuse-lite. It is reported by parcel as shown in the following figure.
      Imgur
    2. Without the setting of --public-url ./ when compiling with parcel, the files cannot be linked to the html file when the html file is viewed locally.
  • Solution:
    1. Update parcel and its transformers to 2.5.0.
    2. --public-url ./
  • Misc:
    1. Set parcel to be run by npx in the commands defined in package.json.
    2. Add the instructions that commands can be defined in package.json and then be run by npm run <script>.
    3. Add documentations of the 3 options used by parcel: --public-url, --dist-dir and --no-source-maps.

Misc

  1. Update the version of package.json.
  2. Add missing line break in readme of the preprocessor.
  3. Update preprocessor/yarn.lock with the new package.json

@darbychang darbychang merged commit 41ff97d into mbilab:master May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants