diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e12130b11..6173d6204 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,8 +16,10 @@ jobs: with: node-version: '16' registry-url: 'https://registry.npmjs.org' + cache: 'yarn' + - name: Install dependencies - run: yarn + run: yarn install --immutable --prefer-offline - name: Check types run: yarn typecheck - name: Lint @@ -26,11 +28,11 @@ jobs: run: yarn test:ci - name: '@grafana/create-plugin - test an app plugin generation' - run: yarn workspace @grafana/create-plugin run generate-app && (cd ./packages/create-plugin/generated && yarn && yarn build && yarn lint) + run: yarn workspace @grafana/create-plugin run generate-app && (cd ./packages/create-plugin/generated && yarn install --prefer-offline && yarn build && yarn lint) - name: '@grafana/create-plugin - test panel plugin generation' - run: yarn workspace @grafana/create-plugin run generate-panel && (cd ./packages/create-plugin/generated && yarn && yarn build && yarn lint) + run: yarn workspace @grafana/create-plugin run generate-panel && (cd ./packages/create-plugin/generated && yarn install --prefer-offline && yarn build && yarn lint) - name: '@grafana/create-plugin - test datasource plugin generation' - run: yarn workspace @grafana/create-plugin run generate-datasource && (cd ./packages/create-plugin/generated && yarn && yarn build && yarn lint) + run: yarn workspace @grafana/create-plugin run generate-datasource && (cd ./packages/create-plugin/generated && yarn install --prefer-offline && yarn build && yarn lint) - name: '@grafana/sign-plugin - build' run: yarn workspace @grafana/sign-plugin run build @@ -58,17 +60,10 @@ jobs: with: node-version: '16' registry-url: 'https://registry.npmjs.org' - - - name: Cache node modules - uses: actions/cache@v3 - with: - path: node_modules - key: yarn-deps-${{ hashFiles('yarn.lock') }} - restore-keys: | - yarn-deps-${{ hashFiles('yarn.lock') }} + cache: 'yarn' - name: Install dependencies - run: yarn install --immutable + run: yarn install --immutable --prefer-offline - name: Build run: yarn build diff --git a/.gitignore b/.gitignore index c7930836f..b5f5aaa09 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ node_modules # Build output -generated +packages/create-plugin/generated dist # Errors diff --git a/README.md b/README.md index b1e0568bd..2e6d4dd11 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,34 @@ -# Grafana / Plugins tools - -Create and Sign Grafana plugins with ease. - -This is a mono-repo of packages aimed at helping plugin developers extend Grafana in amazing ways! - -| Package Name | Description | Readme | -| ------------- | ------------------------- | ------------------------------------------ | -| Create Plugin | Scaffold a Grafana Plugin | [Link](./packages/create-plugin/README.md) | -| Sign Plugin | Sign a Grafana Plugin | [Link](./packages/sign-plugin/README.md) | +
+ Grafana Logo +

Grafana Plugin tools

+

Create and Sign Grafana plugins with ease.

+
+
+ Node CI  + Auto Release +
+
+
+ +This is a mono-repo of NPM packages to help plugin developers extend Grafana in amazing ways! + +| Package Name | Description | Readme | Version | Downloads | +| ------------- | ------------------------- | ------------------------------------------ | ------------------------------------------------------------------------- | ------------------------------------------------------------ | +| Create Plugin | Scaffold a Grafana Plugin | [Link](./packages/create-plugin/README.md) | ![npm](https://img.shields.io/npm/v/@grafana/create-plugin?label=version) | ![npm](https://img.shields.io/npm/dw/@grafana/create-plugin) | +| Sign Plugin | Sign a Grafana Plugin | [Link](./packages/sign-plugin/README.md) | ![npm](https://img.shields.io/npm/v/@grafana/sign-plugin?label=version) | ![npm](https://img.shields.io/npm/dw/@grafana/sign-plugin) | ## Contributors ✨ @@ -29,4 +50,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d -This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! \ No newline at end of file +This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! diff --git a/docs/img/grafana_icon.svg b/docs/img/grafana_icon.svg new file mode 100644 index 000000000..e91f3abdb --- /dev/null +++ b/docs/img/grafana_icon.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + +