anxelin-project-structure

Create a project structure for an Angular project

Usage no npm install needed!

<script type="module">
  import anxelinProjectStructure from 'https://cdn.skypack.dev/anxelin-project-structure';
</script>

README

Welcome to anxelin-project-structure πŸ‘‹

Version Documentation License: MIT

Create a project structure for an Angular project

🏠 Homepage

Install

npm ci

Current test

npm run build:watch
schematics .:anxelin-project-structure

Run tests

npm run test

Documentation

How to use in your Angular project?

ng g anxelin-project-structure:<SCHEMATIC_OPTION>

Schematic Options

aps

ng g anxelin-project-structure:aps

Creates a folder structure for an Angular project.

πŸ“¦src
 ┣ πŸ“‚app
 ┃ ┣ πŸ“‚config
 ┃ ┃ β”— πŸ“œ.gitkeep
 ┃ ┣ πŸ“‚pages
 ┃ ┃ β”— πŸ“œ.gitkeep
 ┃ β”— πŸ“‚shared
 ┃ ┃ ┣ πŸ“‚guards
 ┃ ┃ ┃ β”— πŸ“œ.gitkeep
 ┃ ┃ ┣ πŸ“‚interceptors
 ┃ ┃ ┃ β”— πŸ“œ.gitkeep
 ┃ ┃ ┣ πŸ“‚models
 ┃ ┃ ┃ β”— πŸ“œ.gitkeep
 ┃ ┃ ┣ πŸ“‚modules
 ┃ ┃ ┃ β”— πŸ“œ.gitkeep
 ┃ ┃ ┣ πŸ“‚services
 ┃ ┃ ┃ β”— πŸ“œ.gitkeep
 ┃ ┃ β”— πŸ“‚utilities
 ┃ ┃ ┃ β”— πŸ“œ.gitkeep
 ┣ πŸ“‚assets
 ┃ β”— πŸ“‚styles
 ┃ ┃ β”— πŸ“œ.gitkeep

cpg

ng g anxelin-project-structure:cpg

Creates a prettierrc file configuration

{
  "semi": true,
  "singleQuote": true,
  "proseWrap": "always"
}

chac

ng g anxelin-project-structure:chac

Create files to autogeneration CHANGELOG and validate commits with Conventional Commits.

Steps to configure

You need to install the following dependencies.

Run in a terminal

npm install husky && npm install @commitlint/config-conventional && npm i --save-dev standard-version

We need install globally @commitlint/config-conventional and commitlint/cli.

 npm install @commitlint/config-conventional @commitlint/cli -g

Add the following scripts in your 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"
  }
}

First release

Run in a terminal

npm run release -- --first-release

# Output
> 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

Finally you can check your autogenerate CHANGELOG.

Author

πŸ‘€ mikeg96 (https://github.com/MikeG96)

🀝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Donate

paypal

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❀️ by readme-md-generator