Package Exports
- @windwalker-io/fusion
- @windwalker-io/fusion/src/index.js
- @windwalker-io/fusion/src/lifecycles.js
- @windwalker-io/fusion/src/utilities/babel.js
- @windwalker-io/fusion/src/utilities/cli.js
- @windwalker-io/fusion/src/utilities/utilities.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@windwalker-io/fusion) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Windwalker Fusion
Windwalker Fusion provides a clean, fluent API to run Gulp tasks for compiling your code. Fusion supports several common CSS and JavaScript pre-processors.
Requirement
Node.js 13 up.
Getting Started
mkdir myapp && cd myapp
npm install @windwalker-io/fusion --save-dev
cp -r node_modules/@windwalker-io/fusion/config/fusionfile.mjs ./The fusionfile.mjs is your configuration on top of Gulp. The example code is:
import fusion from '@windwalker-io/fusion';
// The task `main`
fusion.task('main', function () {
fusion.watch('src/scss/**/*.scss');
fusion.sass('src/scss/**/*.scss', 'dist/app.css');
});
fusion.default(['main']);package.json
"scripts": {
"build": "cross-env node_modules/.bin/gulp --gulpfile=fusionfile.mjs",
"build:dev": "cross-env NODE_ENV=development node_modules/.bin/gulp --gulpfile=fusionfile.mjs",
"build:prod": "cross-env NODE_ENV=production node_modules/.bin/gulp --gulpfile=fusionfile.mjs",
"watch": "cross-env NODE_ENV=development node_modules/.bin/gulp --watch --gulpfile=fusionfile.mjs",
"watch:reload": "cross-env NODE_ENV=development node_modules/.bin/gulp --watch --livereload --gulpfile=fusionfile.mjs"
},