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
18 changes: 18 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish to npm
on:
push:
tags:
- v[0-9].[0-9]+.[0-9]+

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: yarn
- run: yarn workspace @jsdrupal/client build
- run: yarn ci
- run: |
echo "npmAuthToken: \"${{ secrets.GITHUB_TOKEN }}\"" >> .yarnrc.yml
- run: yarn workspace @jsdrupal/client npm publish --access=public
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.npmrc
188 changes: 94 additions & 94 deletions .pnp.js

Large diffs are not rendered by default.

Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ plugins:
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-berry.cjs
npmPublishRegistry: "https://npm.pkg.github.com"
npmPublishAccess: "public"
2 changes: 2 additions & 0 deletions client/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src
rollup.config.js
4 changes: 3 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "@drupal/client",
"name": "@jsdrupal/client",
"version": "0.0.1",
"main": "index.js",
"repository": "git://github.com/jsdrupal/js-client.git",
"scripts": {
"build": "rimraf dist && rollup -c && mv dist/index.js index.js && rimraf dist",
"eslint": "yarn g:eslint",
Expand Down
2 changes: 1 addition & 1 deletion example-node/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const request = require('@drupal/client').request;
const request = require('@jsdrupal/client').request;

module.exports = async () => {
const resp = await request({
Expand Down
2 changes: 1 addition & 1 deletion example-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"eslintci": "yarn g:eslint -o ../reports/eslint/example-node.json -f json"
},
"dependencies": {
"@drupal/client": "workspace:client",
"@jsdrupal/client": "workspace:client",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@drupal/js-client",
"name": "@jsdrupal/js-client",
"private": true,
"workspaces": [
"docs",
Expand Down
3 changes: 3 additions & 0 deletions test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blah
blah
blah
74 changes: 37 additions & 37 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -118,42 +118,6 @@ __metadata:
languageName: node
linkType: hard

"@drupal/client@workspace:client":
version: 0.0.0-use.local
resolution: "@drupal/client@workspace:client"
dependencies:
"@rollup/plugin-typescript": ^8.0.0
"@types/node": ^14.14.10
"@types/node-fetch": ^2.5.7
"@typescript-eslint/eslint-plugin": ^4.9.0
"@typescript-eslint/parser": ^4.9.0
eslint: ^7.14.0
eslint-config-prettier: ^6.15.0
eslint-plugin-prettier: ^3.2.0
node-fetch: ^2.6.1
prettier: ^2.2.1
rimraf: ^3.0.2
rollup: ^2.34.0
tslib: ^2.0.3
typescript: ^4.1.2
languageName: unknown
linkType: soft

"@drupal/js-client@workspace:.":
version: 0.0.0-use.local
resolution: "@drupal/js-client@workspace:."
dependencies:
"@typescript-eslint/eslint-plugin": ^4.9.0
"@typescript-eslint/parser": ^4.9.0
eslint: ^7.14.0
eslint-config-prettier: ^6.15.0
eslint-plugin-prettier: ^3.2.0
prettier: ^2.2.1
rimraf: ^3.0.2
typescript: ^4.1.2
languageName: unknown
linkType: soft

"@eslint/eslintrc@npm:^0.2.1":
version: 0.2.1
resolution: "@eslint/eslintrc@npm:0.2.1"
Expand Down Expand Up @@ -198,6 +162,42 @@ __metadata:
languageName: node
linkType: hard

"@jsdrupal/client@workspace:client":
version: 0.0.0-use.local
resolution: "@jsdrupal/client@workspace:client"
dependencies:
"@rollup/plugin-typescript": ^8.0.0
"@types/node": ^14.14.10
"@types/node-fetch": ^2.5.7
"@typescript-eslint/eslint-plugin": ^4.9.0
"@typescript-eslint/parser": ^4.9.0
eslint: ^7.14.0
eslint-config-prettier: ^6.15.0
eslint-plugin-prettier: ^3.2.0
node-fetch: ^2.6.1
prettier: ^2.2.1
rimraf: ^3.0.2
rollup: ^2.34.0
tslib: ^2.0.3
typescript: ^4.1.2
languageName: unknown
linkType: soft

"@jsdrupal/js-client@workspace:.":
version: 0.0.0-use.local
resolution: "@jsdrupal/js-client@workspace:."
dependencies:
"@typescript-eslint/eslint-plugin": ^4.9.0
"@typescript-eslint/parser": ^4.9.0
eslint: ^7.14.0
eslint-config-prettier: ^6.15.0
eslint-plugin-prettier: ^3.2.0
prettier: ^2.2.1
rimraf: ^3.0.2
typescript: ^4.1.2
languageName: unknown
linkType: soft

"@next/env@npm:10.0.3":
version: 10.0.3
resolution: "@next/env@npm:10.0.3"
Expand Down Expand Up @@ -2858,7 +2858,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "example-node@workspace:example-node"
dependencies:
"@drupal/client": "workspace:client"
"@jsdrupal/client": "workspace:client"
eslint: ^7.14.0
eslint-config-prettier: ^6.15.0
eslint-plugin-prettier: ^3.2.0
Expand Down