Skip to content

Commit

Permalink
chore: clean slate
Browse files Browse the repository at this point in the history
Remove anything that is extraneous to the project (SCSS, express, etc.),
as well as anything that requires setup with a third party (codeclimate,
Rollbar).

Switch to Deno for the environment and set up a hello world script/test.
  • Loading branch information
dustin-jw committed Feb 22, 2022
1 parent 8f20ca5 commit 32b2479
Show file tree
Hide file tree
Showing 54 changed files with 1,002 additions and 7,986 deletions.
72 changes: 0 additions & 72 deletions .codeclimate.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/branch-image.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,3 @@ jobs:
run: npm run lint
- name: test
run: npm run test:ci
- name: report coverage
run: ./scripts/test-cc-report.sh
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
57 changes: 0 additions & 57 deletions .github/workflows/deploy.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .stylelintrc.json

This file was deleted.

12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:16
FROM denoland/deno:latest

WORKDIR /var/www/html
WORKDIR /app

COPY . /var/www/html
USER deno

RUN npm ci
RUN npm run clean
RUN npm run build
COPY . /app

CMD ["run", "src/index.ts"]
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
# Cohort Project Starter
# Import Accessibility Posts

Use this template for projects using Express to serve up basic content.
This runs a job on a regular basis that fetches the latest Foundry posts and adds any tagged with "Accessibility" to our list of accessibility resources.

## Getting Started

Clone this repo or [generate a new repo using this template](https://github.com/dustin-jw/cohort-project-starter/generate). Then, install dependencies and choose whether to run in development or production mode.
Clone this repo and build your Docker container.

```sh
npm ci
```
npm run build

To run in development mode:
# or

```sh
npm start
docker-compose build
```

To run in production mode:
To run the script:

```sh
docker-compose up
npm start

# or to run it in detached mode
# or

docker-compose up -d
docker-compose up
```

To lint and run tests:
Expand Down
11 changes: 0 additions & 11 deletions docker-compose.dev.yml

This file was deleted.

9 changes: 3 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
version: "3.7"

services:
web:
importer:
build: .
container_name: starter-web
ports:
- 8080:8080
container_name: importer
volumes:
- .:/var/www/html
command: npm run serve
- .:/app
5 changes: 0 additions & 5 deletions heroku.yml

This file was deleted.

5 changes: 1 addition & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
setupFiles: [
'<rootDir>/jest.setEnvVars.js',
],
testEnvironment: 'node',
};
2 changes: 0 additions & 2 deletions jest.setEnvVars.js

This file was deleted.

Loading

0 comments on commit 32b2479

Please sign in to comment.