Skip to content

Commit 14fa2d0

Browse files
jakub300edenizkdenizcrafton
authored
Rewrite with Webpack (#509)
Co-authored-by: edenizk <[email protected]> Co-authored-by: Ergin Deniz Kosecioglu <[email protected]> Co-authored-by: Ergin Deniz Kosecioglu <[email protected]>
1 parent 3e793fd commit 14fa2d0

File tree

455 files changed

+30018
-6651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

455 files changed

+30018
-6651
lines changed

.eslintignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
!.eslintrc.js
12
node_modules
2-
generators/app/templates
3-
test/generated_project
3+
/packages/generator-chisel/lib/commands/create/creators/*/template
4+
/test-projects

.eslintrc.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
module.exports = {
2+
root: true,
3+
4+
extends: 'chisel',
5+
6+
env: {
7+
node: true,
8+
},
9+
10+
rules: {
11+
'global-require': 'off',
12+
'import/no-dynamic-require': 'off',
13+
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
14+
'no-await-in-loop': 'off',
15+
'no-param-reassign': 'off',
16+
'no-console': 'off',
17+
'no-underscore-dangle': 'off',
18+
19+
// Airbnb except for of
20+
'no-restricted-syntax': [
21+
'error',
22+
{
23+
selector: 'ForInStatement',
24+
message:
25+
'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.',
26+
},
27+
{
28+
selector: 'LabeledStatement',
29+
message:
30+
'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
31+
},
32+
{
33+
selector: 'WithStatement',
34+
message:
35+
'`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
36+
},
37+
],
38+
},
39+
40+
overrides: [
41+
{
42+
files: ['./scripts/testSetup*.js', '**/__tests__/**/*.js'],
43+
44+
env: {
45+
jest: true,
46+
},
47+
48+
rules: {
49+
// 'node/no-extraneous-require': 'off',
50+
},
51+
},
52+
],
53+
};

.eslintrc.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,7 @@ npm-debug.log
5252
.rvmrc
5353
.vagrant
5454

55-
helpers/wp-cli.phar
55+
# Chisel
56+
/test-projects
57+
/.jest-projects
58+
/.changelog

.grenrc.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

.prettierrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1+
dist: bionic
12
language: node_js
23
node_js:
3-
- "10"
4-
- "8"
5-
addons:
6-
apt:
7-
packages:
8-
- php7.0-cli
9-
- php7.0-mysql
4+
- 10.14.2
5+
- 10
6+
- 12
7+
- 14
8+
cache:
9+
yarn: true
10+
# addons:
11+
# apt:
12+
# packages:
13+
# - php7.2-cli
14+
# - php7.2-mysql
1015
services:
1116
- mysql
12-
before_install:
13-
- npm install -g yo
14-
- wget -P /tmp https://github.com/wp-premium/advanced-custom-fields-pro/archive/master.zip
15-
- wget -P /tmp https://github.com/wp-premium/gravityforms/archive/master.zip
16-
- wget -P /tmp https://github.com/wp-sync-db/wp-sync-db/archive/master.zip
17-
- wget -P /tmp https://github.com/wp-sync-db/wp-sync-db-media-files/archive/master.zip
18-
matrix:
19-
include:
20-
- node_js: "8"
21-
env: TEST_VERSIONS=generator
22-
- node_js: "8"
23-
env: TEST_VERSIONS=generated_project
24-
allow_failures:
25-
- env: TEST_VERSIONS=generator
26-
- env: TEST_VERSIONS=generated_project
17+
18+
before_script:
19+
- yarn prepare-links
20+
- cd packages/chisel-plugin-wordpress; yarn prepare; cd -;
21+
- export FORCE_COLOR=3
22+
23+
after_script:
24+
- npm install -g codecov
25+
- codecov

CHANGELOG.md

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
<!-- INSERT-NEW-ENTRIES-HERE -->
4+
35
## v0.16.1 (03/01/2020)
46

57
#### Enhancements:
@@ -87,7 +89,7 @@
8789

8890
#### Fixes:
8991

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

9294
---
9395

@@ -140,6 +142,7 @@
140142
---
141143

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

161164
## v0.8.0 (21/09/2017)
165+
162166
- Adding option to select how much ITCSS styling should be included (#182)
163167
- Adding JavaScript vendor concatenation (#185)
164168
- Using native font stack (#232)
@@ -170,23 +174,29 @@
170174
- Switching to the original gulp-twig package (#253)
171175
- Moving scripts to head (#258)
172176
- Adding unminified versions of styles and scripts to dist (#259)
177+
173178
---
174179

175180
## v0.7.1 (27/07/2017)
181+
176182
- temporary reverting gulp-stylelint to previous version, fixes #229 (#230)
183+
177184
---
178185

179186
## v0.7.0 (21/07/2017)
187+
180188
- Added support for local `.yo-rc.json` (#204)
181189
- 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)
182190
- Replacing deprecated `selector-no-id` with `selector-max-id` in stylelint config (#217)
183191
- Improving default WordPress security settings (#220)
184192
- Updating dependencies (#223)
185193
- README updates (#226)
186194
- Added wiki page [Setting up WordPress projects at Getfives](https://github.com/xfiveco/generator-chisel/wiki/Setting-up-WordPress-projects-at-Getfives)
195+
187196
---
188197

189198
## v0.6.4 (06/06/2017)
199+
190200
- Select ES6 by default during project scaffolding (#188)
191201
- Use .babelrc for configuring babelify (#190)
192202
- Changed Timber core classes names to current convention (#197)
@@ -200,22 +210,27 @@
200210
---
201211

202212
## v0.6.3 (15/05/2017)
213+
203214
- increasing serve performance (#176)
204215
- improve watch mode performance (#181)
205216
- allowing to choose port for connecting to DB during project setup (#180)
206217
- adding `vendor` directory to `scripts` and `styles`, excluding them from linting (#178)
207218
- fixing that project folder with number in name didn't match the project slug (#184)
219+
208220
---
209221

210222
## v0.6.2 (06/04/2017)
223+
211224
- use npm scripts instead of calling gulp directly (#169)
212225
- add className function (#171)
213226
- add ignore for VS editor files and local "dist (#170)
214227
- new Chisel tutorial - [Easy-to-use Code Blocks in WordPress](https://www.xfive.co/blog/easy-use-code-blocks-wordpress/)
228+
215229
---
216230

217231
## v0.6.1 (29/03/2017)
218-
- Stylelint adjustments (#154)
232+
233+
- Stylelint adjustments (#154)
219234
- Use yarn as install method if available (#159)
220235
- Disable BrowserSync synchronization of scroll and clicks
221236
- Add autoprefixer to watch
@@ -227,6 +242,7 @@
227242
---
228243

229244
## v0.6.0 (15/02/2017)
245+
230246
- ITCSS improvements and automatic style guide generation - added new elements, objects and sample components
231247
- default styles for WP projects - editor content, posts, comments, main navigation, etc. allows quicker prototyping themes
232248
- removed compilation of prefixed templates (eg. _template.twig_), now only top level templates compile to pages
@@ -237,32 +253,35 @@
237253
- fixing broken WP screenshot
238254
- migrating to Yeoman 1.0
239255
- resolving styling deprecation warnings
240-
- [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
256+
- [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
241257

242258
---
243259

244260
## v0.5.1 (24/01/2017)
261+
245262
- Introduced revisionedPath and change behaviour of assetPath (#127)
246263
- Used hash of project name slug as table name prefix in WP projects
247-
- Added no-undef rule to ESlint
248-
- Support browser globar variables
264+
- Added no-undef rule to ESlint
265+
- Support browser globar variables
249266
- Remove template related things on WordPress projects
250267
- Allow manual modification of Browsersync proxy URL
251268
- Updating docs with explanation how to use jQuery plugins with Browserify
252269

253270
---
254271

255272
## v0.5.0 (28/11/2016)
273+
256274
- Replacing Composer with WP-CLI (it’s a part of Chisel so no additional install is necessary)
257275
- automatic WordPress setup and installation from command line
258276
- pages generator works in WordPress projects too
259277
- default project name based on the project directory name
260278
- default author set to Xfive
261-
- clearfix extend replaced with mixin
279+
- clearfix extend replaced with mixin
262280

263281
---
264282

265283
## v0.4.0 (11/11/2016)
284+
266285
- syncing front-end and WordPress Twig templates (#97)
267286
- Chisel starter theme consistency improvements (indentation, automatically generated theme name and author, correct package information)
268287
- added project type question
@@ -276,48 +295,58 @@
276295
---
277296

278297
## v0.3.1 (02/11/2016)
279-
This is a patch release.
298+
299+
This is a patch release.
300+
280301
- Remove `.git` directory from theme folder (#96)
281302

282303
---
283304

284305
## v0.3.0: WordPress support (02/11/2016)
306+
285307
Notable changes and features:
308+
286309
- WP support (#81, #80, #74, #70, #59), thanks @jakub300 and welcome to the team!
287-
- Loosening ESLint rules enhancement (#78)
310+
- Loosening ESLint rules enhancement (#78)
288311
- Base our Stylelint config on external standard enhancement (#47)
289312
- Tons of bugfixes in development workflow
290313

291314
---
292315

293316
## v0.2.2 (19/09/2016)
317+
294318
- HTML validation with [gulp-htmlhint](https://github.com/bezoerb/gulp-htmlhint)
295-
- Watchify errors handling, see #34
319+
- Watchify errors handling, see #34
296320

297321
---
298322

299323
## v0.2.1 (24/08/2016)
324+
300325
- making the project index font size smaller
301326

302327
---
303328

304329
## v0.2.0 (24/08/2016)
330+
305331
- new project index design
306332
- excluding private (prefixed with \_) templates from rendering to HTML, see #32
307333

308334
---
309335

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

313340
---
314341

315342
## v0.1.5 (12/08/2016)
343+
316344
- Fixes #19 - adding stylelint - CSS linting task and configuration
317345
- Fixes #29 - adding Twig templates base path
318346
- improving editorconfig template
319347

320348
---
321349

322350
## v0.1.4 (08/08/2016)
351+
323352
- listing page sub generator in `package.json`

0 commit comments

Comments
 (0)