Skip to content

Commit

Permalink
Rewrite with Webpack (#509)
Browse files Browse the repository at this point in the history
Co-authored-by: edenizk <[email protected]>
Co-authored-by: Ergin Deniz Kosecioglu <[email protected]>
Co-authored-by: Ergin Deniz Kosecioglu <[email protected]>
  • Loading branch information
4 people authored Dec 17, 2021
1 parent 3e793fd commit 14fa2d0
Show file tree
Hide file tree
Showing 455 changed files with 30,018 additions and 6,651 deletions.
5 changes: 3 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
!.eslintrc.js
node_modules
generators/app/templates
test/generated_project
/packages/generator-chisel/lib/commands/create/creators/*/template
/test-projects
53 changes: 53 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
module.exports = {
root: true,

extends: 'chisel',

env: {
node: true,
},

rules: {
'global-require': 'off',
'import/no-dynamic-require': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'no-await-in-loop': 'off',
'no-param-reassign': 'off',
'no-console': 'off',
'no-underscore-dangle': 'off',

// Airbnb except for of
'no-restricted-syntax': [
'error',
{
selector: 'ForInStatement',
message:
'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
},
{
selector: 'LabeledStatement',
message:
'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
},
{
selector: 'WithStatement',
message:
'`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
},
],
},

overrides: [
{
files: ['./scripts/testSetup*.js', '**/__tests__/**/*.js'],

env: {
jest: true,
},

rules: {
// 'node/no-extraneous-require': 'off',
},
},
],
};
30 changes: 0 additions & 30 deletions .eslintrc.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,7 @@ npm-debug.log
.rvmrc
.vagrant

helpers/wp-cli.phar
# Chisel
/test-projects
/.jest-projects
/.changelog
20 changes: 0 additions & 20 deletions .grenrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12
3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

43 changes: 21 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
dist: bionic
language: node_js
node_js:
- "10"
- "8"
addons:
apt:
packages:
- php7.0-cli
- php7.0-mysql
- 10.14.2
- 10
- 12
- 14
cache:
yarn: true
# addons:
# apt:
# packages:
# - php7.2-cli
# - php7.2-mysql
services:
- mysql
before_install:
- npm install -g yo
- wget -P /tmp https://github.com/wp-premium/advanced-custom-fields-pro/archive/master.zip
- wget -P /tmp https://github.com/wp-premium/gravityforms/archive/master.zip
- wget -P /tmp https://github.com/wp-sync-db/wp-sync-db/archive/master.zip
- wget -P /tmp https://github.com/wp-sync-db/wp-sync-db-media-files/archive/master.zip
matrix:
include:
- node_js: "8"
env: TEST_VERSIONS=generator
- node_js: "8"
env: TEST_VERSIONS=generated_project
allow_failures:
- env: TEST_VERSIONS=generator
- env: TEST_VERSIONS=generated_project

before_script:
- yarn prepare-links
- cd packages/chisel-plugin-wordpress; yarn prepare; cd -;
- export FORCE_COLOR=3

after_script:
- npm install -g codecov
- codecov
51 changes: 40 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

<!-- INSERT-NEW-ENTRIES-HERE -->

## v0.16.1 (03/01/2020)

#### Enhancements:
Expand Down Expand Up @@ -87,7 +89,7 @@

#### Fixes:

- [#350](https://github.com/xfiveco/generator-chisel/issues/350) Set more specific paths for dist and vendor folders in .gitignore
- [#350](https://github.com/xfiveco/generator-chisel/issues/350) Set more specific paths for dist and vendor folders in .gitignore

---

Expand Down Expand Up @@ -140,6 +142,7 @@
---

## v0.9.0 (25/10/2017)

- [**enhancement**] When running Chisel check if it is up to date [#298](https://github.com/xfiveco/generator-chisel/issues/298)
- [**enhancement**] Update link in the readme in generated project to link to specific version [#297](https://github.com/xfiveco/generator-chisel/issues/297)
- [**enhancement**] Save Chisel version used to generate project in .yo-rc.json [#296](https://github.com/xfiveco/generator-chisel/issues/296)
Expand All @@ -150,7 +153,7 @@
- [**enhancement**] Add Media class to Chisel namespace in WP for various media adjustments [#265](https://github.com/xfiveco/generator-chisel/issues/265)
- [**enhancement**] Switch to yeoman-generator 2.0 [#262](https://github.com/xfiveco/generator-chisel/issues/262)
- [**enhancement**] Change .dev to .test [#261](https://github.com/xfiveco/generator-chisel/issues/261)
- [**enhancement**] Remove get_ from twigs wherever possible [#257](https://github.com/xfiveco/generator-chisel/issues/257)
- [**enhancement**] Remove get\_ from twigs wherever possible [#257](https://github.com/xfiveco/generator-chisel/issues/257)
- [**enhancement**] Add doctoc as devDependency and add script to generate TOC in README.md [#256](https://github.com/xfiveco/generator-chisel/issues/256)
- [**documentation**] Documented assetPath function [#242](https://github.com/xfiveco/generator-chisel/issues/242)
- [**enhancement**] Provide functionality for web fonts loading [#233](https://github.com/xfiveco/generator-chisel/issues/233)
Expand All @@ -159,6 +162,7 @@
---

## v0.8.0 (21/09/2017)

- Adding option to select how much ITCSS styling should be included (#182)
- Adding JavaScript vendor concatenation (#185)
- Using native font stack (#232)
Expand All @@ -170,23 +174,29 @@
- Switching to the original gulp-twig package (#253)
- Moving scripts to head (#258)
- Adding unminified versions of styles and scripts to dist (#259)

---

## v0.7.1 (27/07/2017)

- temporary reverting gulp-stylelint to previous version, fixes #229 (#230)

---

## v0.7.0 (21/07/2017)

- Added support for local `.yo-rc.json` (#204)
- Chisel starter theme improvements - reorganizing things to the Chisel namespace classes for easier updates and adding new functionality, see [Developing theme functionality](https://github.com/xfiveco/generator-chisel#developing-theme-functionality) (#206)
- Replacing deprecated `selector-no-id` with `selector-max-id` in stylelint config (#217)
- Improving default WordPress security settings (#220)
- Updating dependencies (#223)
- README updates (#226)
- Added wiki page [Setting up WordPress projects at Getfives](https://github.com/xfiveco/generator-chisel/wiki/Setting-up-WordPress-projects-at-Getfives)

---

## v0.6.4 (06/06/2017)

- Select ES6 by default during project scaffolding (#188)
- Use .babelrc for configuring babelify (#190)
- Changed Timber core classes names to current convention (#197)
Expand All @@ -200,22 +210,27 @@
---

## v0.6.3 (15/05/2017)

- increasing serve performance (#176)
- improve watch mode performance (#181)
- allowing to choose port for connecting to DB during project setup (#180)
- adding `vendor` directory to `scripts` and `styles`, excluding them from linting (#178)
- fixing that project folder with number in name didn't match the project slug (#184)

---

## v0.6.2 (06/04/2017)

- use npm scripts instead of calling gulp directly (#169)
- add className function (#171)
- add ignore for VS editor files and local "dist (#170)
- new Chisel tutorial - [Easy-to-use Code Blocks in WordPress](https://www.xfive.co/blog/easy-use-code-blocks-wordpress/)

---

## v0.6.1 (29/03/2017)
- Stylelint adjustments (#154)

- Stylelint adjustments (#154)
- Use yarn as install method if available (#159)
- Disable BrowserSync synchronization of scroll and clicks
- Add autoprefixer to watch
Expand All @@ -227,6 +242,7 @@
---

## v0.6.0 (15/02/2017)

- ITCSS improvements and automatic style guide generation - added new elements, objects and sample components
- default styles for WP projects - editor content, posts, comments, main navigation, etc. allows quicker prototyping themes
- removed compilation of prefixed templates (eg. _template.twig_), now only top level templates compile to pages
Expand All @@ -237,32 +253,35 @@
- fixing broken WP screenshot
- migrating to Yeoman 1.0
- resolving styling deprecation warnings
- [An MVC-like WordPress Development with ACF and Timber](https://www.xfive.co/blog/mvc-like-wordpress-development-acf-timber/) - a blog post showing a sample project which uses Chisel for development
- [An MVC-like WordPress Development with ACF and Timber](https://www.xfive.co/blog/mvc-like-wordpress-development-acf-timber/) - a blog post showing a sample project which uses Chisel for development

---

## v0.5.1 (24/01/2017)

- Introduced revisionedPath and change behaviour of assetPath (#127)
- Used hash of project name slug as table name prefix in WP projects
- Added no-undef rule to ESlint
- Support browser globar variables
- Added no-undef rule to ESlint
- Support browser globar variables
- Remove template related things on WordPress projects
- Allow manual modification of Browsersync proxy URL
- Updating docs with explanation how to use jQuery plugins with Browserify

---

## v0.5.0 (28/11/2016)

- Replacing Composer with WP-CLI (it’s a part of Chisel so no additional install is necessary)
- automatic WordPress setup and installation from command line
- pages generator works in WordPress projects too
- default project name based on the project directory name
- default author set to Xfive
- clearfix extend replaced with mixin
- clearfix extend replaced with mixin

---

## v0.4.0 (11/11/2016)

- syncing front-end and WordPress Twig templates (#97)
- Chisel starter theme consistency improvements (indentation, automatically generated theme name and author, correct package information)
- added project type question
Expand All @@ -276,48 +295,58 @@
---

## v0.3.1 (02/11/2016)
This is a patch release.

This is a patch release.

- Remove `.git` directory from theme folder (#96)

---

## v0.3.0: WordPress support (02/11/2016)

Notable changes and features:

- WP support (#81, #80, #74, #70, #59), thanks @jakub300 and welcome to the team!
- Loosening ESLint rules enhancement (#78)
- Loosening ESLint rules enhancement (#78)
- Base our Stylelint config on external standard enhancement (#47)
- Tons of bugfixes in development workflow

---

## v0.2.2 (19/09/2016)

- HTML validation with [gulp-htmlhint](https://github.com/bezoerb/gulp-htmlhint)
- Watchify errors handling, see #34
- Watchify errors handling, see #34

---

## v0.2.1 (24/08/2016)

- making the project index font size smaller

---

## v0.2.0 (24/08/2016)

- new project index design
- excluding private (prefixed with \_) templates from rendering to HTML, see #32

---

## v0.1.6 (17/08/2016)
- fixing problems with forcing Unix newlines on binary files, eg. font files or PNGs, see #30

- fixing problems with forcing Unix newlines on binary files, eg. font files or PNGs, see #30

---

## v0.1.5 (12/08/2016)

- Fixes #19 - adding stylelint - CSS linting task and configuration
- Fixes #29 - adding Twig templates base path
- improving editorconfig template

---

## v0.1.4 (08/08/2016)

- listing page sub generator in `package.json`
Loading

0 comments on commit 14fa2d0

Please sign in to comment.