diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..bd45010 --- /dev/null +++ b/.npmignore @@ -0,0 +1,24 @@ +.github +node_modules +cypress +cypress.config.js +babel.config.js +Makefile +jest-addon.config.js +__snapshots__ +screencast.gif +screenshot.png + +build + +# yarn 3 +.yarn +.yarn/cache +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +.yarnrc.yml +yarn.lock diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..fd5b441 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,12 @@ +{ + "trailingComma": "all", + "singleQuote": true, + "overrides": [ + { + "files": "*.overrides", + "options": { + "parser": "less" + } + } + ] +} diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 0000000..c62c9ef --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,33 @@ +{ + "extends": [ + "stylelint-config-prettier", + "stylelint-config-idiomatic-order" + ], + "plugins": [ + "stylelint-prettier" + ], + "overrides": [ + { + "files": [ + "**/*.less" + ], + "customSyntax": "postcss-less" + }, + { + "files": [ + "**/*.overrides" + ], + "customSyntax": "postcss-less" + }, + { + "files": [ + "**/*.scss" + ], + "customSyntax": "postcss-scss" + } + ], + "rules": { + "prettier/prettier": true, + "order/properties-alphabetical-order": null + } +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 41d5e18..b1135ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,6 @@ -## 1.0.0-alpha.2 (2023-08-18) - - - - ## 1.0.0-alpha.1 (2023-08-17) ### Feature diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index 0694f96..0000000 --- a/babel.config.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = function (api) { - api.cache(true); - const presets = ['razzle/babel']; - const plugins = [ - '@babel/plugin-proposal-export-default-from', // Stage 1 - '@babel/plugin-syntax-export-namespace-from', // Stage 4 - '@babel/plugin-proposal-throw-expressions', // Stage 2 - '@babel/plugin-proposal-nullish-coalescing-operator', // Stage 4 - - [ - 'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work - { - messagesDir: './build/messages/', - }, - ], - ]; - - return { - plugins, - presets, - }; -}; diff --git a/cypress.config.js b/cypress.config.js deleted file mode 100644 index 08d55e6..0000000 --- a/cypress.config.js +++ /dev/null @@ -1,8 +0,0 @@ -const { defineConfig } = require('cypress'); - -module.exports = defineConfig({ - e2e: { - baseUrl: 'http://localhost:3000', - specPattern: 'cypress/tests/**/*.cy.{js,jsx}', - }, -}); diff --git a/jest-addon.config.js b/jest-addon.config.js deleted file mode 100644 index f66acd4..0000000 --- a/jest-addon.config.js +++ /dev/null @@ -1,33 +0,0 @@ -module.exports = { - testMatch: ['**/src/addons/**/?(*.)+(spec|test).[jt]s?(x)'], - collectCoverageFrom: [ - 'src/addons/**/src/**/*.{js,jsx,ts,tsx}', - '!src/**/*.d.ts', - ], - transformIgnorePatterns: ['node_modules/(?!(volto-slate|@plone/volto)/)'], - moduleNameMapper: { - '@plone/volto/cypress': '/node_modules/@plone/volto/cypress', - '@plone/volto/babel': '/node_modules/@plone/volto/babel', - '@plone/volto/(.*)$': '/node_modules/@plone/volto/src/$1', - '@package/(.*)$': '/src/$1', - '@root/(.*)$': '/src/$1', - '~/(.*)$': '/src/$1', - 'load-volto-addons': - '/node_modules/@plone/volto/jest-addons-loader.js', - '\\.(css|less|scss|sass)$': 'identity-obj-proxy', - }, - transform: { - '^.+\\.js(x)?$': 'babel-jest', - '^.+\\.(png)$': 'jest-file', - '^.+\\.(jpg)$': 'jest-file', - '^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js', - }, - coverageThreshold: { - global: { - branches: 5, - functions: 5, - lines: 5, - statements: 5, - }, - }, -}; diff --git a/news/11.feature b/news/11.feature new file mode 100644 index 0000000..34e05ea --- /dev/null +++ b/news/11.feature @@ -0,0 +1 @@ +New result type icons @reekitconcept diff --git a/package.json b/package.json index c628e50..eb266e2 100644 --- a/package.json +++ b/package.json @@ -26,53 +26,8 @@ "url": "https://github.com/kitconcept/volto-blocks-grid/issues" }, "homepage": "https://github.com/kitconcept/volto-blocks-grid#readme", - "prettier": { - "trailingComma": "all", - "singleQuote": true, - "overrides": [ - { - "files": "*.overrides", - "options": { - "parser": "less" - } - } - ] - }, - "stylelint": { - "extends": [ - "stylelint-config-idiomatic-order" - ], - "plugins": [ - "stylelint-prettier" - ], - "overrides": [ - { - "files": [ - "**/*.less" - ], - "customSyntax": "postcss-less" - }, - { - "files": [ - "**/*.overrides" - ], - "customSyntax": "postcss-less" - } - ], - "rules": { - "prettier/prettier": true, - "rule-empty-line-before": [ - "always-multi-line", - { - "except": [ - "first-nested" - ], - "ignore": [ - "after-comment" - ] - } - ] - } + "publishConfig": { + "access": "public" }, "devDependencies": { "@plone/scripts": "^2.3.0", diff --git a/razzle.extend.js b/razzle.extend.js deleted file mode 100644 index ab7e169..0000000 --- a/razzle.extend.js +++ /dev/null @@ -1,12 +0,0 @@ -const plugins = (defaultPlugins) => { - return defaultPlugins; -}; - -const modify = (config, { target, dev }, webpack) => { - return config; -}; - -module.exports = { - plugins, - modify, -};