Skip to content

Commit

Permalink
feat: rename packages (#6863)
Browse files Browse the repository at this point in the history
Rename netlify-cms to decap-cms

- rename all packages, folders, files, and other occurrences of the old name
- replace logo

* fix: change test email

* fix: rename plugin package

* fix: change cms package in website

* chore: ignore files and lines for prettier

* fix: auth page logo

* chore: update snapshots

* fix: namings in tests

* fix: missing end quote

* fix: rename decap-server folder

* fix: move logo to media

* test: revert test upload image to netlift.png

* test: fix proxy server path

---------

Co-authored-by: Anze Demsar <[email protected]>
  • Loading branch information
martinjagodic and demshy authored Aug 18, 2023
1 parent 07ef726 commit d515e7b
Show file tree
Hide file tree
Showing 947 changed files with 22,402 additions and 22,488 deletions.
4 changes: 2 additions & 2 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"projectName": "netlify-cms",
"projectOwner": "netlify",
"projectName": "decap-cms",
"projectOwner": "decaporg",
"files": [
"README.md"
],
Expand Down
8 changes: 4 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ module.exports = {
'cypress/globals': true,
},
globals: {
NETLIFY_CMS_VERSION: false,
NETLIFY_CMS_APP_VERSION: false,
NETLIFY_CMS_CORE_VERSION: false,
DECAP_CMS_VERSION: false,
DECAP_CMS_APP_VERSION: false,
DECAP_CMS_CORE_VERSION: false,
CMS_ENV: false,
},
rules: {
Expand Down Expand Up @@ -64,7 +64,7 @@ module.exports = {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
'import/core-modules': [...packages, 'netlify-cms-app/dist/esm'],
'import/core-modules': [...packages, 'decap-cms-app/dist/esm'],
},
overrides: [
{
Expand Down
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* @netlify/cms-maintainers
website/ @netlify/cms-maintainers @netlify/docs
* @decaporg/maintainers
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Steps to reproduce the behavior. For example:

**Applicable Versions:**
<!--You can find the CMS version by checking your web browser's developer tools console while in the CMS. -->
- Netlify CMS version: [e.g. 2.0.4]
- Decap CMS version: [e.g. 2.0.4]
- Git provider: [e.g. GitHub, BitBucket]
- OS: [e.g. Windows 7]
- Browser version [e.g. chrome 22, safari 11]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/netlify-cms@')
if: startsWith(github.ref, 'refs/tags/decap-cms@')

steps:
- name: Checkout
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ dist/
bin/
public/
.cache/
packages/netlify-cms-backend-github/src/fragmentTypes.js
packages/decap-cms-backend-github/src/fragmentTypes.js
packages/decap-cms-backend-gitlab/src/AuthenticationPage.js
packages/decap-cms-backend-proxy/src/implementation.ts
4 changes: 2 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
stories: [
'../packages/netlify-cms-core/src/**/*.stories.js',
'../packages/netlify-cms-ui-default/src/**/*.stories.js',
'../packages/decap-cms-core/src/**/*.stories.js',
'../packages/decap-cms-ui-default/src/**/*.stories.js',
],
addons: ['@storybook/addon-actions', '@storybook/addon-links'],
};
2 changes: 1 addition & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
{ "ignoreKeywords": ["dummyValue"], "camelCaseSvgKeywords": true }
]
},
"ignoreFiles": ["packages/netlify-cms-lib-auth/index.d.ts"]
"ignoreFiles": ["packages/decap-cms-lib-auth/index.d.ts"]
}
50 changes: 25 additions & 25 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
# Changelog
Netlify CMS is a collection of npm packages with their own versions and changelogs, each listed
Decap CMS is a collection of npm packages with their own versions and changelogs, each listed
below. The legacy pre-2.0 changelog is below as well.

## Core and distributions
- [netlify-cms](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms/CHANGELOG.md)
- [netlify-cms-core](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-core/CHANGELOG.md)
- [decap-cms](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms/CHANGELOG.md)
- [decap-cms-core](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-core/CHANGELOG.md)

## Shared libraries
- [netlify-cms-lib-auth](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-lib-auth/CHANGELOG.md)
- [netlify-cms-lib-util](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-lib-util/CHANGELOG.md)
- [netlify-cms-ui-default](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-ui-default/CHANGELOG.md)
- [decap-cms-lib-auth](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-lib-auth/CHANGELOG.md)
- [decap-cms-lib-util](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-lib-util/CHANGELOG.md)
- [decap-cms-ui-default](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-ui-default/CHANGELOG.md)

## Backends
- [netlify-cms-backend-bitbucket](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-backend-bitbucket/CHANGELOG.md)
- [netlify-cms-backend-git-gateway](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-backend-git-gateway/CHANGELOG.md)
- [netlify-cms-backend-github](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-backend-github/CHANGELOG.md)
- [netlify-cms-backend-gitlab](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-backend-gitlab/CHANGELOG.md)
- [netlify-cms-backend-test](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-backend-test/CHANGELOG.md)
- [decap-cms-backend-bitbucket](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-backend-bitbucket/CHANGELOG.md)
- [decap-cms-backend-git-gateway](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-backend-git-gateway/CHANGELOG.md)
- [decap-cms-backend-github](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-backend-github/CHANGELOG.md)
- [decap-cms-backend-gitlab](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-backend-gitlab/CHANGELOG.md)
- [decap-cms-backend-test](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-backend-test/CHANGELOG.md)

## Editor Components
- [netlify-cms-editor-component-image](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-editor-component-image/CHANGELOG.md)
- [decap-cms-editor-component-image](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-editor-component-image/CHANGELOG.md)

## Widgets
- [netlify-cms-widget-boolean](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-boolean/CHANGELOG.md)
- [netlify-cms-widget-date](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-date/CHANGELOG.md)
- [netlify-cms-widget-datetime](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-datetime/CHANGELOG.md)
- [netlify-cms-widget-file](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-file/CHANGELOG.md)
- [netlify-cms-widget-image](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-image/CHANGELOG.md)
- [netlify-cms-widget-list](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-list/CHANGELOG.md)
- [netlify-cms-widget-markdown](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-markdown/CHANGELOG.md)
- [netlify-cms-widget-number](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-number/CHANGELOG.md)
- [netlify-cms-widget-object](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-object/CHANGELOG.md)
- [netlify-cms-widget-relation](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-relation/CHANGELOG.md)
- [netlify-cms-widget-select](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-select/CHANGELOG.md)
- [netlify-cms-widget-string](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-string/CHANGELOG.md)
- [netlify-cms-widget-text](https://github.com/decaporg/decap-cms/blob/master/packages/netlify-cms-widget-text/CHANGELOG.md)
- [decap-cms-widget-boolean](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-boolean/CHANGELOG.md)
- [decap-cms-widget-date](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-date/CHANGELOG.md)
- [decap-cms-widget-datetime](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-datetime/CHANGELOG.md)
- [decap-cms-widget-file](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-file/CHANGELOG.md)
- [decap-cms-widget-image](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-image/CHANGELOG.md)
- [decap-cms-widget-list](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-list/CHANGELOG.md)
- [decap-cms-widget-markdown](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-markdown/CHANGELOG.md)
- [decap-cms-widget-number](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-number/CHANGELOG.md)
- [decap-cms-widget-object](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-object/CHANGELOG.md)
- [decap-cms-widget-relation](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-relation/CHANGELOG.md)
- [decap-cms-widget-select](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-select/CHANGELOG.md)
- [decap-cms-widget-string](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-string/CHANGELOG.md)
- [decap-cms-widget-text](https://github.com/decaporg/decap-cms/blob/master/packages/decap-cms-widget-text/CHANGELOG.md)

## Legacy Changelog

Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
18 changes: 9 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ yarn format

We actively welcome your pull requests!

If you need help with Git or our workflow, please ask in our [community chat](https://netlifycms.org/chat). We want your contributions even if you're just learning Git. Our maintainers are happy to help!
If you need help with Git or our workflow, please ask in our [community chat](https://decapcms.org/chat). We want your contributions even if you're just learning Git. Our maintainers are happy to help!

Netlify CMS uses the [Forking Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow) + [Feature Branches](https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow). Additionally, PR's should be [rebased](https://www.atlassian.com/git/tutorials/merging-vs-rebasing) on master when opened, and again before merging.
Decap CMS uses the [Forking Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow) + [Feature Branches](https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow). Additionally, PR's should be [rebased](https://www.atlassian.com/git/tutorials/merging-vs-rebasing) on master when opened, and again before merging.

1. Fork the repo.
2. Create a branch from `master`. If you're addressing a specific issue, prefix your branch name with the issue number.
Expand Down Expand Up @@ -161,18 +161,18 @@ backend:
<html>
<head>
<meta charset="utf-8" />
<title>Netlify CMS</title>
<title>Decap CMS</title>
</head>
<body>
<script src="dist/netlify-cms.js"></script>
<script src="dist/decap-cms.js"></script>
<!-- <script>
// this is the place to add CMS customizations if you need to, e.g.
CMS.registerPreviewTemplate('posts', PostPreview);
</script> -->
</body>
</html>
```
The most important thing is to make sure that Netlify CMS is loaded from the `dist` folder. This way, every time you make changes to the source code, they will be compiled and reflected immediately on `localhost`.
The most important thing is to make sure that Decap CMS is loaded from the `dist` folder. This way, every time you make changes to the source code, they will be compiled and reflected immediately on `localhost`.

3. Run `yarn start`
4. Open `http://localhost:8080/` in the browser and you should have access to the CMS
Expand All @@ -181,7 +181,7 @@ The most important thing is to make sure that Netlify CMS is loaded from the `di

When debugging the CMS with Git Gateway you must:

1. Have a Netlify site with [Git Gateway](https://docs.netlify.com/visitor-access/git-gateway/) and [Netlify Identity](https://docs.netlify.com/visitor-access/identity/) enabled. An easy way to create such a site is to use a [template](https://www.netlifycms.org/docs/start-with-a-template/), for example the [Gatsby template](https://app.netlify.com/start/deploy?repository=https://github.com/decaporg/gatsby-starter-decap-cms&stack=cms)
1. Have a Netlify site with [Git Gateway](https://docs.netlify.com/visitor-access/git-gateway/) and [Netlify Identity](https://docs.netlify.com/visitor-access/identity/) enabled. An easy way to create such a site is to use a [template](https://www.decapcms.org/docs/start-with-a-template/), for example the [Gatsby template](https://app.netlify.com/start/deploy?repository=https://github.com/decaporg/gatsby-starter-decap-cms&stack=cms)
2. Tell the CMS the URL of your Netlify site using a local storage item. To do so:

1. Open `http://localhost:8080/` in the browser
Expand All @@ -206,13 +206,13 @@ Example for running all the tests for the file `gitlab.spec.js`: `yarn jest gitl

Some test files like `API.spec.js` is available in several packages. You can pass a regexp pattern instead of file path to narrow down files.

Example for running all the tests for the file `API.spec.js` in the `netlify-cms-backend-gitlab` package:
Example for running all the tests for the file `API.spec.js` in the `decap-cms-backend-gitlab` package:

`yarn jest ".+backend-gitlab/.+/API.spec.js`

To run a specific test in a file, add the flag `--testNamePattern`, or `-t` for short followed by a regexp to match your test name.

Example for running the test "should return true on project access_level >= 30" in the API.spec.js in `netlify-cms-backend-gitlab` package:
Example for running the test "should return true on project access_level >= 30" in the API.spec.js in `decap-cms-backend-gitlab` package:

```
yarn jest -t "true on p" ".+backend-gitlab/.+/API.spec.js"
Expand All @@ -222,5 +222,5 @@ For more information about running tests exactly the way you want, check out the

## License

By contributing to Netlify CMS, you agree that your contributions will be licensed
By contributing to Decap CMS, you agree that your contributions will be licensed
under its [MIT license](LICENSE).
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016 Netlify <[email protected]>
Copyright (c) 2016 Netlify <[email protected]>

MIT License

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Decap CMS](/img/decap.svg)

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/decaporg/decap-cms/blob/master/LICENSE) [![Netlify Status](https://api.netlify.com/api/v1/badges/8b87160b-0a11-4f75-8050-1d21bc1cff8c/deploy-status)](https://app.netlify.com/sites/decap-www/deploys) [![npm version](https://img.shields.io/npm/v/netlify-cms.svg?style=flat)](https://www.npmjs.com/package/netlify-cms) [![Build Status](https://github.com/decaporg/decap-cms/workflows/Node%20CI/badge.svg)](https://github.com/decaporg/decap-cms/actions?query=branch%3Amaster+workflow%3A%22Node+CI%22) ![FOSSA Status](https://app.fossa.com/api/projects/custom%2B17679%2Fgit%40github.com%3Anetlify%2Fnetlify-cms.git.svg?type=shield) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/decaporg/decap-cms/blob/master/CONTRIBUTING.md)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/decaporg/decap-cms/blob/master/LICENSE) [![Netlify Status](https://api.netlify.com/api/v1/badges/8b87160b-0a11-4f75-8050-1d21bc1cff8c/deploy-status)](https://app.netlify.com/sites/decap-www/deploys) [![npm version](https://img.shields.io/npm/v/decap-cms.svg?style=flat)](https://www.npmjs.com/package/decap-cms) [![Build Status](https://github.com/decaporg/decap-cms/workflows/Node%20CI/badge.svg)](https://github.com/decaporg/decap-cms/actions?query=branch%3Amaster+workflow%3A%22Node+CI%22) ![FOSSA Status](https://app.fossa.com/api/projects/custom%2B17679%2Fgit%40github.com%3Anetlify%2Fdecap-cms.git.svg?type=shield) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/decaporg/decap-cms/blob/master/CONTRIBUTING.md)

[decapcms.org](https://www.decapcms.org/)

Expand Down
8 changes: 4 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');

const appVersion = require('./packages/netlify-cms-app/package.json').version;
const coreVersion = require('./packages/netlify-cms-core/package.json').version;
const appVersion = require('./packages/decap-cms-app/package.json').version;
const coreVersion = require('./packages/decap-cms-core/package.json').version;
const isProduction = process.env.NODE_ENV === 'production';
const isTest = process.env.NODE_ENV === 'test';
const isESM = process.env.NODE_ENV === 'esm';
Expand Down Expand Up @@ -60,8 +60,8 @@ function plugins() {
[
'transform-define',
{
NETLIFY_CMS_APP_VERSION: `${appVersion}`,
NETLIFY_CMS_CORE_VERSION: `${coreVersion}`,
DECAP_CMS_APP_VERSION: `${appVersion}`,
DECAP_CMS_CORE_VERSION: `${coreVersion}`,
},
],
[
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/markdown_widget_link_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Markdown widget link', () => {

describe('link', () => {
it('can add a new valid link', () => {
const link = 'https://www.netlifycms.org/';
const link = 'https://www.decapcms.org/';
cy.window().then(win => {
cy.stub(win, 'prompt').returns(link);
});
Expand All @@ -32,7 +32,7 @@ describe('Markdown widget link', () => {
});

it('can add a new invalid link', () => {
const link = 'www.netlifycms.org';
const link = 'www.decapcms.org';
cy.window().then(win => {
cy.stub(win, 'prompt').returns(link);
});
Expand All @@ -47,12 +47,12 @@ describe('Markdown widget link', () => {
});

it('can select existing text as link', () => {
const link = 'https://www.netlifycms.org';
const link = 'https://www.decapcms.org';
cy.window().then(win => {
cy.stub(win, 'prompt').returns(link);
});

const text = 'Netlify CMS';
const text = 'Decap CMS';
cy.focused()
.getMarkdownEditor()
.type(text)
Expand Down
Loading

0 comments on commit d515e7b

Please sign in to comment.