使用最新版本的 AngularJS(当前为 1.7.2)启动新项目的最佳方式是什么?
official documentation建议克隆 Seed App project template ,但它使用 AngularJS 上的旧 1.5.11
版本。
甚至yarn AngularJS入门套件(yarn create angular-app my-app
)似乎也包含已弃用的软件包,然后在node-sass安装后脚本中失败。
我知道新项目应该使用 latest version of Angular ,但这仅用于教育目的。
最佳答案
您可以使用 Yarn 创建一个简约的 AngularJS 项目通过运行:
yarn init
yarn add angular
yarn add angular-route
yarn add gulp --dev
yarn add gulp-concat --dev
然后您必须使用构建任务创建一个gulpfile.js
。
或者,您可以从 angularjs-starter-kit 开始.
关于angularjs - 如何使用最新版本的 AngularJS 开始一个新项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50999557/