简体   繁体   English

angular-cli简单配置,无需测试和ng服务

[英]angular-cli simple configuration without test and ng serve

I have java webapp with angular2 support. 我有带有angular2支持的java webapp。

packaging and compilation of .java and .ts files is done through maven, then we run .war using spring-boot that gives hot deployment of code. .java和.ts文件的打包和编译是通过maven完成的,然后我们使用spring-boot运行.war,它提供了代码的热部署。

I want to use angular-cli only up to a consent, for generating components, services, etc.. i don't have plan to add jasmine tests yet so i am not worried about testing, server configuration etc.. i do not want webpacking and additional angular-cli garbage files either. 我想使用angular-cli只达到同意,生成组件,服务等。我没有计划添加茉莉花测试,所以我不担心测试,服务器配置等..我不想要webpacking和其他angular-cli垃圾文件。 only what is already defined in package.json is there a way i can use angular-cli on existing project for generating file structure only ? 只有在package.json已定义的内容是否有一种方法可以在现有项目上使用angular-cli来生成文件结构?

Following are project and file structure. 以下是项目和文件结构。

src/main/webapp
src/main/webapp/package.json
src/main/webapp/systemjs.config.js
src/main/webapp/app
src/main/webapp/main.ts
src/main/webapp/module.ts
src/main/webapp/component.ts
src/main/webapp/landing.html
src/main/webapp/node_modules

following is my package.json 以下是我的package.json

{
  "name": "angular-simple-start",
  "version": "1.0.0",
  "description": "Simple app",
  "scripts": {
  },
  "dependencies": {
    "@angular/common": "~2.4.0",
    "@angular/compiler": "~2.4.0",
    "@angular/core": "~2.4.0",
    "@angular/forms": "~2.4.0",
    "@angular/http": "~2.4.0",
    "@angular/platform-browser": "~2.4.0",
    "@angular/platform-browser-dynamic": "~2.4.0",
    "@angular/router": "~3.4.0",

    "angular-in-memory-web-api": "~0.2.4",
    "systemjs": "0.19.40",
    "core-js": "^2.4.1",
    "rxjs": "5.0.1",
    "zone.js": "^0.7.4"
  },
  "devDependencies": {
    "concurrently": "^3.2.0",
    "typescript": "~2.0.10",
    "@types/node": "^6.0.46",
  },

}

我不确定这是否可以回答您的问题,但您可以使用此命令行创建最小的应用程序,而无需任何测试:

ng new <project_name> --skip-test --minimal

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 不带Angular CLI和ng服务的Spring Boot的代理配置Angular 2 - Proxy Configuration Angular 2 for Spring Boot w/out Angular CLI and ng serve Spring Boot不提供静态内容(Angular-CLI)以在Tomcat上提供应用程序 - Spring boot not serving static content (angular-cli) to serve app on tomcat 通过Maven构建Angular-cli的问题 - Issue with building angular-cli through maven 如何将Angular-Cli前端与Spring-boot后端相结合 - How to combine Angular-Cli frontend to Spring-boot backend 没有@Bean的简单Spring Java @Configuration到@Autowire - Simple Spring Java @Configuration to @Autowire without @Bean 没有IDE的Angular JS环境配置 - Angular JS environment configuration without IDE 如何为简单的配置类编写测试? - How do I write a test for a simple configuration class? 无法使用TestNG启动简单的测试|| 读取配置文件时出错 - Can't launch simple Test with TestNG || Error reading configuration file 将角度嵌入弹簧应用程序并在运行ng服务时访问Spring Controllers - Embed angular into spring application and access Spring Controllers when running ng serve 如何在不启动整个上下文的情况下测试 Spring 中的@Configuration class? - How to test @Configuration class in Spring without starting up whole context?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM