Published by seek-oss-ci almost 6 years ago
Published by seek-oss-ci almost 6 years ago
configure
stepsku now has the concept of “controlled configurations”, which refers to configuration files that are dynamically generated in the project root, but managed by sku. Adding these files improves editor integration for tools such as prettier and TypeScript, while adding them to .gitignore
keeps them a platform concern rather than that of a project.
The configure
step will run as a post-install and will re-organise the .gitignore
file in your project using ensure-gitignore. All sku controlled ignores will now appear in a block, eg:
my_project_specific_ignore/
# managed by sku
...
ignores_controlled_by_sku/
...
# end managed by sku
Any changes made within the bounds of the comment block will be re-written on the next run of configure
(i.e. every npm install
).
Please assert that the changes in this file make sense.
If you have previously added .prettierrc
to your project it is recommended you remove it from version control. sku will now generate a controlled config file for you, ensuring it’s always consistent with the sku format
/sku lint
commands.
In addition, previously there was no way to control what files Prettier ran on. The format and lint commands now run on all supported file formats (eg. js
,ts
,tsx
,md
,less
and css
), not just the files in your src
folder.
If you want to opt out of any specific patterns you can do so by adding them to a .prettierignore
file in the root of your project.
$ git rm .prettierrc
$ npm run format
# then stage & commit the change
Published by seek-oss-ci about 6 years ago
If you're using babel-polyfill, please ensure you upgrade to @babel/polyfill
package.json
"dependencies": {
...
- "babel-polyfill": "^6.26.3"
+ "@babel/polyfill": "^7.0.0"
...
}
sku.config.js
)polyfills: [
...
- 'babel-polyfill'
+ '@babel/polyfill'
...
]
-require("babel-polyfill");
+require("@babel/polyfill");