Giter Club home page Giter Club logo

starter-fse's Introduction

them.es Starter Full Site Editing (FSE) Theme

them.es Starter is a WordPress Starter Theme built for the new Full Site Editing experience. Please note that the Source files are only recommended for WordPress Developers who are searching for a simple, solid, proved and tested Full Site Editing Starter Theme to build upon. Don't expect a ready-to-use WordPress Theme!

If you want to see it in action or want to download a customized Theme for free, check out https://them.es/starter-fse

What's included?

  • WordPress Theme
  • Full Site Editing configuration: Templates, Template parts, theme.json and Sass Source files
  • webpack configuration
  • 2 Menus

Task Automation

This Theme comes with a built in webpack task automation. Sass files will be compiled if changed, vendor prefixes will be added automatically and the CSS will be minified. JS source files will be bundled and minified.

  • Prerequisites: Node.js (NPM) needs to be installed on your system
  • Open the Project directory / in Terminal and install the required Node.js dependencies: webpack, Sass-Compiler, Autoprefixer, etc.
  • $ npm install
  • Run the watch script
  • $ npm run watch
  • Modify /theme.json (Global settings for the block editor including the CSS variables), /assets/main.scss and /assets/main.js
  • Test the Theme
  • Run the build script
  • $ npm run build

(Optional) Include blocks in the theme

Technology

Copyright & License

Code and Documentation © them.es

Code released under GPLv2+

starter-fse's People

Contributors

them-es avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

starter-fse's Issues

Error: Cannot find module '@wordpress/scripts/config/webpack.config'

I try to run 'npm run watch' but it doesn't work I got the following errors

Error: Cannot find module 'webpack-remove-empty-scripts'
I solved it with
npm install webpack-remove-empty-scripts --save-dev

Then I get the following error

Error: Cannot find module '@wordpress/scripts/config/webpack.config'
And try to solve with the following command but it doesn't work

npm i webpack-dev-server

I also saw many outdated packages when installing it

npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated    
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, 
upgrade your dependencies to the actual version of core-js.

added 657 packages, and audited 658 packages in 27s

57 packages are looking for funding
  run `npm fund` for details

33 vulnerabilities (1 low, 6 high, 26 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Missing webpack.config.js

The webpack.config.js is missing from the repo but is included in the .zip when you get a copy of the theme from your website.
without it , the "npm run watch" script fails.

Overriding webpack config : Blocks are not added in the build directory

Hi thanks for your work, discovering the power of FSE !

I've added your wordpress block1 starter in a new src directory in the theme and just ran npm run start but the block doesn't end up in the build directory.

When I delete the webpack.config.js the block ends up in build but all the other cool stuff like enjoying global js and scss don't work anymore.

What am I missing out ?

Cheers

Individual SASS/CSS files for blocks

Hey,
great starter theme, but it would be amazing to add support to be able to add individual block level SASS/CSS files to the theme.

So adding
"style": [ "file:./myblock.css" ],
works when adding a "myblocks.scss" file to the blocks/myblock/ directory.

Thanks,
Michael

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.