This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
Releases: criticalmanufacturing/dev-tasks
Releases · criticalmanufacturing/dev-tasks
CMF MES 8.2.0
CMF MES 8.1.3
Features
- Support a new task __check-md-links that for documentation projects that supply the strict argument (gulp build --strict)
CMF MES 8.1.0
Features
- Added options to allow the bundle of i18n and metadata files of the project packages.
- i18n file paths of a package are now included in their own metadata file. This allows them to be dynamically imported in production environments.
- Support for Swedish translation
CMF MES 8.0.2
Bug Fix
- Add woff2 to the deployable files;
CMF MES 8.0.0
Features
- Node 12 support
- Bump version of Angular (v9.1.9)
- Added graceful-js dependency to support node 12 (v4.2.2)
- Support Docker Container (i.e. Linux environment)
Bug fix
- Added missing required package (dev-i18n-transform) in specific tasks
- Elasticlunr.js dependency changed to lurn.js due to maximum call stack size exceeded error on JSON.stringify
- Fix ModuleName as a Number Issue
- Gulp install with production flag (--production) also applied to NPM
- Other small fixes
Migration notes
- Due to Angular version bump, it's possible that your code no longer compiles. Please refer to Angular upgrade guide to fix your code.
CM MES 7.2.1
Bug Fixes
- Fix watch to work on root folder.
- Fix i18n-ts2po and i18n-po2ts to require the i18n transform packages properly.
CM MES 7.2.0
Features
- gulp install now supports the flag --updateDependencies.
This flag allows the usage of package-lock during install updating all cmf.* and @criticalmanufacturing/* packages to the version available on the default channel specified on .dev-tasks file.
CMF MES 7.1.1
Bug Fixes
- Moved @criticalmanufacturing/dev-i18n-transform to a peer dependency, to avoid conflits.
CMF MES 7.1.0
Features
- Package bundling
Regarding the improvements on CMF MES startup time, it was made some changes to aggregate files and static resources (like css, js, fonts, etc.) within bundles.-
How it works? in each web project (within gulfile.js), the developer can specify which bundles should be created and which paths should be included in each bundle (bu.json).
-
Where we load the bundles ? Is responsibility of each development team. By default, the vital bundles are configured in core solution bootstrap.
-
Ex. (Gulp File):
-
// Define if the compiler will make bundles or not
isBundleBuilderOn: true,
// The bundle configuration are attached with systemjs builder restrictions ( In this case, the configuration only matters for system js bundles )
bundleBuilderInitialConfig: "systemjsbuilderconfig.js",
// Which bundles will be created and what is their configuration file
bundleBuilderConfigFiles: [
...
{
bundleName: 'cmf.js',
// By default, the bundle will be minified (true)
bundleMinify: false,
bundleConfigs: ["./bu.json"]
},
{
bundleName: 'external_static.js',
bundleConfigs: ["./bu.json"]
}
...
],
// Which static assets should be copied and where
bundleBuilderAssetsConfig: [
{
bundleAssetsTask: 'core_fonts',
bundleConfigs: ["./bu.json"],
bundleDestPath: "node_modules/bundles/css/style/fonts/"
},
...]
* **Ex (Bundle Config File):**
* **bundleExpressions** are computed by systemjs builder.*
* **bundlePaths** are relative paths for static files*
* **bundleAssetsTask** is a kind of task for copy files only*
{
"bundlesConfiguration": [
...
{
"bundleName": "external_static.js",
"bundlePaths": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/webcomponentsjs/lite.js",
"node_modules/core-js/client/shim.min.js",
..
]
},
{
"bundleAssetsTask": "style_fonts",
"bundlePaths": [
"node_modules/cmf.style/assets/fonts/**/*.woff",
"node_modules/cmf.style/assets/fonts/**/*.sfd",
"node_modules/cmf.style/assets/fonts/**/*.svg",
"node_modules/cmf.style/assets/fonts/**/*.ttf"
]
},
{
"bundleName": "kendo.js",
"bundleExpressions": "[node_modules/cmf.kendoui/js/kendo.*.min.js]"
}
...]
}
Bug Fix
- URL Match: Changed the match expression of URLs to only redirect to
index.html
those which don't end on . (are files)
CMF MES 7.0.1
Bug fixes
- Support for Spanish translation;
- Detect circular dependencies;
- Context variable was being leak when running. If more than one project was being built simultaneously tasks would fail for no apparent reason;