-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Installation and Testing
# install
yarn global add generator-chisel@next
# or
npm -g install generator-chisel@next
# after installation global chisel command should be added
# go to empty directory and use it to create a project
chisel createDocumentation
Documentation of the new version.
List below is WiP
Existing Chisel Features
Ready
- Hello message
- Check for updates before creation
- Warn when creating in existing project directory
- JS/SCSS bundling with hot reload in dev mode (now all with webpack)
- JS/SCSS linting (improved configs)
- Postcss support (autoprefixer)
- WP: reload on twig/php changes in template
- Create separate non-minified bundles during build
- WP Config during creation (also available when setting up existing project as
yarn chisel-scripts wp-config) - WP Plugins during creation
- WP: asses copying (Note: refresh on new assets is buggy, make some change in JS/SCSS to trigger rebuild).
- bundled WP CLI (
yarn wp) - Lint on git commit
- Page generator (
yarn add-page) - Build report
- Changelog generation (main one not tested)
In Progress
- don't delete me
To Do
On Hold
- jQuery
- vendor concatenated bundle
- placement of src dir
- front-end templates (and data injection)
New Features
Ready
- All static assets are hashed/revisioned (works with
assetPathin twig andurl('~assets/...')in CSS and JS). - React support with hot reload (babel and eslint), possible to enable in
chisel.config.js(NOT Gutenberg integration). - Automatic polyfills (disabled by default, can be enabled in
babel.config.js). - Inspect generated webpack config (
yarn chisel-scripts inspect) - Ask for supported browsers during generation
- Hooks for modifying webpack config and other things
- Add suport for inline SVG via PostCSS #460 - Add suport for inline SVG - assets can be inlined in (S)CSS with
url('~assets/images/something.svg?inline'). SVGO should be automatically applied during minification (not verified). - See dashboard: Prevent "regeneratorRuntime is not defined" #452, Add new wp_body_open action #454, Make sure lang attribute holds current language #459, Fix URL for WP setup doesn't work as expected #189, Enable CSS grid support for Autoprefixer #446, Build assets during first install #455, StyleLint warnings on fresh install #464, Replace normalize with postcss-normalize #271
In Progress
- don't delete me
To Do
piotrkulpinski, mortennh, marcinkrzeminski and krzysztof-k-ambi
Metadata
Metadata
Assignees
Labels
No labels