Skip to content

Instantly share code, notes, and snippets.

View SaurabhLpRocks's full-sized avatar

Saurabh Palatkar SaurabhLpRocks

View GitHub Profile
FROM node:10.15.1-alpine as angular-built
WORKDIR /usr/src/app
RUN npm i -g @angular/[email protected]
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm install --silent
COPY . .
RUN ng build --prod --build-optimizer
FROM nginx:alpine
version: "3.4"
services:
ng-app-service:
image: ng.app.dev.image
container_name: ng.app.dev.container
build:
context: .
dockerfile: .docker/development.dockerfile
environment:
FROM node:10.15.1-alpine
LABEL author="Saurabh Palatkar"
# set working directory
RUN mkdir /usr/share/app
WORKDIR /usr/share/app
# install and cache app dependencies
COPY package.json package.json
{
"name": "vscode-workflow",
"version": "1.0.0",
"description": "Fullstack app to demonstrate end to end workflow of Angular and ASP Net Core app inside VS Code.",
"main": "index.js",
"keywords": [
"vscode",
"angular",
"aspnetcore",
".net",
{
"extends": ["stylelint-prettier/recommended"],
"rules": {
"prettier/prettier": true,
}
}
{
"trailingComma": "all",
"singleQuote": true,
"printWidth": 140,
"arrowParens": "always",
"overrides": [
{
"files": "*.js*, *.ts*",
"options": {
"prettier.printWidth": 140
{
"extends": ["tslint-consistent-codestyle", "tslint-plugin-prettier", "tslint-config-prettier"],
"rules": {
"prettier": true,
"array-type": false,
"arrow-parens": false,
"deprecation": {
"severity": "warn"
},
"component-class-suffix": true,
{
"tslint.configFile": "./tslint.json",
"prettier.singleQuote": true,
"prettier.trailingComma": "es5",
"prettier.printWidth": 140,
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
## Taken from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.