Commit Graph

32 Commits

Author SHA1 Message Date
Sodbileg Gansukh cf30adacce
Added navbar options (#906) 2022-11-11 11:30:32 +08:00
Sodbileg Gansukh d386ab090f Update Ghost version compatibility default value 2022-07-20 12:18:01 +08:00
Sodbileg Gansukh 69feef6c46 Exclude development files from zipped theme 2021-05-05 07:53:10 +08:00
Daniel Lockyer 91ced578c5
Updated tagName in release script
no issue

- as of 4.0, we're shipping tags with the preceding `v`, but this script
  ignored that and so the release was incorrect
- this commit updates the tagName to have the preceding `v`
2021-03-10 21:11:23 +00:00
Daniel Lockyer bd1dbd51c7
Updated default Ghost compatibility in release script
no issue

- not important, but it saves manually entering it during the release
  process
- Casper is only compatible with Ghost 4.0 moving forwards
2021-03-05 13:28:15 +00:00
Daniel Lockyer a43c6b3cbc
Fixed logic for checking GitHub token
no issue 

- the check needs to be inverted to ensure we're being passed a token
2021-03-04 00:29:56 +00:00
Daniel Lockyer f12ce05454
Removed the need for config.json when releasing
no issue

- we previously needed a config.json to provide the GitHub token for
  publishing new Casper releases
- this commit removes the need for this file by pulling the token from
  the environment variable, which everyone in the Core team has set up
2021-03-03 13:20:58 +00:00
John O'Nolan e637d809f6 Upgraded to color-mod, native CSS vars
Dropping final support for IE11 and moving to newer color-mod package to replace the old deprecated one
2020-07-28 00:52:31 +07:00
Jakub Maciej Chmielewski 0e0589cb04
Disabled yarn-error.log file export to zip (#725) 2020-06-17 19:07:34 +01:00
Daniel Lockyer 690ca22fb7 Removed test addition 2020-04-03 16:17:14 +01:00
Daniel Lockyer 31d43860ac Updated release script
no issue
2020-04-03 16:16:26 +01:00
Daniel Lockyer 6bf34a5a70 Moved Casper release code into gulpfile
no issue
2020-03-31 16:10:30 +01:00
Kevin Ansfield 7ad20d1325 Fixed deprecated autoprefixer config warning when running build tasks
no issue

Passing browser options directly into `autoprefixer()` has been deprecated in favour of general browserslist configuration in `package.json` or a `.browserslistrc` config file

- moved autoprefixer browsers list into `browserslist` config in `package.json`
- updated `autoprefixer` version
2019-10-20 16:05:37 +02:00
Kevin Ansfield 978ffe0eb6
Concatenated all JS into a single file (#624)
no issue

- moved large inline JS from templates into separate JS files
  - floating header
  - gallery card support
- use `gulp-concat` to concatenate all JS files into a single `built/casper.js` file
- reduces external JS file requests from 3 (jquery, infinite-scroll.js, jquery.fitvids.js) down to 2 (jquery, casper.js) and reduces page size by removing repeated inline code
2019-10-20 15:55:06 +02:00
Rishabh Garg 2eaeba8ba8
Updated current version and previous version logic (#554)
no issue

- Use current version from `package.json` instead of `npm_package_version` env variable
- Use `release.tag_name` instead of `release.name` for previous version
2019-10-20 12:05:13 +05:30
Pedro Almeida 788ee59fd4 Improve gulp globbing (#598) 2019-08-21 13:51:43 +08:00
Aileen Nowak b4d0219d4e Added livereload for .hbs files 2019-04-15 12:55:37 +08:00
kirrg001 8729dafcf5 Extended `yarn ship`: more automation
no issue

- added gulp task to extend casper release automation
- will draft the release for you
- will get the user facing commits from changelog
- runs after `yarn ship` (postship)
- full automation with env variables is possible
2019-03-15 14:38:26 +01:00
kirrg001 406ef78109 Gulpfile ES6
no issue

- ES6
2019-03-15 14:38:26 +01:00
Kevin Ansfield a212518827 🐛 Fixed incorrect/missing colours for various elements
closes https://github.com/TryGhost/Casper/issues/548
- the recent postcss upgrade resulted in real CSS variables being output with a fallback mechanism, unfortunately this broke a number of colors throughout the theme
- disabled the fallback mechanism to revert back to the previous behaviour
2019-03-12 18:14:48 +00:00
Hannah Wolfe 06c8020c16 Re-written gulpfile for gulp 4
- use the new, simpler format
- sourcemap and watch support is built in, so these plugins can be removed
- remove js filter - not sure what that did :/
- simplified task structure
2019-03-10 17:30:20 +00:00
Fabien O'Carroll 273e987240 Updated gulp to handle errors for every stream (#500)
no-issue

Previously we only added an error handler to the first stream in each
pipeline, this meant that if another stream errors you would get
unhelpful error handlers.
2019-01-22 11:00:10 +00:00
Aileen Nowak bef56a2294 Minified js (#485)
no issue

- Added a `js` task to run on the gulp build process and minifies our js files
- Changed the required scripts in `default.hbs` to use the minified js files in `/built/`
- Moved existing `js` tasks from `zip` task
2018-10-12 12:41:06 +07:00
Péter Szabolcs Nagy bfcab7172f Minified javascript in zip(#476)
no issue

* Added js minification step to gulp zip script
2018-10-08 16:34:07 +05:30
Aileen Nowak 9df85fbbe5 CSS built and comb
no issue
2018-02-27 11:48:17 +07:00
Paul Corbett a6eb6848de Removed obsolete gulp-nodemon (#435)
Closes #420

* Remove gulp-nodemon from dev dependencies
* Remove required dependency from gulpfile
2018-02-27 11:18:32 +07:00
Kevin Ansfield 978e54403c 🐛 Do not exclude `assets/css` from built zips
no issue

https://github.com/TryGhost/Casper/pull/403 added optimisations for reducing size of zip files but unfortunately it also stripped out `assets/css` which means that it's no longer possible to download the theme from the admin panel and use it for development.

- remove `assets/css` from the ignored files in the `zip` task
2017-10-24 12:08:26 +01:00
Mattia Natali 9597a28320 🎨 Optimized gulp zip file generation (#403)
no issue

- Optimised the `gulp zip` task, so the zip file doesn't include the `assets/css` (`built` folder is used for CSS) and the `dist` folder (is used to output the zip file)
2017-10-23 16:52:52 +07:00
Yoran Brondsema d34ff1d32b Add a Gulp task to create the zip (#374) 2017-09-18 09:37:00 -07:00
John O'Nolan 397a096949 Rejig asset compilation destination
Avoid using "public" because it's a reserved word by the asset helper
2017-06-16 13:23:03 +01:00
John O'Nolan b7a788f973 Clean up build tasks 2017-06-16 10:13:38 +01:00
John O'Nolan eda0ec4db2 First pass 2.0 design 2017-05-15 21:03:47 +01:00