Giter Club home page Giter Club logo

fe-us-app's Introduction

Nuxt 3 Minimal Starter

Look at the Nuxt 3 documentation to learn more.

Setup


  • Make sure to install the dependencies:

    # yarn
    npx husky-init  && yarn install

Husky


Setup :

  • Install commitlint with a config, which will be used to lint your commit message:

    yarn add @commitlint/{cli,config-conventional}
  • As we are using config-conventional we are automatically following the Angular commit convention. Now we need to tell Husky to run commitlint during the Git commit hook. Therefore, we need to add a commit-msg file to the .husky folder:

    #!/bin/sh
    . "$(dirname "$0")/_/husky.sh"
    npx --no-install commitlint --edit "$1"
  • Finally, we create a .commitlintrc.json file which extends the rules from config-conventional:

    {
      "extends": ["@commitlint/config-conventional"]
    }

Alert :

  • Fix "The '.husky/commit-msg' hook was ignored because it's not set as executable."

    #terminal
    chmod ug+x .husky/*

Generate Changelog


Install

  •   npm i --save-dev standard-version

    Now we can create some npm scripts in our package.json:

      "scripts": {
        "release": "standard-version",
        "release:minor": "standard-version --release-as minor",
        "release:patch": "standard-version --release-as patch",
        "release:major": "standard-version --release-as major"
      },

    The changelog generation can be configured via a .versionrc.json file or placing a standard-version stanza in your package.json.

    In our demo we use a .versionrc.json file based on the Conventional Changelog Configuration Spec:

    {
      "types": [
        { "type": "feat", "section": "Features" },
        { "type": "fix", "section": "Bug Fixes" },
        { "type": "chore", "hidden": true },
        { "type": "docs", "hidden": true },
        { "type": "style", "hidden": true },
        { "type": "refactor", "hidden": true },
        { "type": "perf", "hidden": true },
        { "type": "test", "hidden": true }
      ],
      "commitUrlFormat": "https://github.com/mokkapps/changelog-generator-demo/commits/{{hash}}",
      "compareUrlFormat": "https://github.com/mokkapps/changelog-generator-demo/compare/{{previousTag}}...{{currentTag}}"
    }

An array of type objects represents the explicitly supported commit message types, and whether they should show up in the generated changelog file. commitUrlFormat is an URL representing a specific commit at a hash and compareUrlFormat is an URL representing the comparison between two git shas.

Release

  • The first release can be created by running npm run release -- --first-release in the terminal:
  ▶ npm run release -- --first-release

  > [email protected] release /Users/mhoffman/workspace/changelog-generator-demo
  > standard-version "--first-release"

  ✖ skip version bump on first release
  ✔ created CHANGELOG.md
  ✔ outputting changes to CHANGELOG.md
  ✔ committing CHANGELOG.md
  ✔ tagging release v0.0.0
  ℹ Run `git push --follow-tags origin master` to publish

Development Server


Start the development server on http://localhost:3000

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Check out the deployment documentation for more information.

fe-us-app's People

Contributors

kiettl1-nals avatar letuankiet212 avatar

Watchers

 avatar  avatar

fe-us-app's Issues

Feature Component Colon

//component colon
<script setup lang="ts">
const { t: $t } = useI18n();

const colonContent = ref(`"${$t('common.colon')}"`);
</script>

<template>
  <label class="colon">hello</label>
</template>

<style lang="scss">
.colon::after {
  content: v-bind(colonContent);
}
</style>

US-1: Generate Change Log

DOCUMENTS:

How To Automatically Generate A Helpful Changelog From Your Git Commit Messages

HOW TO DO:

Description:

  • Semantic Versioning (SemVer) is a de facto standard for code versioning. It specifies that a version number always contains these three parts:

  • Developers tend to write commit messages that serve no purpose. Usually, the message does not describe where changes were made, what was changed, and what was the motivation for making the changes.
    So I recommend writing commit messages using the Conventional Commits specification:

An example of such a message:

fix(ABC-123): Caught Promise exception

We did not catch the promise exception thrown by the API call
and therefore we could not show the error message to the user

Mock API for Submit

  • Cách làm :
    • Khi người dùng click vào submit tiến hành check trong local store xem đã có dường dẫn đó chưa
      • Nếu có rồi thì thì show lỗi
      • Nếu chưa có gen ra 1 mã cho người dùng , và tiến hành lưu lại vào localstorge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.