diff --git a/.eslintignore b/.eslintignore index b1b5e327..6f6f7f78 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ node_modules dist dev-test *.js +*.jsx diff --git a/package.json b/package.json index 924b9ebc..5d3be0fb 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "build": "lerna run build", "build:demo": "cd packages/demo && yarn build", "dev": "lerna run dev --scope=@staticcms/core", + "demo": "lerna run dev --scope=@staticcms/demo", "docs": "lerna run dev --scope=docs", "format": "lerna run format", "lint": "lerna run lint", diff --git a/packages/core/.eslintrc.js b/packages/core/.eslintrc.js index 6662510e..968245b9 100644 --- a/packages/core/.eslintrc.js +++ b/packages/core/.eslintrc.js @@ -122,12 +122,6 @@ module.exports = { { functions: false, classes: true, variables: true }, ], }, - }, - { - files: ['website/**/*'], - rules: { - 'import/no-unresolved': [0], - }, - }, + } ], }; diff --git a/packages/core/dev-test/index.js b/packages/core/dev-test/index.js index 4c29576e..14d2d8aa 100644 --- a/packages/core/dev-test/index.js +++ b/packages/core/dev-test/index.js @@ -1,7 +1,7 @@ // Register all the things CMS.init(); -const PostPreview = ({ entry, widgetFor, widgetsFor }) => { +const PostPreview = ({ entry, widgetFor }) => { return h( 'div', {}, diff --git a/packages/demo/.gitignore b/packages/demo/.gitignore new file mode 100644 index 00000000..2f87433c --- /dev/null +++ b/packages/demo/.gitignore @@ -0,0 +1,56 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +dist/ +bin/ +.tern-project +.vscode/ +.idea/ +manifest.yml +.imdone/ +data/contributors.json +cypress/videos +cypress/screenshots +__diff_output__ +.cache +*.log +.env +.temp/ +*.tgz +public/sw.js +public/workbox*.js + diff --git a/packages/demo/dist/index.html b/packages/demo/dist/index.html index 4524ae58..c3e18dbb 100644 --- a/packages/demo/dist/index.html +++ b/packages/demo/dist/index.html @@ -245,7 +245,7 @@ widget: 'markdown',
- +