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
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
pull_request:
push:
branches: [main]
workflow_call:

permissions:
contents: read
packages: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: lts/*
cache: npm
registry-url: https://npm.pkg.github.com
scope: '@devexpress'
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm test
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

on:
push:
tags: ['v*.*.*']

permissions:
contents: read
packages: read

jobs:
test:
uses: ./.github/workflows/ci.yml

publish:
needs: test
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@v7
with:
node-version: lts/*
registry-url: https://npm.pkg.github.com
scope: '@devexpress'

- run: npm ci --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check the tag
run: npx --no vale-style-package-publisher check-release
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: npm publish --tag ${{ contains(github.ref_name, '-') && 'next' || 'latest' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create the GitHub release
run: >-
gh release create "$GITHUB_REF_NAME" --title "$GITHUB_REF_NAME" --generate-notes
${{ contains(github.ref_name, '-') && '--prerelease' || '' }}
env:
GH_TOKEN: ${{ github.token }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
195 changes: 195 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "@devexpress/vale-styles",
"version": "1.0.0",
"description": "Vale styles that implement the DevExpress Writing Style Guide",
"keywords": [
"vale",
"vale-style",
"style-guide",
"documentation",
"linter"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/DevExpress/vale-styles.git"
},
"files": [
"dist/",
"THIRD_PARTY_NOTICES.md"
],
"scripts": {
"build": "vale-style-package-publisher build",
"prepack": "npm run build",
"test": "vale-style-package-publisher test"
},
"peerDependencies": {
"@vvago/vale": "~3.25.1"
},
"peerDependenciesMeta": {
"@vvago/vale": {
"optional": true
}
},
"devDependencies": {
"@devexpress/vale-style-package-publisher": "1.0.2",
"@vvago/vale": "3.25.1"
},
"allowScripts": {
"@vvago/vale": true
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
19 changes: 19 additions & 0 deletions vale/vale/tests/clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Bind the Grid to Data

This sample must not trigger any rule. The smoke test (`npm test`) fails if Vale reports an alert for this file.

The Grid displays data from a local array or a remote service. To bind the Grid to data, set the `dataSource` property:

```js
const grid = new Grid(element, { dataSource: orders });
```

## Data Source Types

The Grid supports the following data source types:

- A local array of objects.
- A remote service that returns JSON.
- A custom store that loads data on demand.

Refer to the following topic for more information: [Data Binding](data-binding.md).
Loading