Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/build-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ jobs:
with:
node-version: ${{ matrix['node-version'] }}
- name: Install dependencies
uses: sergioramos/yarn-actions/install@master
with:
frozen-lockfile: true
run: npm install
- name: Run build
run: yarn compile:packages && yarn build:extension
run: npm run compile:packages && npm run build:extension
- name: Run extension test
uses: GabrielBB/xvfb-action@v1.0
with:
run: yarn test:extension
run: npm run test:extension
6 changes: 2 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
with:
node-version: ${{ matrix['node-version'] }}
- name: Install dependencies
uses: sergioramos/yarn-actions/install@master
with:
frozen-lockfile: true
run: npm install
- name: Run build
run: yarn build:ci
run: npm run build:ci
20 changes: 10 additions & 10 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
node-version: '16.x'
- name: Test Build
run: |
yarn install --frozen-lockfile
yarn api
yarn docs
npm install
npm run api
npm run docs
cd website
yarn install --frozen-lockfile
yarn build
npm install
npm run build
gh-release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
Expand Down Expand Up @@ -51,9 +51,9 @@ jobs:
run: |
git config --global user.email "actions@gihub.com"
git config --global user.name "gh-actions"
yarn install --frozen-lockfile
yarn api
yarn docs
npm install
npm run api
npm run docs
cd website
yarn install --frozen-lockfile
yarn deploy
npm install
npm run deploy
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ dist
node_modules
reports
lerna-debug.log
yarn-error.log
*.tsbuildinfo
*.vsix
goldens/models
goldens/temp
packages/**/yarn.lock
website/build
website/docs/api/*.md
website/.docusaurus
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
npm run commitlint --edit $1
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn
yarn build
npm install
npm run build
npx lint-staged
6 changes: 3 additions & 3 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.ts,tsx": "yarn betterer:precommit",
"*.js": "yarn lint",
"*": "yarn format"
"*.ts,tsx": "npm run betterer:precommit",
"*.js": "npm run lint",
"*": "npm run format"
}
3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ goldens
node_modules
reports
lerna-debug.log
yarn-error.log
tsconfig.tsbuildinfo
.vscode-test
*.vsix
**/*.snap
test/__snapshots__/**
**/yarn.lock
**/*.gif
**/*.ico
**/*.png
Expand All @@ -21,7 +19,6 @@ test/__snapshots__/**
.gitignore
.npmrc
.prettierignore
.yarnrc
.lintstagedrc
website/build
website/.docusaurus
Expand Down
2 changes: 0 additions & 2 deletions .yarnrc

This file was deleted.

19 changes: 19 additions & 0 deletions fixtures/workers/.betterer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { BettererTest } from '@betterer/betterer';
import { bigger, smaller } from '@betterer/constraints';
import { regexp } from '@betterer/regexp';
import { tsquery } from '@betterer/tsquery';

export default {
'test 1': () => new BettererTest({
test: () => 0,
constraint: bigger
}),
'test 2': () => new BettererTest({
test: () => 0,
constraint: smaller
}),
'test 3': () => tsquery(
'CallExpression > PropertyAccessExpression[expression.name="console"][name.name="log"]'
).include('./src/**/*.ts'),
'test 4': () => regexp(/(\/\/\s*HACK)/i).include('./src/**/*.ts')
};
2 changes: 2 additions & 0 deletions fixtures/workers/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK:
console.log('foo');
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"packages/typescript",
"packages/worker"
],
"npmClient": "yarn",
"npmClient": "npm",
"useWorkspaces": true,
"version": "5.4.0",
"command": {
Expand Down
Loading