Total Pageviews

Showing posts with label angular. Show all posts
Showing posts with label angular. Show all posts

Thursday, 23 January 2025

ng

 12799@DESKTOP-B6LK9IO MINGW64 ~ (main)
$ find . -name ng
./.cargo/registry/index/index.crates.io-6f17d22bba15001f/.cache/la/ng
./.cargo/registry/index/index.crates.io-6f17d22bba15001f/.cache/tu/ng
./angular-site/node_modules/.bin/ng
find: ‘./AppData/Local/Microsoft/Windows/INetCache/Low/Content.IE5’: Permission denied


12799@DESKTOP-B6LK9IO MINGW64 ~ (main)
$ ls angular-site
README.md      package-lock.json  src/               tsconfig.spec.json
angular.json   package.json       tsconfig.app.json
node_modules/  server.ts          tsconfig.json

12799@DESKTOP-B6LK9IO MINGW64 ~ (main)
$ ~/angular-site/node_modules/.bin/ng --help
Node.js version v23.3.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/previous-releases/.
ng <command>

Commands:
  ng add <collection>            Adds support for an external library to your
                                 project.
  ng analytics                   Configures the gathering of Angular CLI usage
                                 metrics.
  ng build [project]             Compiles an Angular application or library into
                                 an output directory named dist/ at the given
                                 output path.                       [aliases: b]
  ng cache                       Configure persistent disk cache and retrieve
                                 cache statistics.
  ng completion                  Set up Angular CLI autocompletion for your
                                 terminal.
  ng config [json-path] [value]  Retrieves or sets Angular configuration values
                                 in the angular.json file for the workspace.
  ng deploy [project]            Invokes the deploy builder for a specified
                                 project or for the default project in the
                                 workspace.
  ng doc <keyword>               Opens the official Angular documentation
                                 (angular.io) in a browser, and searches for a
                                 given keyword.                     [aliases: d]
  ng e2e [project]               Builds and serves an Angular application, then
                                 runs end-to-end tests.             [aliases: e]
  ng extract-i18n [project]      Extracts i18n messages from source code.
  ng generate                    Generates and/or modifies files based on a
                                 schematic.                         [aliases: g]
  ng lint [project]              Runs linting tools on Angular application code
                                 in a given project folder.
  ng new [name]                  Creates a new Angular workspace.   [aliases: n]
  ng run <target>                Runs an Architect target with an optional
                                 custom builder configuration defined in your
                                 project.
  ng serve [project]             Builds and serves your application, rebuilding
                                 on file changes.                   [aliases: s]
  ng test [project]              Runs unit tests in a project.      [aliases: t]
  ng update [packages..]         Updates your workspace and its dependencies.
                                 See https://update.angular.io/.
  ng version                     Outputs Angular CLI version.       [aliases: v]

Options:
  --help  Shows a help message for this command in the console.        [boolean]

For more information, see https://angular.dev/cli/.

Saturday, 23 November 2024

devdocs.io

 许多编程语言的文档 汇总网站https://devdocs.io

您可以搜索他们的文档,在一个地方查找代码、语法、函数以及代码片段。

Monday, 11 November 2024

静态网站生成器scully

 

The Static Site Generator for Angular apps.

scully.io/

The best way to build the fastest Angular apps. Scully is a static site generator for Angular projects looking to embrace the Jamstack.

What is Scully?

Scully pre-renders each page in your app to plain HTML & CSS. To do this, Scully uses guessjs to find all of the routes in your project. Scully then visits each route, rendering the view and saving it to an HTML file.

You can then ship all of those HTML files to production. Each view in your app can now be delivered to your users in just a few KBs, as opposed to the hundreds/thousands of KBs require to download your entire Angular app.

Your app appears INSTANTLY on any device (including mobile 3G).

Once the fully-rendered HTML arrives/appears on the user's view, your Angular app will then load and bootstrap on top of the existing view. This means that Scully gives you the best of both worlds:

  1. The ability to pre-render your entire app to the most base form of HTML & CSS.
  2. The ability to still have a full powered SPA written in Angular.

When your app is pre-rendered, users no longer wait until all the JavaScript has downloaded, parsed and executed before they can see and interact with your website. They can immediately begin to see and interact with the page. When your page is IMMEDIATELY available, you will have less abandoned sessions and a much higher conversion rate on your website.

This also means that you may not need to ship your backend to production. Because the view is pre-rendered and the data is fetched at build time, all views that can run without the backend in prod CAN run without the backend in prod. The security and cost implications to that fact can be mind blowing when you think about them.

For those wanting to know more about this process, please read the Getting Started guide. For those who want to know more about the theory behind pre-rendering JavaScript SPAs, our friends at Netlify wrote a free book about the Jamstack. Check that out today.

NOTE!

Please notice that with the release of Scully version 2, support for Angular versions lower as 12 is deprecated. for older versions, you can keep on using the existing 1.1.1 version, which will only receive security updates from now on.

GET A HOLD OF US 24/7

The Scully core team wants to help you any time you need us. We don’t want you to get stuck without help. To make this possible, you have the following ways to get a hold of our team:

  1. The ScullyIO Gitter channel is available to the public, and you can chat questions to us in real time, one of the core team (or the community members) will be there to reply to it.

  2. Each Tuesday we have Office Hours at noon MDT. You can join the entire team and ask your questions.

  3. Our DMs are open on Twitter. Feel free to reach out to us on Twitter.

     from https://github.com/scullyio/scully

    -------------------------------------------------

    https://scully.io/docs/learn/getting-started/installation/

 

Thursday, 31 March 2022

my-ebook

收集的电子书, 都是些质量很高的书籍, 主要是软件开发方向.

frm https://github.com/rmlzy/my-ebook

Saturday, 10 July 2021

E5Html


This project was generated with Angular CLI version 10.2.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.


frm https://github.com/luoye663/e5-html