@atlassian/clientside-extensions-docs
Advanced tools
Comparing version 2.0.0 to 2.1.0-0fb1601-kmjt4sp9
@@ -7,3 +7,3 @@ --- | ||
subcategory: get-help | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: extension-points | ||
date: '2021-02-18' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: extension-points | ||
date: '2021-01-17' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: extension-points | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: extension-points | ||
date: '2021-01-17' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: extension-points | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: how-to | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: how-to | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -109,4 +109,45 @@ | ||
## 3. Sharing scalars and types | ||
## 3. Generic code | ||
If you do not use React, there is a way to instead generate plain vanilla JavaScript code. | ||
For this to happen, set the _generic_ option to `true`. | ||
```js | ||
// #webpack.config.js | ||
module.exports = { | ||
// your webpack config | ||
entry: { /**/ }, | ||
output: {/**/}, | ||
plugins: [/**/], | ||
... | ||
module: { | ||
rules: [ | ||
// Add a rule entry to the list of loaders | ||
{ | ||
test: /\.cse.graphql$/, | ||
loader: '@atlassian/clientside-extensions-schema/loader', | ||
options: { | ||
// You can specify a working dir | ||
cwd: path.resolve(__dirname, 'src', 'schemas'), | ||
}, | ||
}, | ||
// Rule to handle non-react extensions | ||
{ | ||
test: /\.cse.generic.graphql$/, | ||
loader: '@atlassian/clientside-extensions-schema/loader', | ||
options: { | ||
cwd: path.resolve(__dirname, 'src', 'schemas'), | ||
// Enables vanilla javascript code generation | ||
generic: true | ||
}, | ||
}, | ||
] | ||
} | ||
}; | ||
``` | ||
## 4. Sharing scalars and types | ||
CSE provides a set of default [scalars and types](/server/framework/clientside-extensions/reference/api/extension-points/schemas/#provided-scalars) | ||
@@ -113,0 +154,0 @@ that you will be using very often, but there are cases where you would like to share your own types and scalars |
@@ -7,3 +7,3 @@ --- | ||
subcategory: how-to | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: introduction | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: introduction | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: introduction | ||
date: '2021-02-18' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: introduction | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: introduction | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: introduction | ||
date: '2021-01-17' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: introduction | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: index | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: api | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: glossary | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: webpack | ||
date: '2021-02-05' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
@@ -7,3 +7,3 @@ --- | ||
subcategory: webpack | ||
date: '2021-01-11' | ||
date: '2021-03-08' | ||
--- | ||
@@ -10,0 +10,0 @@ |
{ | ||
"name": "@atlassian/clientside-extensions-docs", | ||
"version": "2.0.0", | ||
"version": "2.1.0-0fb1601-kmjt4sp9", | ||
"description": "Holds the official documentation for Altassian Server client-side extensions API.", | ||
@@ -74,11 +74,12 @@ "license": "BSD-3-Clause", | ||
"set-last-updated": "doc-scripts set-last-updated", | ||
"version": "doc-scripts version", | ||
"version": "SKIP_VERSION_CHECK=true doc-scripts version", | ||
"link-check": "doc-scripts link-check", | ||
"prepare": "doc-scripts validate", | ||
"prepack": "doc-scripts set-last-updated", | ||
"prepare": "SKIP_VERSION_CHECK=true doc-scripts validate", | ||
"prepack": "SKIP_VERSION_CHECK=true doc-scripts set-last-updated", | ||
"doc-scripts": "doc-scripts" | ||
}, | ||
"optionalDependencies": { | ||
"@atlassian/doc-scripts": "^2.4.0" | ||
} | ||
"@atlassian/doc-scripts": "^2.6.0" | ||
}, | ||
"gitHead": "0fb1601d9a3b6b95b60262fc8aa6ef8561537e26" | ||
} |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1416423
2
1
1