0
私はangle-cliのシードプロジェクトをGradleによってパッケージ化されTomcatサーバーに展開されたJavaアプリケーションと統合しようとしています。groovy gradleアプリケーションとangi cliプロジェクトの統合
角度ビルドをGradleビルドと統合するにはどうすればよいですか?そして、私のプロジェクトのためにコンパイルされたscssファイルを置くのが最善です。私はそれらを資産の下に置くことを考えており、コンパイルされたCSSファイルも同様にassestsの下で生成されます。ここで
は私のフォルダ構造です:
myApp
├── gradle
├── src
│ └── main
│ ├── groovy
│ ├── resources
│ ├── webapp
│ └── ngapp
├── angular-cli.json
├── e2e
├── karma.conf.js
├── node_modules
├── package.json
├── protractor.conf.js
├── tslint.json
├── tsconfig.json
├── WEB-INF
├── src
├── app //app component and other features components here
├── assets
├── environments
├── typings.d.ts
├── index.html
├── main.ts
├── polyfills.ts
├── styles.css
└── tsconfig.app.json
.angular-cli.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "ngapp"
},
"apps": [
{
"root": "src",
"outDir": "../webapp/ng",
"assets": [
"assets"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"tsconfig": "tsconfig.json",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "src/main/ngapp/tsconfig.json"
}
],
"defaults": {
"styleExt": "css",
"component": {}
}
}
tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"baseUrl": "src/main/ngapp",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2016",
"dom"
]
}
}
のように見えます。まだgradleビルドとの統合に苦労しています。 – Hazu