Some commands: npm run build - to build the library. Output is in dist/ng2-file-upload/. npm run test - to run tests. Coverage report is in coverage/ as before. npm run demo.serve - to build demo application and serve it through browsersync npm run start - to run demo application using `ng serve`. Requires the library to be built and linked first.
113 lines
3.0 KiB
JSON
113 lines
3.0 KiB
JSON
{
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
"version": 1,
|
|
"newProjectRoot": "projects",
|
|
"projects": {
|
|
"ng2-file-upload": {
|
|
"root": ".",
|
|
"sourceRoot": "src",
|
|
"projectType": "library",
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular-devkit/build-ng-packagr:build",
|
|
"options": {
|
|
"tsConfig": "src/tsconfig.json",
|
|
"project": "src/ng-package.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"ng2-file-upload-demo": {
|
|
"root": "demo",
|
|
"sourceRoot": "demo/src",
|
|
"projectType": "application",
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular-devkit/build-angular:browser",
|
|
"options": {
|
|
"outputPath": "demo/dist",
|
|
"index": "demo/src/index.html",
|
|
"main": "demo/src/main.ts",
|
|
"tsConfig": "demo/src/tsconfig.json",
|
|
"assets": [
|
|
"demo/src/assets"
|
|
],
|
|
"styles": [],
|
|
"scripts": []
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"optimization": true,
|
|
"outputHashing": "all",
|
|
"sourceMap": false,
|
|
"extractCss": true,
|
|
"namedChunks": false,
|
|
"aot": true,
|
|
"extractLicenses": true,
|
|
"vendorChunk": false,
|
|
"buildOptimizer": true,
|
|
"fileReplacements": [
|
|
{
|
|
"replace": "demo/src/environments/environment.ts",
|
|
"with": "demo/src/environments/environment.prod.ts"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
"options": {
|
|
"browserTarget": "ng2-file-upload-demo:build"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"browserTarget": "ng2-file-upload-demo:build:production"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"ng2-file-upload-test": {
|
|
"root": ".",
|
|
"sourceRoot": "test",
|
|
"projectType": "library",
|
|
"architect": {
|
|
"test": {
|
|
"builder": "@angular-devkit/build-angular:karma",
|
|
"options": {
|
|
"main": "test/test.ts",
|
|
"karmaConfig": "test/karma.conf.js",
|
|
"scripts": [],
|
|
"styles": [],
|
|
"tsConfig": "test/tsconfig.json"
|
|
}
|
|
},
|
|
"lint": {
|
|
"builder": "@angular-devkit/build-angular:tslint",
|
|
"options": {
|
|
"tsConfig": [
|
|
"src/tsconfig.json",
|
|
"demo/src/tsconfig.json",
|
|
"test/tsconfig.json"
|
|
],
|
|
"exclude": [
|
|
"**/node_modules/**"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"defaultProject": "ng2-file-upload-demo",
|
|
"schematics": {
|
|
"@schematics/angular:component": {
|
|
"prefix": "",
|
|
"styleext": "css"
|
|
},
|
|
"@schematics/angular:directive": {
|
|
"prefix": ""
|
|
}
|
|
}
|
|
}
|