diff --git a/.gitignore b/.gitignore index 505595973..b00154ff4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,22 @@ docker-compose-logs package-lock.json dist/static/ dist/views/ + +# OS +.DS_Store + +# IDE - VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +# IDEs and editors +/.idea +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace diff --git a/README.md b/README.md index d1d7d818d..a0dae3b34 100644 --- a/README.md +++ b/README.md @@ -355,13 +355,13 @@ If you have Node v10+ installed locally, you can run the tests, and a local app, ```sh # Install dependencies -yarn +yarn install # Run the tests -npm test +yarn test # Run the app locally -npm run dev +yarn test:watch ``` Once you've started the app, visit `localhost:3000` and you'll get [step-by-step instructions](https://probot.github.io/docs/development/#configuring-a-github-app) for installing it in your GitHub account so you can start pushing commits and testing it locally. @@ -370,7 +370,7 @@ If you don’t have Node installed, you can use [Docker Compose](https://docs.do ```sh # Run the tests -docker-compose run --rm app npm test +docker compose run --rm app ``` ## Contributing diff --git a/docker-compose.yml b/docker-compose.yml index a09914708..01b7bb93f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,5 +7,5 @@ services: context: . args: NODE_ENV: development - command: ['npm', 'test'] + command: ['yarn', 'test'] entrypoint: '' diff --git a/package.json b/package.json index af3ca4b18..0c1a81a5b 100644 --- a/package.json +++ b/package.json @@ -8,14 +8,13 @@ "repository": "https://github.com/release-drafter/release-drafter", "scripts": { "build": "ncc build action.js --target es2021", - "dev": "nodemon --exec \"npm start\"", "start": "probot run ./index.js", "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch --notify --notifyMode=change --coverage", "generate-schema": "node ./bin/generate-schema.js print", "generate-fixtures": "node ./bin/generate-fixtures.js", "lint": "eslint bin/*.js lib/*.js action.js index.js test/**/*.js", - "prettier": "prettier --write **/*.{js,md,json,yml,yaml}", + "prettier": "prettier --write **/*.{js,md,json,yml}", "postversion": "npm run test && git push && git push --tags", "open-releases": "open \"$(node -e 'console.log(`${require(\"./package.json\").repository}/releases`)')\"", "deploy": "git push -f heroku \"$(node -e 'console.log(`v${require(\"./package.json\").version}`)')\":master",