Skip to content

Commit

Permalink
fix(project): minor
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Oct 2, 2020
1 parent a2c7619 commit fd7ab31
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
69 changes: 69 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,62 @@
}
}
},
"build_ghpages": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"baseHref" : "/ngx-long-press2/",
"deployUrl": "/ngx-long-press2/",
"outputPath": "dist/ngx-long-press2-demo/browser",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss",
"./node_modules/prismjs/themes/prism-okaidia.css"
],
"scripts": [
"./node_modules/prismjs/prism.js",
"./node_modules/prismjs/components/prism-typescript.min.js"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
Expand Down Expand Up @@ -163,6 +219,19 @@
}
}
},
"prerender_ghpages": {
"builder": "@nguniversal/builders:prerender",
"options": {
"browserTarget": "ngx-long-press2-demo:build_ghpages:production",
"serverTarget": "ngx-long-press2-demo:server:production",
"routes": [
"/"
]
},
"configurations": {
"production": {}
}
},
"prerender": {
"builder": "@nguniversal/builders:prerender",
"options": {
Expand Down
Binary file added assets/v1.0.0/sketch.sketch
Binary file not shown.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:docs": "npx compodoc -p projects/ngx-long-press2/tsconfig.lib.json --hideGenerator --disableCoverage -d dist/ngx-long-press2-demo/browser/doc/",
"deploy": "ng deploy --no-build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"dev:ssr": "ng run ngx-long-press2-demo:serve-ssr",
"serve:ssr": "node dist/ngx-long-press2-demo/server/main.js",
"build:ssr": "ng build --prod && ng run ngx-long-press2-demo:server:production",
"prerender": "ng run ngx-long-press2-demo:prerender"
"serve:prerender": "cd dist/ngx-long-press2-demo/browser && http-server",
"postinstall": "ngcc",
"prerender": "ng run ngx-long-press2-demo:prerender",
"prerender:ghpages": "ng run ngx-long-press2-demo:prerender_ghpages"
},
"private": true,
"dependencies": {
Expand Down

0 comments on commit fd7ab31

Please sign in to comment.