Read this
Put this instead.
<Installation InstalledByMsi="false">
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.VSWinDesktopExpress" />
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Pro" />
image: docker:19.03 | |
variables: | |
REPOSITORY_URL: <AWS_ACCOUNT_ID>.dkr.ecr.<REGION_NAME>.amazonaws.com/<ECR_REPOSITORY_NAME> | |
REGION: <REGION_NAME> | |
TASK_DEFINITION_NAME: <TASK_DEFINITION_NAME> | |
CLUSTER_NAME: <CLUSTER_NAME> | |
SERVICE_NAME: <SERVICE_NAME> | |
CPU: <CPU> | |
MEMORY: <MEMORY> |
#This is used locally by Create-React-App during development | |
#Cognito Region | |
REACT_APP_REGION=us-east-1 | |
REACT_APP_USER_POOL_ID=us-east-1_youruserpoolid | |
REACT_APP_APP_CLIENT_ID=yourcognitoappclientidgoeshere |
proxy: | |
mannequin: | |
- appname-styleguide.lndo.site | |
node: | |
- appname-bs.lndo.site:3000 | |
services: | |
mannequin: | |
type: compose | |
services: | |
image: php:7.3 |
import { Knex } from 'knex' | |
export async function up(knex: Knex): Promise<any> { | |
await knex.schema.createTable('test_setup', (table: Knex.TableBuilder) => { | |
table.integer('foobar'); | |
}); | |
} | |
export async function down(knex: Knex): Promise<any> { | |
await knex.schema.dropTable('test_setup'); |
Read this
Put this instead.
<Installation InstalledByMsi="false">
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.VSWinDesktopExpress" />
<InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Pro" />
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/ | |
# GitLab uses docker in the background, so we need to specify the | |
# image versions. This is useful because we're freely to use | |
# multiple node versions to work with it. They come from the docker | |
# repo. | |
# Uses NodeJS V 9.4.0 | |
image: node:9.4.0 | |
# And to cache them as well. |
The following will need to be known / obtained before getting started:
// How to add an SVG as a symbol layer's icon image: https://github.com/mapbox/mapbox-gl-js/issues/5529#issuecomment-340011876 | |
// Also see here: https://stackoverflow.com/a/11765731/2748013 (we need the data url stuff for the image src) | |
// NOTE: Importing SVGs requires an inline module loader such as https://github.com/webpack-contrib/svg-inline-loader | |
import template from './templates/marker.svg'; | |
const width = 20; | |
const height = 40; | |
const img = new Image(width, height); | |
// map is your Mapbox GL map object |
// get HEX/RGB/CMYK by Pantone code (parse official Pantone website search result) | |
async function pantone(pantoneCode){ | |
pantoneCode = pantoneCode // validate input: | |
.trim() | |
.replace(/^PANTONE /i, '') // we don't need 'PANTONE ' here | |
.replace(/ /g, '-'); // no spaces | |
return fetch(`https://www.pantone.com/color-finder/${pantoneCode}`) | |
.then(response => response.text()) | |
.then(doc => new DOMParser().parseFromString(doc, 'text/html')) |
image: docker:latest | |
before_script: | |
- apt-get update -y # Updating the Ubuntu Docker instance. | |
- python -V # Print out python version for debugging. | |
- apt install -y zip jq | |
- pip install awscli --upgrade --user | |
- export PATH=~/.local/bin:$PATH # Required for awscli. | |
- aws --version # Print out aws cli version for debugging. |