Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite with Webpack #465

Open
24 of 30 tasks
jakub300 opened this issue Jun 29, 2020 · 9 comments
Open
24 of 30 tasks

Rewrite with Webpack #465

jakub300 opened this issue Jun 29, 2020 · 9 comments
Assignees

Comments

@jakub300
Copy link
Collaborator

jakub300 commented Jun 29, 2020

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 create

Documentation

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

In Progress

  • don't delete me

To Do

@jakub300 jakub300 self-assigned this Jun 29, 2020
@jakub300 jakub300 added this to To do in Rewrite with Webpack via automation Jun 29, 2020
@jakub300 jakub300 moved this from To do to In progress in Rewrite with Webpack Jun 29, 2020
@jakub300 jakub300 pinned this issue Jun 29, 2020
@luboskmetko
Copy link
Member

@jakub300 tested it on Windows and works nicely for me.

@mortensassi
Copy link

This is awesome news! Good job guys - Did you also take a look at Laravel mix? Going to try it out

@marziolek
Copy link

@jakub300 I tried to generate project on Win10 and got error when database should be created:
Error: Too many positional arguments: 1

@dans-art
Copy link

Hi there
I run into the following problems;
After the Plug-in section (I've selected none) i got the Message;

npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

> fibers@5.0.0 install W:\SERVER\XAMPP\htdocs\test\xfive-project-wp\node_modules\fibers
> node build.js || nodejs build.js

"win32-x64-72" exists; testing
Binary is fine; exiting

> husky@4.3.0 install W:\SERVER\XAMPP\htdocs\test\xfive-project-wp\node_modules\husky
> node husky install

husky > Setting up git hooks
Cannot read property 'toString' of null
husky > Failed to install

After the Database Setup i got some errors like that:

Der Befehl "php" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

So the command php was not found.
It copied all the files except for the Wordpress Installation. After that i installed WP and setup the Database and now it seams to work.

@luboskmetko
Copy link
Member

@marziolek @spy15 thank you for trying new Chisel and for the reports.

@jakub300 can you take a look at those issues when you have time? Thanks

@mortensassi
Copy link

What do you guys think about Laravel Mix ? I have already used it with other custom themes and found it very easy to setup and extend to my needs.

@anatter
Copy link

anatter commented Jan 4, 2022

@marziolek

@jakub300 I tried to generate project on Win10 and got error when database should be created: Error: Too many positional arguments: 1

I also encountered this issue. Did you find a solution?

@marziolek
Copy link

@marziolek

@jakub300 I tried to generate project on Win10 and got error when database should be created: Error: Too many positional arguments: 1

I also encountered this issue. Did you find a solution?

I didn't have that issue since last time. You should check your local setup, node version, mysql etc.

@luboskmetko
Copy link
Member

@anatter could you please check if you are not on npm v6 like described here #495 (comment)? Upgrading npm or using yarn should help. If not, let us know. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Rewrite with Webpack
  
In progress
Development

No branches or pull requests

6 participants