├── .deepsource.toml ├── .github └── workflows │ ├── codeql-analysis.yml │ ├── documentation.yml │ ├── nodejs.yml │ └── sonarcloud.yml ├── .gitignore ├── .prettierignore ├── .spelling ├── .travis.yml ├── .vscode └── settings.json ├── .yarn ├── patches │ ├── fork-ts-checker-webpack-plugin-npm-9.1.0-a1d6d9f548.patch │ ├── gulp-postcss-npm-9.0.1-bb3337d1e9.patch │ └── postcss-loader-npm-8.1.1-20cf547c92.patch ├── plugins │ └── @yarnpkg │ │ └── plugin-outdated.cjs └── releases │ └── yarn-4.9.2.cjs ├── .yarnrc.yml ├── CONTRIBUTING.md ├── LICENSE ├── PROFILING.md ├── README.md ├── docs ├── 01_Getting_Started.md ├── 03_Use_Cases │ ├── Compiling_CSS.md │ ├── Compiling_JavaScript.md │ ├── Compiling_TypeScript.md │ ├── Compressing_Images.md │ ├── Testing_your_code.md │ └── index.md ├── 04_User_Guides │ ├── 01_Configuring_the_build_in_a_blank_project.md │ ├── 01_Configuring_the_build_in_a_maven_project.md │ ├── 02_Create_a_configuration_file.md │ ├── Autofix_Resources.md │ ├── Developing_Faster_with_Crafty_watch.md │ ├── _index.md │ └── crafty.config.js_Available_Options.md ├── 05_Packages │ ├── 01_crafty │ │ ├── Anatomy_of_a_preset.md │ │ ├── The_Crafty_instance.md │ │ └── index.md │ ├── 02_crafty-runner-gulp.md │ ├── 02_crafty-runner-webpack.md │ ├── 05_crafty-preset-babel │ │ ├── JavaScript_Features.md │ │ └── index.md │ ├── 05_crafty-preset-eslint │ │ ├── ESLint_IDE_Integration.md │ │ ├── IDE_Integration_eslint_inline.png │ │ ├── JavaScript_Linting.md │ │ ├── TypeScript_Linting.md │ │ └── index.md │ ├── 05_crafty-preset-images-simple.md │ ├── 05_crafty-preset-images.md │ ├── 05_crafty-preset-jest │ │ ├── Jest_IDE_Integration.md │ │ └── index.md │ ├── 05_crafty-preset-lightningcss │ │ └── index.md │ ├── 05_crafty-preset-maven.md │ ├── 05_crafty-preset-postcss │ │ ├── CSS_Features.md │ │ ├── Postcss_Extension_API.md │ │ └── index.md │ ├── 05_crafty-preset-prettier.md │ ├── 05_crafty-preset-react.md │ ├── 05_crafty-preset-stylelint │ │ ├── CSS_Linting.md │ │ ├── Stylelint_IDE_Integration.md │ │ └── index.md │ ├── 05_crafty-preset-swc.md │ ├── 05_crafty-preset-typescript │ │ ├── Getting_Started_with_TypeScript.md │ │ ├── TypeScript_Features.md │ │ ├── TypeScript_Typings.md │ │ └── index.md │ ├── 10_babel-preset-swissquote.md │ ├── 10_eslint-plugin-swissquote.md │ ├── 10_postcss-swissquote-preset.md │ ├── 10_stylelint-config-swissquote.md │ └── index.md ├── CLI.md ├── IDE_Integration.md ├── Troubleshooting.md ├── Why.md ├── _index.md ├── config.json └── react-hot-loader.gif ├── docs_theme └── swissquote │ ├── config.json │ ├── css │ ├── theme.min.css │ └── theme.min.css.map │ ├── img │ └── favicon.png │ └── js │ ├── daux.min.js │ └── daux.min.js.map ├── examples ├── maven │ ├── pom.xml │ └── src │ │ └── main │ │ └── frontend │ │ ├── crafty.config.js │ │ ├── css │ │ ├── app.scss │ │ └── imported.scss │ │ ├── index.html │ │ ├── js │ │ ├── __tests__ │ │ │ ├── sum.js │ │ │ └── typescript_sum.ts │ │ ├── app.js │ │ ├── components │ │ │ ├── Component.js │ │ │ ├── Counter.tsx │ │ │ ├── Loading.js │ │ │ ├── Tabs.js │ │ │ └── __tests__ │ │ │ │ └── Component.js │ │ ├── containers │ │ │ ├── App.js │ │ │ └── Counters.tsx │ │ ├── sum.js │ │ └── typescript_sum.ts │ │ ├── package.json │ │ └── tsconfig.json ├── simple-swc │ ├── crafty.config.js │ ├── css │ │ ├── app.scss │ │ └── imported.scss │ ├── index.html │ ├── js │ │ ├── app.js │ │ ├── components │ │ │ ├── Component.js │ │ │ ├── Counter.js │ │ │ ├── Loading.js │ │ │ ├── Tabs.js │ │ │ └── __tests__ │ │ │ │ └── Component.js │ │ └── containers │ │ │ ├── App.js │ │ │ └── Counters.js │ └── package.json ├── simple │ ├── crafty.config.js │ ├── css │ │ ├── app.scss │ │ ├── imported.scss │ │ └── overrides.scss │ ├── index.html │ ├── js │ │ ├── __tests__ │ │ │ └── sum.js │ │ ├── app.js │ │ ├── components │ │ │ ├── Component.js │ │ │ ├── Component.module.css │ │ │ ├── Counter.js │ │ │ ├── Loading.js │ │ │ ├── Tabs.js │ │ │ └── __tests__ │ │ │ │ └── Component.js │ │ ├── containers │ │ │ ├── App.js │ │ │ └── Counters.js │ │ └── sum.js │ └── package.json ├── typescript-lib │ ├── crafty.config.js │ ├── js │ │ ├── components │ │ │ ├── Component.tsx │ │ │ ├── Counter.tsx │ │ │ ├── Loading.tsx │ │ │ ├── Tabs.tsx │ │ │ └── __tests__ │ │ │ │ └── Component.tsx │ │ └── index.ts │ ├── package.json │ └── tsconfig.json └── typescript │ ├── crafty.config.js │ ├── css │ ├── app.scss │ ├── imported.scss │ └── overrides.scss │ ├── index.html │ ├── js │ ├── __tests__ │ │ └── sum.ts │ ├── app.tsx │ ├── components │ │ ├── Component.module.css │ │ ├── Component.tsx │ │ ├── Counter.tsx │ │ ├── Loading.tsx │ │ ├── Tabs.tsx │ │ └── __tests__ │ │ │ └── Component.tsx │ ├── containers │ │ ├── App.tsx │ │ └── Counters.tsx │ ├── css-modules.d.ts │ └── sum.ts │ ├── package.json │ └── tsconfig.json ├── failed.txt ├── lint_docs.sh ├── package-forks ├── assets │ ├── LICENSE.txt │ ├── README.md │ ├── lib │ │ ├── __utils__ │ │ │ ├── composeAbsolutePathname.js │ │ │ ├── composeQueryString.js │ │ │ ├── composeRelativePathname.js │ │ │ ├── convertPathToUrl.js │ │ │ ├── defaultCachebuster.js │ │ │ ├── encodeBuffer.js │ │ │ ├── ensureTrailingSlash.js │ │ │ ├── exists.js │ │ │ └── nodeify.js │ │ ├── data.js │ │ ├── index.js │ │ ├── path.js │ │ ├── size.js │ │ └── url.js │ ├── package.json │ └── test │ │ ├── Assets.js │ │ ├── data.js │ │ ├── fixtures │ │ ├── duplicate-1.jpg │ │ ├── fonts │ │ │ ├── duplicate-2.txt │ │ │ └── empty-sans.woff │ │ ├── images │ │ │ ├── duplicate-1.jpg │ │ │ ├── duplicate-2.txt │ │ │ ├── picture.png │ │ │ └── vector.svg │ │ ├── invalid.jpg │ │ ├── patterns │ │ │ └── knitwork.gif │ │ └── white space.txt │ │ ├── path.js │ │ ├── size.js │ │ └── url.js ├── color-fns │ ├── index.js │ └── package.json ├── gulp-babel │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── gulp-concat │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ ├── fixtures │ │ ├── first.js │ │ └── second.js │ │ ├── main.js │ │ └── test-stream.js ├── gulp-newer │ ├── index.js │ ├── package.json │ ├── readme.md │ └── test │ │ ├── config-extra.test.js │ │ ├── dest-dir-does-not-exist.test.js │ │ ├── dest-dir-one-newer-file.test.js │ │ ├── dest-dir-one-older-file.test.js │ │ ├── dest-dir-two-newer-one-older.test.js │ │ ├── dest-file-does-not-exist.test.js │ │ ├── dest-file-ext-and-two-files.test.js │ │ ├── dest-file-first-source-newer.test.js │ │ ├── dest-file-last-source-newer.test.js │ │ ├── dest-file-no-newer.test.js │ │ ├── dest-file-second-source-newer.test.js │ │ ├── empty-dest-dir.test.js │ │ ├── index.test.js │ │ ├── report-error.test.js │ │ └── source-dest-mapping.test.js ├── lint.js ├── postcss-assets │ ├── LICENSE.txt │ ├── README.md │ ├── lib │ │ ├── __utils__ │ │ │ └── generateFileUniqueId.js │ │ ├── index.js │ │ ├── quote.js │ │ ├── unescape-css.js │ │ └── unquote.js │ ├── package.json │ └── test │ │ ├── .eslintrc │ │ ├── assets.test.js │ │ ├── fixtures │ │ ├── fonts │ │ │ └── empty-sans.woff │ │ └── images │ │ │ ├── invalid.jpg │ │ │ ├── picture.png │ │ │ └── vector.svg │ │ ├── quote.test.js │ │ ├── unescape-css.test.js │ │ └── unquote.test.js ├── postcss-atroot │ ├── LICENSE │ ├── README.md │ ├── __tests__ │ │ └── test.js │ ├── index.js │ └── package.json ├── postcss-color-gray │ ├── LICENSE.md │ ├── README.md │ ├── __tests__ │ │ ├── fixtures.test.js │ │ └── fixtures │ │ │ ├── basic-preserve.css │ │ │ ├── basic-preserve.expect.css │ │ │ ├── basic.css │ │ │ └── basic.expect.css │ ├── index.js │ └── package.json ├── postcss-color-hwb │ ├── LICENSE │ ├── README.md │ ├── __tests__ │ │ ├── fixtures │ │ │ ├── hwb-4.css │ │ │ ├── hwb-4.expected.css │ │ │ ├── hwb.css │ │ │ └── hwb.expected.css │ │ └── index.test.js │ ├── index.js │ └── package.json ├── postcss-color-mod-function │ ├── LICENSE.md │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── color.js │ │ ├── conversions.js │ │ ├── get-custom-properties.js │ │ ├── import-from.js │ │ ├── manage-unresolved.js │ │ └── transform.js │ ├── package.json │ └── tests │ │ ├── color.test.js │ │ ├── fixtures │ │ ├── basic.colors.expect.css │ │ ├── basic.css │ │ ├── basic.expect.css │ │ ├── color.json │ │ ├── hex.css │ │ ├── hex.expect.css │ │ ├── import-root.css │ │ ├── import-root.js │ │ ├── import-root.json │ │ ├── import.css │ │ ├── import.expect.css │ │ ├── spec-example.css │ │ ├── spec-example.expect.css │ │ ├── very-basic.css │ │ ├── very-basic.expect.css │ │ ├── w3c-color.css │ │ ├── w3c-color.expect.css │ │ ├── warn.css │ │ └── warn.expect.css │ │ └── index.test.js ├── postcss-custom-properties │ ├── LICENSE.md │ ├── README.md │ ├── package.json │ ├── src │ │ ├── index.js │ │ └── lib │ │ │ ├── get-custom-properties-from-imports.js │ │ │ ├── get-custom-properties-from-root.js │ │ │ ├── is-ignored.js │ │ │ ├── transform-properties.js │ │ │ ├── transform-value-ast.js │ │ │ └── write-custom-properties-to-exports.js │ └── test │ │ ├── fixtures │ │ ├── basic.css │ │ ├── basic.expect.css │ │ ├── basic.import-is-empty.expect.css │ │ ├── basic.import-override.expect.css │ │ ├── basic.import.expect.css │ │ ├── basic.preserve.expect.css │ │ ├── export-properties.css │ │ ├── export-properties.js │ │ ├── export-properties.json │ │ ├── export-properties.mjs │ │ ├── export-properties.scss │ │ ├── import-properties-2.css │ │ ├── import-properties-2.js │ │ ├── import-properties.css │ │ ├── import-properties.js │ │ ├── import-properties.json │ │ └── import-properties.pcss │ │ └── index.test.js ├── postcss-image-set-polyfill │ ├── LICENSE │ ├── README.md │ ├── __tests__ │ │ └── test.js │ ├── index.js │ └── package.json ├── postcss-selector-matches │ ├── LICENSE │ ├── README.md │ ├── __tests__ │ │ └── index.test.js │ ├── package.json │ └── src │ │ ├── index.js │ │ └── replaceRuleSelector.js └── random-cjs │ ├── index.js │ ├── number.js │ └── package.json ├── package.json ├── packages ├── babel-preset-swissquote │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── configurator-gulp.js │ ├── configurator-webpack.js │ ├── configurator.js │ ├── get-runtime.js │ ├── index.js │ ├── package.json │ └── packages │ │ ├── plugin-istanbul.js │ │ ├── plugin-transform-modules-commonjs.js │ │ ├── plugin-transform-property-literals.js │ │ ├── plugin-transform-react-remove-prop-types.js │ │ ├── plugin-transform-runtime.js │ │ ├── preset-env.js │ │ ├── preset-jest.js │ │ └── preset-react.js ├── crafty-commons-gulp │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ └── packages │ │ ├── graceful-fs.js │ │ ├── gulp-concat.js │ │ ├── gulp-eslint-new.js │ │ ├── gulp-newer.js │ │ ├── plugin-error.js │ │ ├── vinyl-fs.js │ │ ├── vinyl-sourcemaps-apply.js │ │ └── vinyl.js ├── crafty-commons-swc │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ ├── gulp-swc.js │ │ ├── swc-jest.js │ │ └── swc-loader.js │ └── src │ │ ├── configuration.js │ │ └── gulp.js ├── crafty-commons-webpack │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ └── packages │ │ ├── json5.js │ │ ├── loader-utils.js │ │ └── uri-js.js ├── crafty-commons │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ └── packages │ │ ├── ansi-colors.js │ │ ├── braces.js │ │ ├── browserslist.js │ │ ├── chalk.js │ │ ├── debug.js │ │ ├── end-of-stream.js │ │ ├── fancy-log.js │ │ ├── fill-range.js │ │ ├── find-up.js │ │ ├── glob.js │ │ ├── micromatch.js │ │ ├── minimatch.js │ │ ├── object-assign.js │ │ ├── object-keys.js │ │ ├── once.js │ │ ├── picocolors.js │ │ ├── picomatch.js │ │ ├── readable-stream-passthrough.js │ │ ├── readable-stream-readable.js │ │ ├── readable-stream.js │ │ ├── semver-clean.js │ │ ├── semver-cmp.js │ │ ├── semver-coerce.js │ │ ├── semver-parse.js │ │ ├── semver-valid.js │ │ ├── semver.js │ │ ├── source-map-js-generator.js │ │ ├── source-map-js.js │ │ ├── source-map.js │ │ ├── strip-ansi.js │ │ ├── tmp.js │ │ ├── to-regex-range.js │ │ └── wrappy.js ├── crafty-preset-babel │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ ├── babel-loader.js │ │ ├── gulp-babel.js │ │ └── gulp-terser.js │ └── src │ │ ├── gulp.js │ │ ├── index.js │ │ └── jest-transformer.js ├── crafty-preset-eslint │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ ├── eslint-at-your-own-risk.js │ │ ├── eslint-webpack-plugin.js │ │ ├── eslint.js │ │ └── resolve-from.js │ └── src │ │ ├── commands │ │ └── jsLint.js │ │ ├── eslintConfigurator.js │ │ ├── index.js │ │ ├── patchModuleResolver.js │ │ └── templates.js ├── crafty-preset-images-simple │ ├── README.md │ ├── index.js │ └── package.json ├── crafty-preset-images │ ├── .gitignore │ ├── .npmignore │ ├── README.md │ ├── package.json │ └── src │ │ ├── concurrent.js │ │ ├── gulp-imagemin.js │ │ └── index.js ├── crafty-preset-jest │ ├── README.md │ ├── package.json │ └── src │ │ ├── configuration.js │ │ ├── esm-transformer.js │ │ ├── file-mock.js │ │ ├── index.js │ │ ├── resolver-empty.js │ │ ├── resolver.js │ │ ├── run.js │ │ └── style-mock.js ├── crafty-preset-lightningcss │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ ├── css-loader.js │ │ ├── lightningcss-loader.js │ │ └── style-loader.js │ └── src │ │ ├── ModuleFilenameHelpers.js │ │ ├── index.js │ │ ├── minify.js │ │ ├── webpack-sources.js │ │ └── webpack-utils.js ├── crafty-preset-maven │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ └── src │ │ └── index.js ├── crafty-preset-postcss │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ ├── css-loader.js │ │ ├── gulp-postcss.js │ │ ├── gulp-rename.js │ │ ├── postcss-loader.js │ │ ├── resolve-from.js │ │ └── style-loader.js │ └── src │ │ ├── dummy.js │ │ ├── gulp.js │ │ ├── index.js │ │ ├── touch.js │ │ └── webpack-utils.js ├── crafty-preset-prettier │ ├── README.md │ ├── package.json │ └── src │ │ └── index.js ├── crafty-preset-react │ ├── README.md │ ├── index.js │ ├── package.json │ ├── polyfills.js │ ├── react-hot-loader │ │ ├── index.js │ │ └── production.js │ └── testSetup.js ├── crafty-preset-stylelint │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ └── gulp-stylelint.js │ └── src │ │ ├── commands │ │ └── lint_css.js │ │ ├── gulp.js │ │ └── index.js ├── crafty-preset-swc │ ├── README.md │ ├── package.json │ └── src │ │ ├── gulp.js │ │ └── index.js ├── crafty-preset-terser │ ├── .npmignore │ ├── build.config.js │ ├── index.js │ ├── package.json │ └── packages │ │ └── terser.js ├── crafty-preset-typescript │ ├── .gitignore │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ ├── fork-ts-checker-webpack-plugin.js │ │ ├── gulp-typescript.js │ │ ├── ts-jest.js │ │ └── ts-loader.js │ └── src │ │ ├── dummy.js │ │ ├── gulp.js │ │ └── index.js ├── crafty-runner-gulp │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ ├── gulp-plumber.js │ │ └── pump.js │ └── src │ │ ├── Gulp.js │ │ ├── StreamHandler.js │ │ └── index.js ├── crafty-runner-webpack │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ ├── case-sensitive-paths-webpack-plugin.js │ │ ├── glob-to-regexp.js │ │ ├── hash-index.js │ │ ├── inspectpack.js │ │ ├── is-glob.js │ │ ├── log-symbols.js │ │ ├── speed-measure-webpack-plugin.js │ │ ├── webpack-merge.js │ │ └── webpack.js │ └── src │ │ ├── SwcOptimize.js │ │ ├── index.js │ │ ├── packages-webpack.js │ │ ├── utils │ │ ├── __tests__ │ │ │ └── find-port.test.js │ │ ├── find-port.js │ │ ├── formatWebpackMessages.js │ │ ├── listReservedPorts.js │ │ ├── paths.js │ │ └── reservedPorts.json │ │ ├── webpack.js │ │ ├── webpack_output.js │ │ └── webpack_runtime.js ├── crafty │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── package.json │ ├── packages │ │ ├── anymatch.js │ │ ├── async-done.js │ │ ├── camelcase-keys.js │ │ ├── chokidar.js │ │ ├── copy-anything.js │ │ ├── enhanced-resolve.js │ │ ├── is-negated-glob.js │ │ ├── just-debounce.js │ │ ├── loud-rejection.js │ │ ├── merge-anything.js │ │ ├── pretty-hrtime.js │ │ ├── undertaker.js │ │ └── yargs-parser.js │ └── src │ │ ├── Crafty.js │ │ ├── CraftyPreset.js │ │ ├── Watcher.js │ │ ├── __tests__ │ │ └── configuration.test.js │ │ ├── bin.cjs │ │ ├── cli.js │ │ ├── commands │ │ ├── browsers.js │ │ ├── help.js │ │ ├── ide.js │ │ ├── index.js │ │ ├── run.js │ │ ├── testCommand.js │ │ └── watch.js │ │ ├── configuration.js │ │ ├── defaultConfiguration.js │ │ ├── index.js │ │ ├── log │ │ ├── Information.js │ │ ├── eventLog.js │ │ ├── events.js │ │ ├── formatError.js │ │ └── syncTask.js │ │ ├── tasks.js │ │ └── watch.js ├── eslint-plugin-swissquote │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── index.js │ ├── package.json │ ├── packages │ │ ├── confusing-browser-globals.js │ │ ├── eslint-config-prettier.js │ │ ├── eslint-import-resolver-node.js │ │ ├── eslint-import-resolver-typescript.js │ │ ├── eslint-plugin-import-x.js │ │ ├── eslint-plugin-react-hooks.js │ │ ├── eslint-react-eslint-plugin.js │ │ ├── globals.js │ │ ├── prettier1.js │ │ ├── prettier2.js │ │ ├── prettier3.mjs │ │ ├── synckit.js │ │ ├── typescript-eslint.js │ │ └── typescript-eslint_parser.js │ ├── src │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ ├── format.test.mjs.snap │ │ │ │ ├── legacy.test.mjs.snap │ │ │ │ ├── node.test.mjs.snap │ │ │ │ ├── recommended.test.mjs.snap │ │ │ │ ├── typescript-format-prettier2.test.mjs.snap │ │ │ │ ├── typescript-format-prettier3.test.mjs.snap │ │ │ │ ├── typescript-format.test.mjs.snap │ │ │ │ └── typescript-recommended.test.mjs.snap │ │ │ ├── format.test.mjs │ │ │ ├── legacy.test.mjs │ │ │ ├── node.test.mjs │ │ │ ├── recommended.test.mjs │ │ │ ├── typescript-format-prettier2.test.mjs │ │ │ ├── typescript-format-prettier3.test.mjs │ │ │ ├── typescript-format.test.mjs │ │ │ └── typescript-recommended.test.mjs │ │ ├── best-practices.js │ │ ├── es6-format.js │ │ ├── es6-recommended.js │ │ ├── eslint-plugin-prettier │ │ │ ├── index.js │ │ │ └── worker.js │ │ ├── formatting.js │ │ ├── node.js │ │ ├── react.js │ │ ├── shims │ │ │ └── prettier-parser.js │ │ ├── typescript-best-practices.js │ │ ├── typescript.js │ │ └── utils.js │ └── test_utils.js ├── integration-fixtures-cjs │ ├── fixtures │ │ ├── crafty-preset-babel-gulp │ │ │ ├── compiles-babel-plugin │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── compiles-babel-preset-override │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── compiles-import-runtime │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── otherfile.js │ │ │ │ │ └── script.js │ │ │ │ └── package.json │ │ │ ├── compiles-new-features │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── otherfile.js │ │ │ │ │ └── script.js │ │ │ ├── compiles-target-node │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── otherfile.js │ │ │ │ │ └── script.js │ │ │ ├── compiles │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── otherfile.js │ │ │ │ │ └── script.js │ │ │ ├── concatenates │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── otherfile.js │ │ │ │ │ └── script.js │ │ │ ├── fails │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── lints-es5-dev │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ └── lints-es5 │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ └── script.js │ │ ├── crafty-preset-babel-webpack │ │ │ ├── compiles-deduplicates │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ ├── OtherComponent.js │ │ │ │ │ └── script.js │ │ │ ├── compiles-generators │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── compiles-merge-webpack-config │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ │ └── webpack.config.js │ │ │ ├── compiles │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ ├── externals │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ ├── fails │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── lints │ │ │ │ ├── crafty.config.js │ │ │ │ ├── eslintOverride.json │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ ├── no-old-browser │ │ │ │ ├── .browserslistrc │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ ├── profiles │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ └── tree-shaking │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ ├── imported-javascript.js │ │ │ │ └── index.js │ │ ├── crafty-preset-babel │ │ │ ├── ide │ │ │ │ ├── crafty.config.js │ │ │ │ ├── eslint.config.mjs │ │ │ │ ├── js │ │ │ │ │ └── script.js │ │ │ │ └── prettier.config.mjs │ │ │ ├── lints-es5 │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── lints-ignore-config │ │ │ │ ├── crafty.config.js │ │ │ │ ├── eslintOverride.json │ │ │ │ └── script.js │ │ │ └── lints │ │ │ │ ├── crafty.config.js │ │ │ │ ├── eslintOverride.json │ │ │ │ └── js │ │ │ │ ├── Component.js │ │ │ │ └── script.js │ │ ├── crafty-preset-images-simple │ │ │ ├── crafty.config.js │ │ │ └── images │ │ │ │ ├── batman.svg │ │ │ │ └── somedir │ │ │ │ └── cute-cats-2.jpg │ │ ├── crafty-preset-images │ │ │ ├── crafty.config.js │ │ │ └── images │ │ │ │ ├── batman.svg │ │ │ │ ├── notcopied.txt │ │ │ │ └── somedir │ │ │ │ ├── 800px-Johnrogershousemay2020.webp.png │ │ │ │ ├── Johnrogershousemay2020.webp │ │ │ │ └── cute-cats-2.jpg │ │ ├── crafty-preset-jest │ │ │ ├── babel-fails │ │ │ │ ├── crafty.config.js │ │ │ │ └── src │ │ │ │ │ ├── __tests__ │ │ │ │ │ └── math.js │ │ │ │ │ └── math.js │ │ │ ├── babel-react │ │ │ │ ├── crafty.config.js │ │ │ │ └── src │ │ │ │ │ ├── Counter.jsx │ │ │ │ │ ├── Foo.jsx │ │ │ │ │ ├── MyComponent.jsx │ │ │ │ │ └── __tests__ │ │ │ │ │ └── MyComponent.jsx │ │ │ ├── babel │ │ │ │ ├── crafty.config.js │ │ │ │ └── src │ │ │ │ │ ├── __tests__ │ │ │ │ │ └── math.js │ │ │ │ │ └── math.js │ │ │ ├── esm-babel │ │ │ │ ├── crafty.config.js │ │ │ │ └── src │ │ │ │ │ └── __tests__ │ │ │ │ │ └── math.js │ │ │ ├── esm-dependency │ │ │ │ ├── crafty.config.js │ │ │ │ └── src │ │ │ │ │ └── __tests__ │ │ │ │ │ └── math.cjs │ │ │ ├── esm │ │ │ │ ├── crafty.config.js │ │ │ │ ├── package.json │ │ │ │ └── src │ │ │ │ │ ├── __tests__ │ │ │ │ │ └── calculator.mjs │ │ │ │ │ ├── calculator.mjs │ │ │ │ │ └── math.mjs │ │ │ ├── ide-babel │ │ │ │ ├── crafty.config.js │ │ │ │ ├── jest.config.mjs │ │ │ │ └── src │ │ │ │ │ └── __tests__ │ │ │ │ │ └── math.js │ │ │ ├── ide │ │ │ │ ├── crafty.config.js │ │ │ │ ├── jest.config.mjs │ │ │ │ └── src │ │ │ │ │ └── __tests__ │ │ │ │ │ └── math.js │ │ │ ├── succeeds │ │ │ │ ├── crafty.config.js │ │ │ │ └── src │ │ │ │ │ ├── __tests__ │ │ │ │ │ ├── math-advanced.js │ │ │ │ │ └── math.js │ │ │ │ │ └── math.js │ │ │ ├── typescript-modules-mjs │ │ │ │ ├── crafty.config.js │ │ │ │ ├── package.json │ │ │ │ ├── src │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ └── calculator.mts │ │ │ │ │ ├── calculator.mts │ │ │ │ │ └── math.mts │ │ │ │ └── tsconfig.json │ │ │ ├── typescript-modules │ │ │ │ ├── crafty.config.js │ │ │ │ ├── package.json │ │ │ │ ├── src │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ └── calculator.ts │ │ │ │ │ ├── calculator.ts │ │ │ │ │ └── math.ts │ │ │ │ └── tsconfig.json │ │ │ └── typescript │ │ │ │ ├── crafty.config.js │ │ │ │ ├── src │ │ │ │ ├── __tests__ │ │ │ │ │ └── math.ts │ │ │ │ └── math.ts │ │ │ │ └── tsconfig.json │ │ ├── crafty-preset-lightningcss-webpack │ │ │ ├── compiles │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ │ └── app.js │ │ │ ├── extract-boolean │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ │ └── app.js │ │ │ ├── extract-object │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ │ └── app.js │ │ │ ├── extract-string │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ │ └── app.js │ │ │ └── fails │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ └── app.js │ │ ├── crafty-preset-maven │ │ │ ├── env-override │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── file.js │ │ │ ├── missing-pom │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── file.js │ │ │ ├── subfolder │ │ │ │ ├── pom.xml │ │ │ │ └── src │ │ │ │ │ └── main │ │ │ │ │ └── frontend │ │ │ │ │ ├── crafty.config.js │ │ │ │ │ └── js │ │ │ │ │ └── file.js │ │ │ ├── webapp │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ └── file.js │ │ │ │ └── pom.xml │ │ │ └── webjar │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ └── file.js │ │ │ │ └── pom.xml │ │ ├── crafty-preset-postcss-gulp │ │ │ ├── compiles-color-function │ │ │ │ ├── crafty.config.js │ │ │ │ └── css │ │ │ │ │ └── style.scss │ │ │ ├── compiles-preserve │ │ │ │ ├── crafty.config.js │ │ │ │ └── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ ├── compiles-with-overrides │ │ │ │ ├── crafty.config.js │ │ │ │ └── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ ├── compiles │ │ │ │ ├── crafty.config.js │ │ │ │ └── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ ├── experiment │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── foo.scss │ │ │ │ │ ├── math.scss │ │ │ │ │ ├── media │ │ │ │ │ │ └── bar.scss │ │ │ │ │ ├── sprite.scss │ │ │ │ │ └── style.scss │ │ │ │ └── images │ │ │ │ │ ├── background.jpg │ │ │ │ │ ├── icons │ │ │ │ │ ├── clock.png │ │ │ │ │ └── comment.png │ │ │ │ │ ├── some │ │ │ │ │ └── button.png │ │ │ │ │ └── sprite_mySprite.png │ │ │ │ │ └── sprite.png │ │ │ ├── experiment_old_browsers │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── foo.scss │ │ │ │ │ ├── math.scss │ │ │ │ │ ├── media │ │ │ │ │ │ └── bar.scss │ │ │ │ │ ├── sprite.scss │ │ │ │ │ └── style.scss │ │ │ │ └── images │ │ │ │ │ ├── background.jpg │ │ │ │ │ ├── icons │ │ │ │ │ ├── clock.png │ │ │ │ │ └── comment.png │ │ │ │ │ ├── some │ │ │ │ │ └── button.png │ │ │ │ │ └── sprite_mySprite.png │ │ │ │ │ └── sprite.png │ │ │ ├── fails │ │ │ │ ├── crafty.config.js │ │ │ │ └── css │ │ │ │ │ └── style.scss │ │ │ ├── no-bundle-dev │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ └── stylelint.json │ │ │ └── no-bundle │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ ├── imported.scss │ │ │ │ └── style.scss │ │ │ │ └── stylelint.json │ │ ├── crafty-preset-postcss-webpack │ │ │ ├── compiles │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ │ └── app.js │ │ │ ├── extract-boolean │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ │ └── app.js │ │ │ ├── extract-object │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ │ └── app.js │ │ │ ├── extract-string │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ │ └── app.js │ │ │ ├── fails │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ └── style.scss │ │ │ │ └── js │ │ │ │ │ └── app.js │ │ │ ├── modules-extract │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── app.module.css │ │ │ │ │ ├── style.scss │ │ │ │ │ └── subapp.module.css │ │ │ │ └── js │ │ │ │ │ ├── app.js │ │ │ │ │ └── subapp.js │ │ │ └── modules-inline │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ ├── app.module.css │ │ │ │ ├── style.scss │ │ │ │ └── subapp.module.css │ │ │ │ └── js │ │ │ │ ├── app.js │ │ │ │ └── subapp.js │ │ ├── crafty-preset-postcss │ │ │ ├── ide │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ │ ├── imported.scss │ │ │ │ │ └── style.scss │ │ │ │ ├── prettier.config.mjs │ │ │ │ └── stylelint.config.mjs │ │ │ └── no-bundle │ │ │ │ ├── crafty.config.js │ │ │ │ ├── css │ │ │ │ ├── imported.scss │ │ │ │ └── style.scss │ │ │ │ └── stylelint.json │ │ ├── crafty-preset-swc-gulp │ │ │ ├── compiles-import-runtime │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── otherfile.js │ │ │ │ │ └── script.js │ │ │ │ └── package.json │ │ │ ├── compiles-new-features │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── otherfile.js │ │ │ │ │ └── script.js │ │ │ ├── compiles │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── otherfile.js │ │ │ │ │ └── script.js │ │ │ ├── concatenates │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── otherfile.js │ │ │ │ │ └── script.js │ │ │ ├── fails │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── lints-es5-dev │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ └── lints-es5 │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ └── script.js │ │ ├── crafty-preset-swc-webpack │ │ │ ├── compiles-deduplicates │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ ├── OtherComponent.js │ │ │ │ │ └── script.js │ │ │ ├── compiles-generators │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── compiles-import-runtime │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.js │ │ │ │ │ ├── OtherComponent.js │ │ │ │ │ └── script.js │ │ │ │ └── package.json │ │ │ ├── compiles-merge-webpack-config │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ │ └── webpack.config.js │ │ │ ├── compiles │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ ├── externals │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ ├── fails │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── lints │ │ │ │ ├── crafty.config.js │ │ │ │ ├── eslintOverride.json │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ ├── no-old-browser │ │ │ │ ├── .browserslistrc │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ ├── profiles │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ └── tree-shaking │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ ├── imported-javascript.js │ │ │ │ └── index.js │ │ ├── crafty-preset-swc │ │ │ ├── ide │ │ │ │ ├── crafty.config.js │ │ │ │ ├── eslint.config.mjs │ │ │ │ ├── js │ │ │ │ │ └── script.js │ │ │ │ └── prettier.config.mjs │ │ │ ├── lints-additional-plugin │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ └── script.js │ │ │ │ └── package.json │ │ │ ├── lints-es5 │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ └── script.js │ │ │ ├── lints-eslintignore │ │ │ │ ├── .eslintignore │ │ │ │ ├── crafty.config.js │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ ├── lints-ignore-config │ │ │ │ ├── crafty.config.js │ │ │ │ ├── eslintOverride.json │ │ │ │ └── script.js │ │ │ ├── lints │ │ │ │ ├── crafty.config.js │ │ │ │ ├── eslintOverride.cjs │ │ │ │ ├── eslintOverride.json │ │ │ │ ├── eslintOverride.mjs │ │ │ │ └── js │ │ │ │ │ ├── Component.js │ │ │ │ │ └── script.js │ │ │ └── source.js │ │ ├── crafty-preset-typescript-gulp │ │ │ ├── compiles-alternate-conf │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Loading.tsx │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ └── script.ts │ │ │ │ └── tsconfig-alt.json │ │ │ ├── compiles-import-runtime │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.ts │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ └── script.ts │ │ │ │ ├── package.json │ │ │ │ └── tsconfig.json │ │ │ ├── compiles-modules │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.mts │ │ │ │ │ ├── SomeLibrary.mts │ │ │ │ │ └── script.mts │ │ │ │ └── tsconfig.json │ │ │ ├── compiles │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Loading.tsx │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ └── script.ts │ │ │ │ └── tsconfig.json │ │ │ ├── concatenates │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.ts │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ └── script.ts │ │ │ │ └── tsconfig.json │ │ │ ├── fails │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ └── SomeLibrary.ts │ │ │ │ └── tsconfig.json │ │ │ └── lints │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ ├── Component.ts │ │ │ │ ├── SomeLibrary.ts │ │ │ │ └── script.ts │ │ │ │ └── tsconfig.json │ │ ├── crafty-preset-typescript-webpack │ │ │ ├── compiles-alternate-conf │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.ts │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ └── script.ts │ │ │ │ └── tsconfig-alt.json │ │ │ ├── compiles-forked │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.ts │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ └── script.ts │ │ │ │ └── tsconfig.json │ │ │ ├── compiles-paths │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ ├── components │ │ │ │ │ │ └── Calculator.ts │ │ │ │ │ ├── script.ts │ │ │ │ │ └── views │ │ │ │ │ │ └── View.ts │ │ │ │ └── tsconfig.json │ │ │ ├── compiles │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.ts │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ └── script.ts │ │ │ │ └── tsconfig.json │ │ │ ├── fails │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ └── typescript.ts │ │ │ │ └── tsconfig.json │ │ │ ├── invalid-forked │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ └── typescript.ts │ │ │ │ └── tsconfig.json │ │ │ ├── invalid │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ └── typescript.ts │ │ │ │ └── tsconfig.json │ │ │ ├── lints │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.ts │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ └── script.ts │ │ │ │ └── tsconfig.json │ │ │ └── tree-shaking │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ ├── imported-typescript.ts │ │ │ │ └── index.ts │ │ │ │ └── tsconfig.json │ │ ├── crafty-preset-typescript │ │ │ ├── lints │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── Component.ts │ │ │ │ │ ├── SomeLibrary.ts │ │ │ │ │ ├── script.ts │ │ │ │ │ └── utils.ts │ │ │ │ └── tsconfig.json │ │ │ ├── test-ts-syntax_prettier1 │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── TS_4_0.ts │ │ │ │ │ ├── TS_4_2.ts │ │ │ │ │ └── app.ts │ │ │ │ └── tsconfig.json │ │ │ ├── test-ts-syntax_prettier2 │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ │ ├── TS_4_0.ts │ │ │ │ │ ├── TS_4_1.ts │ │ │ │ │ ├── TS_4_2.ts │ │ │ │ │ ├── TS_4_3.ts │ │ │ │ │ ├── TS_4_4.ts │ │ │ │ │ ├── TS_4_5.ts │ │ │ │ │ ├── TS_4_6.ts │ │ │ │ │ ├── TS_4_7.mts │ │ │ │ │ ├── TS_4_7_common.cts │ │ │ │ │ ├── TS_4_8.ts │ │ │ │ │ ├── TS_4_9.ts │ │ │ │ │ ├── TS_5_0.ts │ │ │ │ │ ├── TS_5_1.ts │ │ │ │ │ ├── app.ts │ │ │ │ │ └── ts_4_5.json │ │ │ │ └── tsconfig.json │ │ │ └── test-ts-syntax_prettier3 │ │ │ │ ├── crafty.config.js │ │ │ │ ├── js │ │ │ │ ├── TS_4_0.ts │ │ │ │ ├── TS_4_1.ts │ │ │ │ ├── TS_4_2.ts │ │ │ │ ├── TS_4_3.ts │ │ │ │ ├── TS_4_4.ts │ │ │ │ ├── TS_4_5.ts │ │ │ │ ├── TS_4_6.ts │ │ │ │ ├── TS_4_7.mts │ │ │ │ ├── TS_4_7_common.cts │ │ │ │ ├── TS_4_8.ts │ │ │ │ ├── TS_4_9.ts │ │ │ │ ├── TS_5_0.ts │ │ │ │ ├── TS_5_1.ts │ │ │ │ ├── TS_5_2.ts │ │ │ │ ├── TS_5_3.ts │ │ │ │ ├── TS_5_4.ts │ │ │ │ ├── TS_5_5.ts │ │ │ │ ├── TS_5_6.ts │ │ │ │ ├── TS_5_7.ts │ │ │ │ ├── TS_5_8.ts │ │ │ │ ├── app.ts │ │ │ │ └── ts_4_5.json │ │ │ │ └── tsconfig.json │ │ └── crafty-runner-webpack │ │ │ ├── compiles │ │ │ ├── crafty.config.js │ │ │ └── js │ │ │ │ ├── SomeClass.js │ │ │ │ └── script.js │ │ │ └── fails │ │ │ ├── crafty.config.js │ │ │ └── js │ │ │ └── script.js │ └── package.json ├── integration │ ├── .gitignore │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ ├── crafty-preset-babel-gulp.js.snap │ │ │ ├── crafty-preset-babel-webpack.js.snap │ │ │ ├── crafty-preset-babel.js.snap │ │ │ ├── crafty-preset-images-simple.js.snap │ │ │ ├── crafty-preset-images.js.snap │ │ │ ├── crafty-preset-jest.js.snap │ │ │ ├── crafty-preset-lightningcss-webpack.js.snap │ │ │ ├── crafty-preset-maven.js.snap │ │ │ ├── crafty-preset-postcss-gulp.js.snap │ │ │ ├── crafty-preset-postcss-webpack.js.snap │ │ │ ├── crafty-preset-postcss.js.snap │ │ │ ├── crafty-preset-swc-gulp.js.snap │ │ │ ├── crafty-preset-swc-webpack.js.snap │ │ │ ├── crafty-preset-swc.js.snap │ │ │ ├── crafty-preset-typescript-gulp.js.snap │ │ │ ├── crafty-preset-typescript-webpack.js.snap │ │ │ ├── crafty-preset-typescript.js.snap │ │ │ └── crafty-runner-webpack.js.snap │ │ ├── crafty-preset-babel-gulp.js │ │ ├── crafty-preset-babel-webpack.js │ │ ├── crafty-preset-babel.js │ │ ├── crafty-preset-images-simple.js │ │ ├── crafty-preset-images.js │ │ ├── crafty-preset-jest.js │ │ ├── crafty-preset-lightningcss-webpack.js │ │ ├── crafty-preset-maven.js │ │ ├── crafty-preset-postcss-gulp.js │ │ ├── crafty-preset-postcss-webpack.js │ │ ├── crafty-preset-postcss.js │ │ ├── crafty-preset-swc-gulp.js │ │ ├── crafty-preset-swc-webpack.js │ │ ├── crafty-preset-swc.js │ │ ├── crafty-preset-typescript-gulp.js │ │ ├── crafty-preset-typescript-webpack.js │ │ ├── crafty-preset-typescript.js │ │ └── crafty-runner-webpack.js │ ├── package.json │ ├── utils.js │ └── vitest.config.js ├── postcss-swissquote-preset │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── index.js │ ├── package.json │ ├── packages │ │ └── color-name.js │ ├── processors.js │ ├── src │ │ ├── ChainedMap.js │ │ ├── Processor.js │ │ ├── features.js │ │ └── postcss-plugin-list.js │ └── test │ │ ├── fixtures │ │ ├── abandoned │ │ │ ├── color-gray │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── color-manipulation │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ └── matches-pseudo-class │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── cascading-3 │ │ │ ├── all-property │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ └── initial-value │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── colors-4 │ │ │ ├── color-function │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── color-hex-alpha │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── color-hsl │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── color-hwb │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── color-lab │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── color-oklab │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── color-rebeccapurple │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── color-rgb │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ └── opacity-percentages │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── colors-5 │ │ │ └── relative-colors │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── css-extensions │ │ │ └── custom-selectors │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── custom-properties-1 │ │ │ └── custom-properties │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── display-3 │ │ │ └── two-values-display │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── fonts-3 │ │ │ └── font-variant │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── fonts-4 │ │ │ └── system-ui-value │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── images-4 │ │ │ ├── double-position-gradients │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ └── image-set │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── logical-1 │ │ │ └── properties-and-values │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── media-queries-4 │ │ │ └── media-query-ranges │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── media-queries-5 │ │ │ └── custom-media-queries │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── misc │ │ │ ├── assets │ │ │ │ ├── images │ │ │ │ │ ├── icons │ │ │ │ │ │ ├── clock.png │ │ │ │ │ │ └── comment.png │ │ │ │ │ └── some │ │ │ │ │ │ └── button.png │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── imports │ │ │ │ ├── foo.css │ │ │ │ ├── input.css │ │ │ │ ├── media │ │ │ │ │ └── bar.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── prefixes │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ └── property-lookup │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── overflow-3 │ │ │ └── overflow-shorthand │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── scss │ │ │ ├── at-root │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── conditionals │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── loops │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── mixins │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── nesting │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── single-line-comments │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ └── variables │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ ├── selectors-4 │ │ │ ├── any-link-pseudo-class │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── case-insensitive-attributes │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ ├── dir-pseudo-class │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ │ └── not-pseudo-class │ │ │ │ ├── input.css │ │ │ │ ├── output-current.css │ │ │ │ └── output-old.css │ │ └── values-4 │ │ │ └── clamp-function │ │ │ ├── input.css │ │ │ ├── output-current.css │ │ │ └── output-old.css │ │ └── test.mjs └── stylelint-config-swissquote │ ├── .npmignore │ ├── README.md │ ├── build.config.js │ ├── common.js │ ├── index.js │ ├── legacy.js │ ├── package.json │ ├── packages │ ├── postcss-resolve-nested-selector.js │ ├── postcss-selector-parser.js │ ├── postcss-value-parser.js │ ├── stylelint-cli.js │ ├── stylelint-prettier.js │ ├── stylelint-scss.js │ └── stylelint.js │ ├── recommended.js │ ├── shims │ ├── cosmiconfig.js │ └── prettier-parser.js │ └── src │ ├── __tests__ │ ├── common.test.js │ └── recommended.test.js │ ├── rules │ ├── __tests__ │ │ ├── no-block-inside-block.test.js │ │ ├── no-hack-reassignment.test.js │ │ ├── no-negative-var.test.js │ │ ├── no-state-without-component.test.js │ │ ├── no-type-outside-scope.test.js │ │ ├── no-utility-reassignment.test.js │ │ └── no-variable-in-transpiled-function.test.js │ ├── no-block-inside-block.js │ ├── no-hack-reassignment.js │ ├── no-negative-var.js │ ├── no-state-without-component.js │ ├── no-type-outside-scope.js │ ├── no-utility-reassignment.js │ └── no-variable-in-transpiled-function.js │ ├── testUtils │ └── ruleTester.js │ └── utils │ ├── __tests__ │ └── resolveNestedSelector.js │ ├── cssRuleHasSelectorEndingWithColon.js │ ├── parseSelector.js │ └── resolveNestedSelector.js ├── renovate.json ├── run_all.sh ├── sonar-project.properties ├── statoscope.sh ├── statoscope_report.json ├── utils ├── build.mjs ├── check-stats.js ├── compile.mjs ├── duplicates.js ├── externals.js ├── functions.js ├── package.json └── publish.js └── yarn.lock /.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | test_patterns = ["__tests__/**", "spec/**"] 4 | 5 | exclude_patterns = ["packages/integration/fixtures/**"] 6 | 7 | [[analyzers]] 8 | name = "javascript" 9 | enabled = true 10 | 11 | [[analyzers]] 12 | name = "shell" 13 | enabled = true 14 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | docs/05_Packages/05_crafty-preset-postcss/CSS_Features.md 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "sonarlint.connectedMode.project": { 3 | "connectionId": "swissquote", 4 | "projectKey": "crafty" 5 | } 6 | } -------------------------------------------------------------------------------- /docs/05_Packages/01_crafty/index.md: -------------------------------------------------------------------------------- 1 | ../../../packages/crafty/README.md -------------------------------------------------------------------------------- /docs/05_Packages/02_crafty-runner-gulp.md: -------------------------------------------------------------------------------- 1 | ../../packages/crafty-runner-gulp/README.md -------------------------------------------------------------------------------- /docs/05_Packages/02_crafty-runner-webpack.md: -------------------------------------------------------------------------------- 1 | ../../packages/crafty-runner-webpack/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-babel/index.md: -------------------------------------------------------------------------------- 1 | ../../../packages/crafty-preset-babel/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-eslint/IDE_Integration_eslint_inline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/docs/05_Packages/05_crafty-preset-eslint/IDE_Integration_eslint_inline.png -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-eslint/index.md: -------------------------------------------------------------------------------- 1 | ../../../packages/crafty-preset-eslint/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-images-simple.md: -------------------------------------------------------------------------------- 1 | ../../packages/crafty-preset-images-simple/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-images.md: -------------------------------------------------------------------------------- 1 | ../../packages/crafty-preset-images/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-jest/index.md: -------------------------------------------------------------------------------- 1 | ../../../packages/crafty-preset-jest/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-lightningcss/index.md: -------------------------------------------------------------------------------- 1 | ../../../packages/crafty-preset-lightningcss/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-maven.md: -------------------------------------------------------------------------------- 1 | ../../packages/crafty-preset-maven/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-postcss/index.md: -------------------------------------------------------------------------------- 1 | ../../../packages/crafty-preset-postcss/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-prettier.md: -------------------------------------------------------------------------------- 1 | ../../packages/crafty-preset-prettier/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-react.md: -------------------------------------------------------------------------------- 1 | ../../packages/crafty-preset-react/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-stylelint/index.md: -------------------------------------------------------------------------------- 1 | ../../../packages/crafty-preset-stylelint/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-swc.md: -------------------------------------------------------------------------------- 1 | ../../packages/crafty-preset-swc/README.md -------------------------------------------------------------------------------- /docs/05_Packages/05_crafty-preset-typescript/index.md: -------------------------------------------------------------------------------- 1 | ../../../packages/crafty-preset-typescript/README.md -------------------------------------------------------------------------------- /docs/05_Packages/10_babel-preset-swissquote.md: -------------------------------------------------------------------------------- 1 | ../../packages/babel-preset-swissquote/README.md -------------------------------------------------------------------------------- /docs/05_Packages/10_eslint-plugin-swissquote.md: -------------------------------------------------------------------------------- 1 | ../../packages/eslint-plugin-swissquote/README.md -------------------------------------------------------------------------------- /docs/05_Packages/10_postcss-swissquote-preset.md: -------------------------------------------------------------------------------- 1 | ../../packages/postcss-swissquote-preset/README.md -------------------------------------------------------------------------------- /docs/05_Packages/10_stylelint-config-swissquote.md: -------------------------------------------------------------------------------- 1 | ../../packages/stylelint-config-swissquote/README.md -------------------------------------------------------------------------------- /docs/Troubleshooting.md: -------------------------------------------------------------------------------- 1 | Here are a list of common errors you might see while configuring or using Crafty 2 | 3 | ## 'use strict' is unnecessary inside of modules 4 | 5 | With Babel 6, `"use strict"` is added automatically to your files, you can 6 | delete this statement from all your files. 7 | -------------------------------------------------------------------------------- /docs/react-hot-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/docs/react-hot-loader.gif -------------------------------------------------------------------------------- /docs_theme/swissquote/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "favicon": "img/favicon.png", 3 | "js": [ 4 | "js/daux.min.js" 5 | ], 6 | "css": [ 7 | "css/theme.min.css" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /docs_theme/swissquote/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/docs_theme/swissquote/img/favicon.png -------------------------------------------------------------------------------- /examples/maven/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | jar 4 | 5 | com.mycompany.app 6 | my-app 7 | 1.0.0-SNAPSHOT 8 | 9 | -------------------------------------------------------------------------------- /examples/maven/src/main/frontend/css/app.scss: -------------------------------------------------------------------------------- 1 | @import "imported.scss"; 2 | 3 | .Card { 4 | margin: 0; 5 | padding: 1em; 6 | } 7 | -------------------------------------------------------------------------------- /examples/maven/src/main/frontend/css/imported.scss: -------------------------------------------------------------------------------- 1 | .Link { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /examples/maven/src/main/frontend/js/__tests__/sum.js: -------------------------------------------------------------------------------- 1 | import { sum, multiply } from "../sum"; 2 | 3 | test("adds 1 + 2 to equal 3", () => { 4 | expect(sum(1, 2)).toBe(3); 5 | }); 6 | 7 | test("multiply somethgin", () => { 8 | expect(multiply(2, 2)).toBe(4); 9 | }); 10 | -------------------------------------------------------------------------------- /examples/maven/src/main/frontend/js/__tests__/typescript_sum.ts: -------------------------------------------------------------------------------- 1 | import { sum, multiply } from "../typescript_sum"; 2 | 3 | test("adds 1 + 2 to equal 3", () => { 4 | expect(sum(1, 2)).toBe(3); 5 | }); 6 | 7 | test("multiply somethgin", () => { 8 | expect(multiply(2, 2)).toBe(4); 9 | }); 10 | -------------------------------------------------------------------------------- /examples/maven/src/main/frontend/js/app.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | 4 | import App from "./containers/App"; 5 | 6 | // TODO :: switch to createRoot : https://reactjs.org/link/switch-to-createroot 7 | ReactDOM.render(, document.getElementById("root")); 8 | -------------------------------------------------------------------------------- /examples/maven/src/main/frontend/js/components/Loading.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function Loading() { 4 | return
Loading tabs...
; 5 | } 6 | -------------------------------------------------------------------------------- /examples/maven/src/main/frontend/js/containers/Counters.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react"; 2 | import Counter from "../components/Counter"; 3 | 4 | export default function() { 5 | return ( 6 |
7 | 8 | 9 |
10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /examples/maven/src/main/frontend/js/sum.js: -------------------------------------------------------------------------------- 1 | export function sum(a, b) { 2 | return a + b; 3 | } 4 | 5 | export function multiply(a, b) { 6 | return a * b; 7 | } 8 | -------------------------------------------------------------------------------- /examples/maven/src/main/frontend/js/typescript_sum.ts: -------------------------------------------------------------------------------- 1 | export function sum(a: number, b: number): number { 2 | return a + b; 3 | } 4 | 5 | export function multiply(a: number, b: number): number { 6 | return a * b; 7 | } 8 | -------------------------------------------------------------------------------- /examples/simple-swc/css/app.scss: -------------------------------------------------------------------------------- 1 | @import "imported.scss"; 2 | 3 | .Card { 4 | margin: 0; 5 | padding: 1em; 6 | } 7 | -------------------------------------------------------------------------------- /examples/simple-swc/css/imported.scss: -------------------------------------------------------------------------------- 1 | .Link { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /examples/simple-swc/js/app.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | 4 | import App from "./containers/App"; 5 | 6 | // TODO :: switch to createRoot : https://reactjs.org/link/switch-to-createroot 7 | ReactDOM.render(, document.getElementById("root")); 8 | -------------------------------------------------------------------------------- /examples/simple-swc/js/components/Loading.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function Loading() { 4 | return
Loading tabs...
; 5 | } 6 | -------------------------------------------------------------------------------- /examples/simple-swc/js/containers/Counters.js: -------------------------------------------------------------------------------- 1 | import * as React from "react"; 2 | import Counter from "../components/Counter"; 3 | 4 | export default function Counters() { 5 | return ( 6 |
7 | 8 | 9 |
10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /examples/simple/css/app.scss: -------------------------------------------------------------------------------- 1 | @import "imported.scss"; 2 | 3 | .Card { 4 | margin: 0; 5 | padding: 1em; 6 | } 7 | -------------------------------------------------------------------------------- /examples/simple/css/imported.scss: -------------------------------------------------------------------------------- 1 | .Link { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /examples/simple/css/overrides.scss: -------------------------------------------------------------------------------- 1 | /* stylelint-disable swissquote/no-type-outside-scope */ 2 | body { 3 | background: #eee; 4 | } 5 | -------------------------------------------------------------------------------- /examples/simple/js/__tests__/sum.js: -------------------------------------------------------------------------------- 1 | import { sum, multiply } from "../sum"; 2 | 3 | test("adds 1 + 2 to equal 3", () => { 4 | expect(sum(1, 2)).toBe(3); 5 | }); 6 | 7 | test("multiply somethgin", () => { 8 | expect(multiply(2, 2)).toBe(4); 9 | }); 10 | -------------------------------------------------------------------------------- /examples/simple/js/app.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | 4 | import App from "./containers/App"; 5 | 6 | import "../css/overrides.scss"; 7 | 8 | // TODO :: switch to createRoot : https://reactjs.org/link/switch-to-createroot 9 | ReactDOM.render(, document.getElementById("root")); 10 | -------------------------------------------------------------------------------- /examples/simple/js/components/Component.module.css: -------------------------------------------------------------------------------- 1 | .button { 2 | border: 1px solid #000; 3 | border-radius: 4px; 4 | padding: 0.5rem 1rem; 5 | background: teal; 6 | } 7 | -------------------------------------------------------------------------------- /examples/simple/js/components/Loading.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function Loading() { 4 | return
Loading tabs...
; 5 | } 6 | -------------------------------------------------------------------------------- /examples/simple/js/containers/Counters.js: -------------------------------------------------------------------------------- 1 | import * as React from "react"; 2 | import Counter from "../components/Counter"; 3 | 4 | export default function Counters() { 5 | return ( 6 |
7 | 8 | 9 |
10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /examples/simple/js/sum.js: -------------------------------------------------------------------------------- 1 | export function sum(a, b) { 2 | return a + b; 3 | } 4 | 5 | export function multiply(a, b) { 6 | return a * b; 7 | } 8 | -------------------------------------------------------------------------------- /examples/typescript-lib/js/components/Loading.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function Loading() { 4 | return
Loading tabs...
; 5 | } 6 | -------------------------------------------------------------------------------- /examples/typescript-lib/js/index.ts: -------------------------------------------------------------------------------- 1 | import Component from "./components/Component.jsx"; 2 | import Counter from "./components/Counter.jsx"; 3 | import Loading from "./components/Loading.jsx"; 4 | 5 | export { Component, Counter, Loading }; 6 | -------------------------------------------------------------------------------- /examples/typescript/css/app.scss: -------------------------------------------------------------------------------- 1 | @import "imported.scss"; 2 | 3 | .Card { 4 | margin: 0; 5 | padding: 1em; 6 | } 7 | -------------------------------------------------------------------------------- /examples/typescript/css/imported.scss: -------------------------------------------------------------------------------- 1 | .Link { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /examples/typescript/css/overrides.scss: -------------------------------------------------------------------------------- 1 | /* stylelint-disable swissquote/no-type-outside-scope */ 2 | body { 3 | background: #eee; 4 | font-family: sans-serif; 5 | } 6 | -------------------------------------------------------------------------------- /examples/typescript/js/__tests__/sum.ts: -------------------------------------------------------------------------------- 1 | import { sum, multiply } from "../sum"; 2 | 3 | test("adds 1 + 2 to equal 3", () => { 4 | expect(sum(1, 2)).toBe(3); 5 | }); 6 | 7 | test("multiply somethgin", () => { 8 | expect(multiply(2, 2)).toBe(4); 9 | }); 10 | -------------------------------------------------------------------------------- /examples/typescript/js/app.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { createRoot } from "react-dom/client"; 3 | 4 | import App from "./containers/App"; 5 | import "../css/overrides.scss"; 6 | 7 | const domNode = document.getElementById("root"); 8 | const root = createRoot(domNode); 9 | root.render(); 10 | -------------------------------------------------------------------------------- /examples/typescript/js/components/Component.module.css: -------------------------------------------------------------------------------- 1 | .button { 2 | border: 1px solid white; 3 | border-radius: 4px; 4 | padding: 0.5rem 1rem; 5 | background: teal; 6 | color: white; 7 | box-shadow: 0 2px 6px 1px #555; 8 | } 9 | -------------------------------------------------------------------------------- /examples/typescript/js/components/Loading.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function Loading() { 4 | return
Loading tabs...
; 5 | } 6 | -------------------------------------------------------------------------------- /examples/typescript/js/containers/Counters.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react"; 2 | import Counter from "../components/Counter"; 3 | 4 | export default function Counters() { 5 | return ( 6 |
7 | 8 | 9 |
10 | ); 11 | } 12 | -------------------------------------------------------------------------------- /examples/typescript/js/css-modules.d.ts: -------------------------------------------------------------------------------- 1 | declare module "*.module.css"; 2 | declare module "*.module.scss"; 3 | -------------------------------------------------------------------------------- /examples/typescript/js/sum.ts: -------------------------------------------------------------------------------- 1 | export function sum(a, b) { 2 | return a + b; 3 | } 4 | 5 | export function multiply(a, b) { 6 | return a * b; 7 | } 8 | -------------------------------------------------------------------------------- /failed.txt: -------------------------------------------------------------------------------- 1 | - packages/eslint-plugin-swissquote/src/__tests__/node.js 2 | src/__tests__/recommended.js -------------------------------------------------------------------------------- /package-forks/assets/README.md: -------------------------------------------------------------------------------- 1 | # Code From 2 | 3 | - https://github.com/borodean/assets 4 | 5 | The project is archived and unmaintained. 6 | -------------------------------------------------------------------------------- /package-forks/assets/lib/__utils__/composeQueryString.js: -------------------------------------------------------------------------------- 1 | module.exports = function(current, addon) { 2 | if (current) { 3 | return `${current}&${addon}`; 4 | } 5 | return `?${addon}`; 6 | }; 7 | -------------------------------------------------------------------------------- /package-forks/assets/lib/__utils__/convertPathToUrl.js: -------------------------------------------------------------------------------- 1 | var sep = require("path").sep; 2 | 3 | module.exports = function(path) { 4 | return path.split(sep).join("/"); 5 | }; 6 | -------------------------------------------------------------------------------- /package-forks/assets/lib/__utils__/defaultCachebuster.js: -------------------------------------------------------------------------------- 1 | var fs = require("fs"); 2 | 3 | module.exports = function(resolvedPath) { 4 | var mtime = fs.statSync(resolvedPath).mtime; 5 | return mtime.getTime().toString(16); 6 | }; 7 | -------------------------------------------------------------------------------- /package-forks/assets/lib/__utils__/encodeBuffer.js: -------------------------------------------------------------------------------- 1 | module.exports = function(buffer, mediaType) { 2 | if (mediaType === "image/svg+xml") { 3 | return `charset=utf-8,${encodeURIComponent( 4 | buffer.toString("utf8").trim() 5 | )}`; 6 | } 7 | return `base64,${buffer.toString("base64")}`; 8 | }; 9 | -------------------------------------------------------------------------------- /package-forks/assets/lib/__utils__/exists.js: -------------------------------------------------------------------------------- 1 | var fs = require("fs"); 2 | 3 | module.exports = async function(filePath) { 4 | return fs.promises.stat(filePath).then( 5 | () => true, 6 | () => false 7 | ); 8 | }; 9 | -------------------------------------------------------------------------------- /package-forks/assets/test/fixtures/duplicate-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/assets/test/fixtures/duplicate-1.jpg -------------------------------------------------------------------------------- /package-forks/assets/test/fixtures/fonts/empty-sans.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/assets/test/fixtures/fonts/empty-sans.woff -------------------------------------------------------------------------------- /package-forks/assets/test/fixtures/images/duplicate-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/assets/test/fixtures/images/duplicate-1.jpg -------------------------------------------------------------------------------- /package-forks/assets/test/fixtures/images/picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/assets/test/fixtures/images/picture.png -------------------------------------------------------------------------------- /package-forks/assets/test/fixtures/images/vector.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /package-forks/assets/test/fixtures/invalid.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/assets/test/fixtures/invalid.jpg -------------------------------------------------------------------------------- /package-forks/assets/test/fixtures/patterns/knitwork.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/assets/test/fixtures/patterns/knitwork.gif -------------------------------------------------------------------------------- /package-forks/assets/test/fixtures/white space.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/assets/test/fixtures/white space.txt -------------------------------------------------------------------------------- /package-forks/color-fns/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@swissquote/color-fns", 3 | "version": "1.28.0", 4 | "engines": { 5 | "node": ">=18" 6 | }, 7 | "scripts": { 8 | "lint": "node ../../packages/crafty-preset-eslint/src/commands/jsLint.js --preset recommended --preset node '*.js'" 9 | }, 10 | "private": true 11 | } 12 | -------------------------------------------------------------------------------- /package-forks/gulp-babel/README.md: -------------------------------------------------------------------------------- 1 | This is a fork of an unmaintained package 2 | 3 | https://github.com/babel/gulp-babel/commit/46db7eefad83aee00de102128ba2745b687d3136 4 | -------------------------------------------------------------------------------- /package-forks/gulp-concat/README.md: -------------------------------------------------------------------------------- 1 | Fork of gulp-concat 2 | 3 | https://github.com/gulp-community/gulp-concat/commit/064b86087b995d94b2bccb1add69df7aee8c7ca5 4 | -------------------------------------------------------------------------------- /package-forks/gulp-concat/test/fixtures/first.js: -------------------------------------------------------------------------------- 1 | console.log('first'); 2 | -------------------------------------------------------------------------------- /package-forks/gulp-concat/test/fixtures/second.js: -------------------------------------------------------------------------------- 1 | console.log('second'); 2 | -------------------------------------------------------------------------------- /package-forks/gulp-newer/readme.md: -------------------------------------------------------------------------------- 1 | # Code from 2 | 3 | - https://github.com/tschaub/gulp-newer 4 | -------------------------------------------------------------------------------- /package-forks/postcss-assets/README.md: -------------------------------------------------------------------------------- 1 | # Code From 2 | 3 | - https://github.com/borodean/postcss-assets 4 | 5 | The project is archived and unmaintained. 6 | -------------------------------------------------------------------------------- /package-forks/postcss-assets/lib/__utils__/generateFileUniqueId.js: -------------------------------------------------------------------------------- 1 | const fs = require("fs"); 2 | 3 | module.exports = function generateFileUniqueId(resolvedPath) { 4 | const { mtime } = fs.statSync(resolvedPath); 5 | return mtime.getTime().toString(16); 6 | }; 7 | -------------------------------------------------------------------------------- /package-forks/postcss-assets/lib/unquote.js: -------------------------------------------------------------------------------- 1 | module.exports = function unquote(string) { 2 | if (string[0] !== "'" && string[0] !== '"') { 3 | return string; 4 | } 5 | return string.slice(1, -1); 6 | }; 7 | -------------------------------------------------------------------------------- /package-forks/postcss-assets/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "airbnb-base", 3 | "rules": { 4 | "import/no-extraneous-dependencies": "off" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /package-forks/postcss-assets/test/fixtures/fonts/empty-sans.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/postcss-assets/test/fixtures/fonts/empty-sans.woff -------------------------------------------------------------------------------- /package-forks/postcss-assets/test/fixtures/images/invalid.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/postcss-assets/test/fixtures/images/invalid.jpg -------------------------------------------------------------------------------- /package-forks/postcss-assets/test/fixtures/images/picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/postcss-assets/test/fixtures/images/picture.png -------------------------------------------------------------------------------- /package-forks/postcss-assets/test/fixtures/images/vector.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /package-forks/postcss-color-gray/__tests__/fixtures/basic-preserve.css: -------------------------------------------------------------------------------- 1 | .test-gray { 2 | color: gray(40); 3 | color: gray(50 / 1); 4 | color: gray(60 / .5); 5 | color: gray(70 / 100%); 6 | color: gray(80 / 50%); 7 | } 8 | 9 | .test-invalid-gray { 10 | color: gray(); 11 | color: gray(40, 1); 12 | color: gray(40 / 1 / 1); 13 | } 14 | -------------------------------------------------------------------------------- /package-forks/postcss-color-gray/__tests__/fixtures/basic.css: -------------------------------------------------------------------------------- 1 | .test-gray { 2 | color: gray(40); 3 | color: gray(50 / 1); 4 | color: gray(60 / .5); 5 | color: gray(70 / 100%); 6 | color: gray(80 / 50%); 7 | } 8 | 9 | .test-invalid-gray { 10 | color: gray(); 11 | color: gray(40, 1); 12 | color: gray(40 / 1 / 1); 13 | } 14 | -------------------------------------------------------------------------------- /package-forks/postcss-color-gray/__tests__/fixtures/basic.expect.css: -------------------------------------------------------------------------------- 1 | .test-gray { 2 | color: rgb(94,94,94); 3 | color: rgb(119,119,119); 4 | color: rgba(145,145,145,0.5); 5 | color: rgb(171,171,171); 6 | color: rgba(198,198,198,0.5); 7 | } 8 | 9 | .test-invalid-gray { 10 | color: gray(); 11 | color: gray(40, 1); 12 | color: gray(40 / 1 / 1); 13 | } 14 | -------------------------------------------------------------------------------- /package-forks/postcss-color-hwb/__tests__/fixtures/hwb-4.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: hwb(90 0% 0% / 0.5); 3 | background: linear-gradient(hwb(190 50% 0%), hwb(190 50% 10% / .2)); 4 | } 5 | -------------------------------------------------------------------------------- /package-forks/postcss-color-hwb/__tests__/fixtures/hwb-4.expected.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: rgba(128, 255, 0, 0.5); 3 | background: linear-gradient(rgb(128, 234, 255), rgba(128, 213, 230, 0.2)); 4 | } 5 | -------------------------------------------------------------------------------- /package-forks/postcss-color-hwb/__tests__/fixtures/hwb.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: hwb(90, 0%, 0%, 0.5); 3 | background: linear-gradient(hwb(190, 50%, 0%), hwb(190, 50%, 10%, .2)); 4 | } 5 | -------------------------------------------------------------------------------- /package-forks/postcss-color-hwb/__tests__/fixtures/hwb.expected.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: rgba(128, 255, 0, 0.5); 3 | background: linear-gradient(rgb(128, 234, 255), rgba(128, 213, 230, 0.2)); 4 | } 5 | -------------------------------------------------------------------------------- /package-forks/postcss-color-mod-function/lib/manage-unresolved.js: -------------------------------------------------------------------------------- 1 | module.exports = function manageUnresolved(node, opts, word, message) { 2 | if (opts.unresolved === "warn") { 3 | opts.decl.warn(opts.result, message, { word }); 4 | } else if (opts.unresolved !== "ignore") { 5 | throw opts.decl.error(message, { word }); 6 | } 7 | }; 8 | -------------------------------------------------------------------------------- /package-forks/postcss-color-mod-function/tests/fixtures/import-root.css: -------------------------------------------------------------------------------- 1 | html { 2 | --color-blue: blue; 3 | --color-red: red; 4 | --color: var(--color-red); 5 | } 6 | 7 | :root { 8 | --color: var(--color-blue); 9 | } 10 | -------------------------------------------------------------------------------- /package-forks/postcss-color-mod-function/tests/fixtures/import-root.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | customProperties: { 3 | '--color-blue': 'blue', 4 | '--color-red': 'red', 5 | '--color': 'var(--color-blue)' 6 | } 7 | }; 8 | -------------------------------------------------------------------------------- /package-forks/postcss-color-mod-function/tests/fixtures/import-root.json: -------------------------------------------------------------------------------- 1 | { 2 | "custom-properties": { 3 | "--color-blue": "blue", 4 | "--color-red": "red", 5 | "--color": "var(--color-blue)" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /package-forks/postcss-color-mod-function/tests/fixtures/very-basic.css: -------------------------------------------------------------------------------- 1 | test-red-green-blue-alpha-adjuster { 2 | color: color-mod(beige hue(+ 0deg)); 3 | color: color-mod(beige saturation(+ 0%)); 4 | color: color-mod(beige lightness(+ 0%)); 5 | color: color-mod(beige blend(beige 0% hsl)); 6 | } 7 | -------------------------------------------------------------------------------- /package-forks/postcss-color-mod-function/tests/fixtures/very-basic.expect.css: -------------------------------------------------------------------------------- 1 | test-red-green-blue-alpha-adjuster { 2 | color: hsl(60, 55.556%, 91.176%); 3 | color: hsl(60, 55.556%, 91.176%); 4 | color: hsl(60, 55.556%, 91.176%); 5 | color: hsl(60, 55.556%, 91.176%); 6 | } 7 | -------------------------------------------------------------------------------- /package-forks/postcss-color-mod-function/tests/fixtures/w3c-color.css: -------------------------------------------------------------------------------- 1 | test-color { 2 | color: color(rec2020 0.42053 0.979780 0.00579); 3 | color: color(display-p3 -0.6112 1.0079 -0.2192); 4 | } 5 | -------------------------------------------------------------------------------- /package-forks/postcss-color-mod-function/tests/fixtures/w3c-color.expect.css: -------------------------------------------------------------------------------- 1 | test-color { 2 | color: color(rec2020 0.42053 0.979780 0.00579); 3 | color: color(display-p3 -0.6112 1.0079 -0.2192); 4 | } 5 | -------------------------------------------------------------------------------- /package-forks/postcss-color-mod-function/tests/fixtures/warn.expect.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/package-forks/postcss-color-mod-function/tests/fixtures/warn.expect.css -------------------------------------------------------------------------------- /package-forks/postcss-custom-properties/README.md: -------------------------------------------------------------------------------- 1 | # Code from 2 | 3 | - https://github.com/postcss/postcss-custom-properties 4 | - https://github.com/postcss/postcss-custom-properties/issues/256 5 | -------------------------------------------------------------------------------- /package-forks/postcss-custom-properties/test/fixtures/import-properties-2.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --color: rgb(255, 0, 0); 3 | --color-2: yellow; 4 | } 5 | -------------------------------------------------------------------------------- /package-forks/postcss-custom-properties/test/fixtures/import-properties-2.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | customProperties: { 3 | '--color': 'rgb(255, 0, 0)', 4 | '--color-2': 'yellow' 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /package-forks/postcss-custom-properties/test/fixtures/import-properties.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --ref-color: var(--color); 3 | --z-index: 10; 4 | } 5 | -------------------------------------------------------------------------------- /package-forks/postcss-custom-properties/test/fixtures/import-properties.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | customProperties: { 3 | '--ref-color': 'var(--color)', 4 | '--z-index': 10 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /package-forks/postcss-custom-properties/test/fixtures/import-properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "custom-properties": { 3 | "--color": "rgb(255, 0, 0)", 4 | "--color-2": "yellow", 5 | "--ref-color": "var(--color)", 6 | "--z-index": 10 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /package-forks/postcss-custom-properties/test/fixtures/import-properties.pcss: -------------------------------------------------------------------------------- 1 | :root { 2 | --ref-color: var(--color); 3 | --z-index: 10; 4 | } 5 | -------------------------------------------------------------------------------- /package-forks/postcss-selector-matches/README.md: -------------------------------------------------------------------------------- 1 | # Code From 2 | 3 | - https://github.com/postcss/postcss-selector-matches 4 | - https://github.com/postcss/postcss-selector-matches/pull/22/files 5 | -------------------------------------------------------------------------------- /package-forks/random-cjs/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | random: () => require("./number.js") 4 | }; 5 | -------------------------------------------------------------------------------- /package-forks/random-cjs/number.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /package-forks/random-cjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@swissquote/random-cjs", 3 | "version": "1.28.0", 4 | "license": "private", 5 | "private": true 6 | } 7 | -------------------------------------------------------------------------------- /packages/babel-preset-swissquote/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json -------------------------------------------------------------------------------- /packages/babel-preset-swissquote/packages/plugin-istanbul.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').pluginIstanbul(); 2 | -------------------------------------------------------------------------------- /packages/babel-preset-swissquote/packages/plugin-transform-modules-commonjs.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').pluginTransformModulesCommonjs(); 2 | -------------------------------------------------------------------------------- /packages/babel-preset-swissquote/packages/plugin-transform-property-literals.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').pluginTransformPropertyLiterals(); 2 | -------------------------------------------------------------------------------- /packages/babel-preset-swissquote/packages/plugin-transform-react-remove-prop-types.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').pluginTransformReactRemovePropTypes(); 2 | -------------------------------------------------------------------------------- /packages/babel-preset-swissquote/packages/plugin-transform-runtime.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').pluginTransformRuntime(); 2 | -------------------------------------------------------------------------------- /packages/babel-preset-swissquote/packages/preset-env.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').presetEnv(); 2 | -------------------------------------------------------------------------------- /packages/babel-preset-swissquote/packages/preset-jest.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').presetJest(); 2 | -------------------------------------------------------------------------------- /packages/babel-preset-swissquote/packages/preset-react.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').presetReact(); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/README.md: -------------------------------------------------------------------------------- 1 | # Crafty Commons 2 | 3 | This package is NOT meant to be used outside Crafty. 4 | 5 | It provides some compiled packages for usage by other Crafty packages to deduplicate them. 6 | 7 | The packages contained here will change from version to version without warning. 8 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/packages/graceful-fs.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/vinyl/graceful-fs.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/packages/gulp-concat.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/common-packages/bundled.js").gulpConcat(); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/packages/gulp-eslint-new.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/common-packages/bundled.js").gulpEslintNew(); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/packages/gulp-newer.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/common-packages/bundled.js").gulpNewer(); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/packages/plugin-error.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/common-packages/bundled.js").pluginError(); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/packages/vinyl-fs.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/vinyl/vinyl-fs.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/packages/vinyl-sourcemaps-apply.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/vinyl-sourcemaps-apply/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-gulp/packages/vinyl.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/vinyl/vinyl.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-swc/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-commons-swc/README.md: -------------------------------------------------------------------------------- 1 | # Crafty Commons 2 | 3 | This package is NOT meant to be used outside Crafty. 4 | 5 | It provides some compiled packages for usage by other Crafty packages to deduplicate them. 6 | 7 | The packages contained here will change from version to version without warning. 8 | -------------------------------------------------------------------------------- /packages/crafty-commons-swc/packages/gulp-swc.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../src/gulp.js'); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-swc/packages/swc-jest.js: -------------------------------------------------------------------------------- 1 | //package: @swc/jest 2 | module.exports = require('../dist/swc-packages/bundled.js').swcJest(); 3 | -------------------------------------------------------------------------------- /packages/crafty-commons-swc/packages/swc-loader.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/swc-packages/bundled.js').swcLoader(); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-webpack/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-commons-webpack/README.md: -------------------------------------------------------------------------------- 1 | # Crafty Commons 2 | 3 | This package is NOT meant to be used outside Crafty. 4 | 5 | It provides some compiled packages for usage by other Crafty packages to deduplicate them. 6 | 7 | The packages contained here will change from version to version without warning. 8 | -------------------------------------------------------------------------------- /packages/crafty-commons-webpack/packages/json5.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/json5/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-webpack/packages/loader-utils.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/loader-utils/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons-webpack/packages/uri-js.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/uri-js/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-commons/README.md: -------------------------------------------------------------------------------- 1 | # Crafty Commons 2 | 3 | This package is NOT meant to be used outside Crafty. 4 | 5 | It provides some compiled packages for usage by other Crafty packages to deduplicate them. 6 | 7 | The packages contained here will change from version to version without warning. 8 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/ansi-colors.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/ansi-colors/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/braces.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/braces/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/browserslist.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/browserslist/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/debug.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/debug/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/end-of-stream.js: -------------------------------------------------------------------------------- 1 | // Since Node 15.0.0 'end-of-stream' is a standard Node.JS API 2 | //const { finished } = require('node:stream/promises'); 3 | //module.exports = finished; 4 | 5 | module.exports = require("../dist/end-of-stream/index.js"); 6 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/fancy-log.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/fancy-log/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/fill-range.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/fill-range/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/glob.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/glob/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/micromatch.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/micromatch/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/minimatch.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/minimatch/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/object-assign.js: -------------------------------------------------------------------------------- 1 | //package: object-assign 2 | //package: object.assign 3 | 4 | // Replaces https://github.com/sindresorhus/object-assign 5 | // The feature is supported since Node 4 6 | module.exports = Object.assign; 7 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/object-keys.js: -------------------------------------------------------------------------------- 1 | // Replaces https://github.com/ryanhefner/Object.keys 2 | // It's a polyfill but the feature is supported since Node 0.10 3 | module.exports = Object.keys; -------------------------------------------------------------------------------- /packages/crafty-commons/packages/once.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/once/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/picocolors.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/ansi-colors/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/picomatch.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/picomatch/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/readable-stream-passthrough.js: -------------------------------------------------------------------------------- 1 | //package: readable-stream/passthrough 2 | module.exports = require("stream").PassThrough; 3 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/readable-stream-readable.js: -------------------------------------------------------------------------------- 1 | //package: readable-stream/readable 2 | module.exports = require("stream").Readable; 3 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/readable-stream.js: -------------------------------------------------------------------------------- 1 | module.exports = require("stream"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/semver-clean.js: -------------------------------------------------------------------------------- 1 | //package: semver/functions/clean 2 | module.exports = require("../dist/semver/bundled.js").clean(); 3 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/semver-cmp.js: -------------------------------------------------------------------------------- 1 | //package: semver/functions/cmp 2 | module.exports = require("../dist/semver/bundled.js").cmp(); 3 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/semver-coerce.js: -------------------------------------------------------------------------------- 1 | //package: semver/functions/coerce 2 | module.exports = require("../dist/semver/bundled.js").coerce(); 3 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/semver-parse.js: -------------------------------------------------------------------------------- 1 | //package: semver/functions/parse 2 | module.exports = require("../dist/semver/bundled.js").parse(); 3 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/semver-valid.js: -------------------------------------------------------------------------------- 1 | //package: semver/functions/valid 2 | module.exports = require("../dist/semver/bundled.js").valid(); 3 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/semver.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/semver/bundled.js").main(); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/source-map-js-generator.js: -------------------------------------------------------------------------------- 1 | //package: source-map/lib/source-map-generator 2 | //package: source-map-js/lib/source-map-generator.js 3 | module.exports = require("../dist/source-map-js/index.js"); 4 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/source-map-js.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/source-map-js/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/source-map.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/source-map-js/index.js"); 2 | 3 | // we add this no-op function to source-map-js 4 | // to make it a drop-in replacement of source-map 0.7.* 5 | module.exports.SourceMapConsumer.prototype.destroy = function() {}; 6 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/strip-ansi.js: -------------------------------------------------------------------------------- 1 | // ansi-colors provides a function equivalent to strip-ansi. 2 | // we can subsitute it and remove that size 3 | module.exports = require("../dist/ansi-colors/index.js").unstyle; 4 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/tmp.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/tmp/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/to-regex-range.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/to-regex-range/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-commons/packages/wrappy.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/wrappy/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-babel/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-babel/packages/babel-loader.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').babelLoader(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-babel/packages/gulp-babel.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').gulpBabel(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-babel/packages/gulp-terser.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/babel-packages/bundled.js').gulpTerser(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-eslint/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-eslint/packages/eslint-at-your-own-risk.js: -------------------------------------------------------------------------------- 1 | module.exports = require("eslint/use-at-your-own-risk"); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-eslint/packages/eslint-webpack-plugin.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/eslint-packages/bundled.js").eslintWebpackPlugin(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-eslint/packages/eslint.js: -------------------------------------------------------------------------------- 1 | module.exports = require("eslint"); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-eslint/packages/resolve-from.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/eslint-packages/bundled.js").resolveFrom(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-images/.gitignore: -------------------------------------------------------------------------------- 1 | codecs/ 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-images/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-jest/src/file-mock.js: -------------------------------------------------------------------------------- 1 | module.exports = "test-file-stub"; 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-jest/src/resolver-empty.js: -------------------------------------------------------------------------------- 1 | // Used when a browser field is set to false 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-jest/src/run.js: -------------------------------------------------------------------------------- 1 | // This helps start jest as we can't directly reference jest-cli's bin 2 | require("jest-cli").run(); 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-jest/src/style-mock.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-lightningcss/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | src/packages-*.js 3 | dist/*/*-stats.json 4 | -------------------------------------------------------------------------------- /packages/crafty-preset-lightningcss/packages/css-loader.js: -------------------------------------------------------------------------------- 1 | //module.exports = require("css-loader"); 2 | module.exports = require("../dist/webpack-packages/bundled.js").cssLoader(); 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-lightningcss/packages/lightningcss-loader.js: -------------------------------------------------------------------------------- 1 | //module.exports = require("lightningcss-loader"); 2 | module.exports = require("../dist/webpack-packages/bundled.js").lightningcssLoader(); 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-lightningcss/packages/style-loader.js: -------------------------------------------------------------------------------- 1 | //module.exports = require("style-loader"); 2 | module.exports = require("../dist/webpack-packages/bundled.js").styleLoader(); 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-lightningcss/src/minify.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../packages/lightningcss-loader.js").LightningCssMinifyPlugin; 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-lightningcss/src/webpack-sources.js: -------------------------------------------------------------------------------- 1 | module.exports = require("@swissquote/crafty-runner-webpack/packages/webpack").sources; 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-maven/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | index.js 3 | dist/*/*-stats.json 4 | -------------------------------------------------------------------------------- /packages/crafty-preset-maven/build.config.js: -------------------------------------------------------------------------------- 1 | import { getExternals } from "../../utils/externals.js"; 2 | 3 | export default [ 4 | (builder) => 5 | builder("index").esm().externals({ 6 | ...getExternals(), 7 | }), 8 | ]; 9 | -------------------------------------------------------------------------------- /packages/crafty-preset-postcss/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | src/packages-*.js 3 | dist/*/*-stats.json 4 | -------------------------------------------------------------------------------- /packages/crafty-preset-postcss/packages/css-loader.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/loaders/bundled.js").cssLoader(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-postcss/packages/gulp-postcss.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/gulp-postcss/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-postcss/packages/gulp-rename.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/gulp-rename/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-postcss/packages/postcss-loader.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/loaders/bundled.js").postcssLoader(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-postcss/packages/resolve-from.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/resolve-from/index.js"); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-postcss/packages/style-loader.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/loaders/bundled.js").styleLoader(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-postcss/src/dummy.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | cosmiconfig(name, options) { 3 | return { 4 | load(searchPath) { 5 | const config = require(searchPath); 6 | 7 | return options.transform({ config }); 8 | }, 9 | search() { 10 | return null; 11 | } 12 | }; 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /packages/crafty-preset-react/polyfills.js: -------------------------------------------------------------------------------- 1 | const raf = (global.requestAnimationFrame = cb => { 2 | setTimeout(cb, 0); 3 | }); 4 | 5 | module.exports = raf; 6 | -------------------------------------------------------------------------------- /packages/crafty-preset-react/testSetup.js: -------------------------------------------------------------------------------- 1 | require("./polyfills"); 2 | 3 | // https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#configuring-your-testing-environment 4 | globalThis.IS_REACT_ACT_ENVIRONMENT = true; 5 | -------------------------------------------------------------------------------- /packages/crafty-preset-stylelint/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-stylelint/packages/gulp-stylelint.js: -------------------------------------------------------------------------------- 1 | import mod from "../dist/gulp-stylelint-esm/index.js"; 2 | export default mod; 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-terser/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-terser/build.config.js: -------------------------------------------------------------------------------- 1 | const { getExternals } = require("../../utils/externals"); 2 | 3 | module.exports = [ 4 | builder => 5 | builder("terser") 6 | .package() 7 | .externals({ 8 | // Provided by other Crafty packages 9 | ...getExternals(), 10 | 11 | "@swc/core": "@swc/core" 12 | }) 13 | ]; 14 | -------------------------------------------------------------------------------- /packages/crafty-preset-terser/packages/terser.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/terser/index.js"); -------------------------------------------------------------------------------- /packages/crafty-preset-typescript/.gitignore: -------------------------------------------------------------------------------- 1 | .ts-jest-digest 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-typescript/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | -------------------------------------------------------------------------------- /packages/crafty-preset-typescript/packages/fork-ts-checker-webpack-plugin.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/fork-ts-checker-webpack-plugin/bundled.js').forkTsCheckerWebpackPlugin(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-typescript/packages/gulp-typescript.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/typescript-packages/bundled.js').gulpTypescript(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-typescript/packages/ts-jest.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/typescript-packages/bundled.js').tsJest(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-typescript/packages/ts-loader.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/typescript-packages/bundled.js').tsLoader(); 2 | -------------------------------------------------------------------------------- /packages/crafty-preset-typescript/src/dummy.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | cosmiconfigSync(name) { 3 | return { 4 | search() { 5 | return undefined; 6 | } 7 | }; 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/crafty-runner-gulp/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | src 3 | dist/*/*-stats.json 4 | -------------------------------------------------------------------------------- /packages/crafty-runner-gulp/packages/gulp-plumber.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/gulp-packages/bundled.js').gulpPlumber(); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-gulp/packages/pump.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/gulp-packages/bundled.js').pump(); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/.npmignore: -------------------------------------------------------------------------------- 1 | coverage 2 | build.config.js 3 | **/__tests__ 4 | dist/*/*-stats.json 5 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/packages/case-sensitive-paths-webpack-plugin.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/compiled/packages-webpack.js').caseSensitivePathsWebpackPlugin(); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/packages/glob-to-regexp.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/compiled/packages-webpack.js').globToRegexp(); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/packages/hash-index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/compiled/packages-webpack.js').hashIndex(); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/packages/inspectpack.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/compiled/packages-webpack.js').inspectpack(); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/packages/is-glob.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/compiled/packages-webpack.js').isGlob(); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/packages/log-symbols.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/compiled/packages-webpack.js').logSymbols(); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/packages/speed-measure-webpack-plugin.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/speed-measure-webpack-plugin/index.js'); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/packages/webpack-merge.js: -------------------------------------------------------------------------------- 1 | module.exports = require('../dist/compiled/packages-webpack.js').webpackMerge(); 2 | -------------------------------------------------------------------------------- /packages/crafty-runner-webpack/packages/webpack.js: -------------------------------------------------------------------------------- 1 | module.exports = require("webpack"); 2 | -------------------------------------------------------------------------------- /packages/crafty/.npmignore: -------------------------------------------------------------------------------- 1 | coverage 2 | build.config.js 3 | **/__tests__ 4 | dist/*/*-stats.json 5 | -------------------------------------------------------------------------------- /packages/crafty/packages/anymatch.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").anymatch(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/async-done.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").asyncDone(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/camelcase-keys.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").camelcaseKeys(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/chokidar.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").chokidar(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/copy-anything.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").copyAnything(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/enhanced-resolve.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").enhancedResolve(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/is-negated-glob.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").isNegatedGlob(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/just-debounce.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").justDebounce(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/loud-rejection.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").loudRejection(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/merge-anything.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").mergeAnything(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/pretty-hrtime.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").prettyHrTime(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/undertaker.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").undertaker(); 2 | -------------------------------------------------------------------------------- /packages/crafty/packages/yargs-parser.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/crafty-packages/bundled.js").yargsParser(); 2 | -------------------------------------------------------------------------------- /packages/crafty/src/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./Crafty"); 2 | 3 | const { initialize } = require("./configuration"); 4 | 5 | module.exports.initialize = initialize; 6 | -------------------------------------------------------------------------------- /packages/crafty/src/log/Information.js: -------------------------------------------------------------------------------- 1 | class Information extends Error {} 2 | 3 | module.exports = Information; 4 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/.npmignore: -------------------------------------------------------------------------------- 1 | coverage 2 | **/__tests__ 3 | jest.config.js 4 | build.config.js 5 | dist/*/*-stats.json 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/confusing-browser-globals.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/confusing-browser-globals/index.js"); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/eslint-config-prettier.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/eslint-config-prettier/index.js"); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/eslint-import-resolver-node.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/eslint-import-resolver-node/index.js"); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/eslint-import-resolver-typescript.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/eslint-import-resolver-typescript/index.js"); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/eslint-plugin-import-x.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/eslint-plugin-import-x/index.js"); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/eslint-plugin-react-hooks.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/eslint-plugin-react-hooks/index.js"); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/eslint-react-eslint-plugin.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/eslint-react-eslint-plugin/index.js"); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/globals.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/globals/index.js"); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/typescript-eslint.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/typescript-eslint/index.js"); 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/packages/typescript-eslint_parser.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/typescript-eslint/index.js").parser; 2 | -------------------------------------------------------------------------------- /packages/eslint-plugin-swissquote/src/shims/prettier-parser.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | parsers: new Proxy( 3 | {}, 4 | { 5 | get(target, prop, receiver) { 6 | return {}; 7 | } 8 | } 9 | ) 10 | }; 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles-babel-plugin/js/script.js: -------------------------------------------------------------------------------- 1 | const foo = { 2 | catch() {} 3 | }; 4 | 5 | //eslint-disable-next-line no-console 6 | console.log(foo.catch); 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles-babel-preset-override/js/script.js: -------------------------------------------------------------------------------- 1 | export default function Component() { 2 | return ( 3 |
4 | Google 5 |
6 | ); 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles-import-runtime/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | browsers: "ie 11", 3 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-gulp"], 4 | environment: "development", 5 | js: { 6 | myBundle: { 7 | source: "js/**/*.js" 8 | } 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles-import-runtime/js/otherfile.js: -------------------------------------------------------------------------------- 1 | setTimeout(() => { 2 | //eslint-disable-next-line no-console 3 | console.log("Welcome to this website"); 4 | }, 1000); 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles-import-runtime/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "compiles-import-runtime", 3 | "private": true, 4 | "dependencies": { 5 | "@babel/runtime": "7.27.4" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles-new-features/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | browsers: "ie 11", 3 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-gulp"], 4 | environment: "development", 5 | js: { 6 | myBundle: { 7 | source: "js/**/*.js" 8 | } 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles-new-features/js/otherfile.js: -------------------------------------------------------------------------------- 1 | setTimeout(() => { 2 | //eslint-disable-next-line no-console 3 | console.log("Welcome to this website"); 4 | }, 1000); 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles-target-node/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | browsers: "node > 12", 3 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-gulp"], 4 | environment: "development", 5 | js: { 6 | myBundle: { 7 | source: "js/**/*.js" 8 | } 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles-target-node/js/otherfile.js: -------------------------------------------------------------------------------- 1 | setTimeout(() => { 2 | //eslint-disable-next-line no-console 3 | console.log("Welcome to this website"); 4 | }, 1000); 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**/*.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/compiles/js/otherfile.js: -------------------------------------------------------------------------------- 1 | setTimeout(() => { 2 | //eslint-disable-next-line no-console 3 | console.log("Welcome to this website"); 4 | }, 1000); 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/concatenates/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**/*.js", 6 | concat: true 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/concatenates/js/otherfile.js: -------------------------------------------------------------------------------- 1 | setTimeout(() => { 2 | //eslint-disable-next-line no-console 3 | console.log("Welcome to this website"); 4 | }, 1000); 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**/*.js", 6 | concat: true 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/lints-es5-dev/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-gulp"], 3 | environment: "development", 4 | js: { 5 | myBundle: { 6 | source: "js/script.js" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/lints-es5-dev/js/script.js: -------------------------------------------------------------------------------- 1 | /* global test */ 2 | 3 | function test (one,two) { 4 | return one + two; 5 | } 6 | 7 | function isEqual(a, b) 8 | { 9 | return a === b; 10 | } 11 | 12 | window.test = test; 13 | window.isEqual = isEqual; 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/lints-es5/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-gulp/lints-es5/js/script.js: -------------------------------------------------------------------------------- 1 | /* global test */ 2 | 3 | function test (one,two) { 4 | return one + two; 5 | } 6 | 7 | function isEqual(a, b) 8 | { 9 | return a == b; 10 | } 11 | 12 | window.test = test; 13 | window.isEqual = isEqual; 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/compiles-deduplicates/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/compiles-generators/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | browsers: "ie 11", 3 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 4 | js: { 5 | myBundle: { 6 | source: "js/script.js" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/compiles-generators/js/script.js: -------------------------------------------------------------------------------- 1 | export default function* foo() { 2 | yield 1; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/compiles-merge-webpack-config/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/compiles-merge-webpack-config/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | optimization: { 3 | // NEVER EVER USE THIS IN YOUR CONFIGURATION 4 | // This is only to try the webpack.config.js feature 5 | minimize: false 6 | } 7 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/externals/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | externals: ["somelibrary/**"], 6 | source: "js/script.js" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/lints/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/lints/eslintOverride.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-multi-spaces": 0, 4 | "comma-spacing": 0 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/no-old-browser/.browserslistrc: -------------------------------------------------------------------------------- 1 | last 5 Chrome versions -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/no-old-browser/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/profiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/tree-shaking/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/index.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel-webpack/tree-shaking/js/index.js: -------------------------------------------------------------------------------- 1 | import { A } from "./imported-javascript.js"; 2 | 3 | new A().someMethod(); 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel/ide/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel/ide/js/script.js: -------------------------------------------------------------------------------- 1 | /* global test */ 2 | 3 | function test (one,two) { 4 | return one + two; 5 | } 6 | 7 | function isEqual(a, b) 8 | { 9 | return a == b; 10 | } 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel/lints-es5/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel/lints-es5/js/script.js: -------------------------------------------------------------------------------- 1 | function test (one,two) { 2 | return one + two; 3 | } 4 | 5 | function isEqual(a, b) 6 | { 7 | return a == b; 8 | } 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel/lints-ignore-config/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-nonexistent"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel/lints-ignore-config/eslintOverride.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-multi-spaces": 0, 4 | "comma-spacing": 0 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel/lints-ignore-config/script.js: -------------------------------------------------------------------------------- 1 | export default function myFunction() { 2 | let oops = 1; 3 | return oops; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel/lints/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-babel/lints/eslintOverride.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "rules": { 4 | "no-multi-spaces": 0, 5 | "comma-spacing": 0 6 | } 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-images-simple/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-images-simple", "@swissquote/crafty-runner-gulp"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-images-simple/images/somedir/cute-cats-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-images-simple/images/somedir/cute-cats-2.jpg -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-images/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-images", "@swissquote/crafty-runner-gulp"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-images/images/notcopied.txt: -------------------------------------------------------------------------------- 1 | This file shouldn't be copied 2 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-images/images/somedir/800px-Johnrogershousemay2020.webp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-images/images/somedir/800px-Johnrogershousemay2020.webp.png -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-images/images/somedir/Johnrogershousemay2020.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-images/images/somedir/Johnrogershousemay2020.webp -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-images/images/somedir/cute-cats-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-images/images/somedir/cute-cats-2.jpg -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/babel-fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-jest", "@swissquote/crafty-preset-babel"], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/babel-fails/src/__tests__/math.js: -------------------------------------------------------------------------------- 1 | 2 | import { add } from "../math"; 3 | 4 | it("adds two numbers", () => { 5 | expect(add(2,2)).toEqual(5); 6 | }) -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/babel-fails/src/math.js: -------------------------------------------------------------------------------- 1 | 2 | export function add(a, b) { 3 | return a + b; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/babel-react/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@swissquote/crafty-preset-jest", 4 | "@swissquote/crafty-preset-babel", 5 | "@swissquote/crafty-preset-react" 6 | ], 7 | jest(crafty, options) { 8 | options.testEnvironment = "jsdom"; 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/babel-react/src/Foo.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function Foo({onButtonClicked}) { 4 | return ; 5 | } 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/babel/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-jest", "@swissquote/crafty-preset-babel"], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/babel/src/__tests__/math.js: -------------------------------------------------------------------------------- 1 | 2 | import { add } from "../math"; 3 | 4 | it("adds two numbers", () => { 5 | expect(add(2,2)).toEqual(4); 6 | }) -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/babel/src/math.js: -------------------------------------------------------------------------------- 1 | 2 | export function add(a, b) { 3 | return a + b; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/esm-babel/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-jest", "@swissquote/crafty-preset-babel"], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/esm-babel/src/__tests__/math.js: -------------------------------------------------------------------------------- 1 | import add from "lodash-es/add"; 2 | 3 | it("adds two numbers", () => { 4 | expect(add(2,2)).toEqual(4); 5 | }) -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/esm-dependency/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-jest"], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/esm-dependency/src/__tests__/math.cjs: -------------------------------------------------------------------------------- 1 | const add = require("lodash-es/add").default; 2 | 3 | it("adds two numbers", () => { 4 | expect(add(2,2)).toEqual(4); 5 | }) -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/esm/crafty.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | presets: ["@swissquote/crafty-preset-jest"], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/esm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/esm/src/calculator.mjs: -------------------------------------------------------------------------------- 1 | import { add } from "./math.mjs"; 2 | 3 | export function doSomeMath() { 4 | return add(2, 4); 5 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/esm/src/math.mjs: -------------------------------------------------------------------------------- 1 | 2 | export function add(a, b) { 3 | return a + b; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/ide-babel/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-jest"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/ide-babel/src/__tests__/math.js: -------------------------------------------------------------------------------- 1 | import add from "lodash-es/add"; 2 | 3 | it("adds two numbers", () => { 4 | expect(add(2, 2)).toEqual(4); 5 | }); 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/ide/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-jest"], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/ide/src/__tests__/math.js: -------------------------------------------------------------------------------- 1 | const add = require("lodash-es/add").default; 2 | 3 | it("adds two numbers", () => { 4 | expect(add(2, 2)).toEqual(4); 5 | }); 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/succeeds/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-jest"], 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/succeeds/src/__tests__/math-advanced.js: -------------------------------------------------------------------------------- 1 | 2 | const math = require("../math.js"); 3 | 4 | it("adds two big numbers", () => { 5 | expect(math.add(4,4)).toEqual(8); 6 | }) -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/succeeds/src/__tests__/math.js: -------------------------------------------------------------------------------- 1 | 2 | const math = require("../math.js"); 3 | 4 | it("adds two numbers", () => { 5 | expect(math.add(2,2)).toEqual(4); 6 | }) -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/succeeds/src/math.js: -------------------------------------------------------------------------------- 1 | 2 | function add(a, b) { 3 | return a + b; 4 | } 5 | 6 | module.exports = { 7 | add 8 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript-modules-mjs/crafty.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | presets: [ 3 | "@swissquote/crafty-preset-jest", 4 | "@swissquote/crafty-preset-typescript" 5 | ], 6 | } 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript-modules-mjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript-modules-mjs/src/calculator.mts: -------------------------------------------------------------------------------- 1 | import { add } from "./math.mjs"; 2 | 3 | export function doSomeMath(): number { 4 | return add(2, 4); 5 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript-modules-mjs/src/math.mts: -------------------------------------------------------------------------------- 1 | 2 | export function add(a: number, b: number): number { 3 | return a + b; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript-modules/crafty.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | presets: [ 3 | "@swissquote/crafty-preset-jest", 4 | "@swissquote/crafty-preset-typescript" 5 | ], 6 | }; 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript-modules/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript-modules/src/calculator.ts: -------------------------------------------------------------------------------- 1 | import { add } from "./math"; 2 | 3 | export function doSomeMath(): number { 4 | return add(2, 4); 5 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript-modules/src/math.ts: -------------------------------------------------------------------------------- 1 | 2 | export function add(a: number, b: number): number { 3 | return a + b; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@swissquote/crafty-preset-jest", 4 | "@swissquote/crafty-preset-typescript" 5 | ], 6 | }; 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript/src/__tests__/math.ts: -------------------------------------------------------------------------------- 1 | import { add } from "../math"; 2 | 3 | it("adds two numbers", () => { 4 | expect(add(2,2)).toEqual(4); 5 | }); -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-jest/typescript/src/math.ts: -------------------------------------------------------------------------------- 1 | 2 | export function add(a: number, b: number): number { 3 | return a + b; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@swissquote/crafty-preset-lightningcss", 4 | "@swissquote/crafty-runner-webpack" 5 | ], 6 | js: { 7 | myBundle: { 8 | source: "js/app.js" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/compiles/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/compiles/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | 3 | export default class app {} 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/extract-boolean/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@swissquote/crafty-preset-lightningcss", 4 | "@swissquote/crafty-runner-webpack" 5 | ], 6 | js: { 7 | myBundle: { 8 | source: "js/app.js", 9 | extractCSS: true 10 | } 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/extract-boolean/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/extract-boolean/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | 3 | export default class app {} 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/extract-object/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/extract-object/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | 3 | export default class app {} 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/extract-string/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/extract-string/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | 3 | export default class app {} 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@swissquote/crafty-preset-lightningcss", 4 | "@swissquote/crafty-runner-webpack" 5 | ], 6 | js: { 7 | myBundle: { 8 | source: "js/app.js" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-lightningcss-webpack/fails/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | 3 | export default class app {} 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-maven/env-override/js/file.js: -------------------------------------------------------------------------------- 1 | function add(a, b) { 2 | return a + b; 3 | } 4 | 5 | window.add = add; 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-maven/missing-pom/js/file.js: -------------------------------------------------------------------------------- 1 | function add(a, b) { 2 | return a + b; 3 | } 4 | 5 | window.add = add; 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-maven/subfolder/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | jar 4 | 5 | com.mycompany.app 6 | my-app 7 | 1.0.0-SNAPSHOT 8 | 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-maven/subfolder/src/main/frontend/js/file.js: -------------------------------------------------------------------------------- 1 | function add(a, b) { 2 | return a + b; 3 | } 4 | 5 | window.add = add; 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-maven/webapp/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | mavenType: "webapp", 3 | presets: ["@swissquote/crafty-preset-maven", "@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-gulp"], 4 | js: { 5 | myBundle: { 6 | source: "js/file.js", 7 | concat: true 8 | } 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-maven/webapp/js/file.js: -------------------------------------------------------------------------------- 1 | function add(a, b) { 2 | return a + b; 3 | } 4 | 5 | window.add = add; 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-maven/webapp/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | war 4 | 5 | com.mycompany.app 6 | my-app 7 | 1.0.0-SNAPSHOT 8 | 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-maven/webjar/js/file.js: -------------------------------------------------------------------------------- 1 | function add(a, b) { 2 | return a + b; 3 | } 4 | 5 | window.add = add; 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-maven/webjar/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | jar 4 | 5 | com.mycompany.app 6 | my-app 7 | 1.0.0-SNAPSHOT 8 | 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/compiles-color-function/css/style.scss: -------------------------------------------------------------------------------- 1 | :root { 2 | --color-default: #d1d1d1; 3 | --color-light: var(--color-default); 4 | } 5 | 6 | .Button { 7 | color: color(var(--color-light) tint(90%)); 8 | background-color: var(--color-light); 9 | } 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/compiles-preserve/css/imported.scss: -------------------------------------------------------------------------------- 1 | :root { 2 | --color: blue; 3 | } 4 | 5 | .Link { 6 | color: var(--color); 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/compiles-preserve/css/style.scss: -------------------------------------------------------------------------------- 1 | @import "imported.scss"; 2 | 3 | :root { 4 | --BodyComponent-color: var(--color); 5 | } 6 | 7 | .BodyComponent { 8 | color: var(--BodyComponent-color); 9 | margin: 0; 10 | } 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/compiles-with-overrides/css/imported.scss: -------------------------------------------------------------------------------- 1 | :root { 2 | --color: blue; 3 | } 4 | 5 | .Link { 6 | color: var(--color); 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/compiles-with-overrides/css/style.scss: -------------------------------------------------------------------------------- 1 | @import "imported.scss"; 2 | 3 | .BodyComponent { 4 | margin: 0; 5 | } 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-postcss", "@swissquote/crafty-runner-gulp"], 3 | css: { 4 | myBundle: { 5 | source: "css/style.scss" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/compiles/css/imported.scss: -------------------------------------------------------------------------------- 1 | .Link { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/compiles/css/style.scss: -------------------------------------------------------------------------------- 1 | @import "imported.scss"; 2 | 3 | .BodyComponent { 4 | margin: 0; 5 | } 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/css/foo.scss: -------------------------------------------------------------------------------- 1 | .Body { 2 | background: #eee; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/css/math.scss: -------------------------------------------------------------------------------- 1 | :root { 2 | --Component-margin: 5px; 3 | } 4 | 5 | .Component { 6 | margin: var(--Component-margin) calc(var(--Component-margin) * -1); 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/css/media/bar.scss: -------------------------------------------------------------------------------- 1 | .Button { 2 | background: url("../../images/buttons/background.png"); 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/css/sprite.scss: -------------------------------------------------------------------------------- 1 | .Comment { 2 | background: resolve(icons/comment.png) no-repeat 0 0; 3 | } 4 | 5 | .Clock { 6 | background: url(../images/icons/clock.png) no-repeat 0 0; 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/background.jpg -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/icons/clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/icons/clock.png -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/icons/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/icons/comment.png -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/some/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/some/button.png -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/sprite_mySprite.png/sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment/images/sprite_mySprite.png/sprite.png -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/css/foo.scss: -------------------------------------------------------------------------------- 1 | .Body { 2 | background: #eee; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/css/math.scss: -------------------------------------------------------------------------------- 1 | :root { 2 | --Component-margin: 5px; 3 | } 4 | 5 | .Component { 6 | margin: var(--Component-margin) calc(var(--Component-margin) * -1); 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/css/media/bar.scss: -------------------------------------------------------------------------------- 1 | .Button { 2 | background: url("../../images/buttons/background.png"); 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/css/sprite.scss: -------------------------------------------------------------------------------- 1 | .Comment { 2 | background: resolve(icons/comment.png) no-repeat 0 0; 3 | } 4 | 5 | .Clock { 6 | background: url(../images/icons/clock.png) no-repeat 0 0; 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/background.jpg -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/icons/clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/icons/clock.png -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/icons/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/icons/comment.png -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/some/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/some/button.png -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/sprite_mySprite.png/sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/experiment_old_browsers/images/sprite_mySprite.png/sprite.png -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-postcss", "@swissquote/crafty-runner-gulp"], 3 | css: { 4 | myBundle: { 5 | source: "css/style.scss" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/fails/css/style.scss: -------------------------------------------------------------------------------- 1 | 2 | .BodyComponent 3 | margin: 0; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/no-bundle-dev/crafty.config.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | presets: ["@swissquote/crafty-preset-postcss", "@swissquote/crafty-runner-gulp"], 4 | environment: "development" 5 | }; 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/no-bundle-dev/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/no-bundle-dev/stylelint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "swissquote/no-type-outside-scope": null 4 | } 5 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/no-bundle/crafty.config.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = { 3 | "presets": ["@swissquote/crafty-preset-postcss", "@swissquote/crafty-runner-gulp"] 4 | }; 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/no-bundle/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-gulp/no-bundle/stylelint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "swissquote/no-type-outside-scope": null 4 | } 5 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@swissquote/crafty-preset-postcss", 4 | "@swissquote/crafty-runner-webpack" 5 | ], js: { 6 | myBundle: { 7 | source: "js/app.js" 8 | } 9 | }} 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/compiles/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/compiles/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | 3 | export default class app {} 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/extract-boolean/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@swissquote/crafty-preset-postcss", 4 | "@swissquote/crafty-runner-webpack" 5 | ], 6 | js: { 7 | myBundle: { 8 | source: "js/app.js", 9 | extractCSS: true 10 | } 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/extract-boolean/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/extract-boolean/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | 3 | export default class app {} 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/extract-object/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/extract-object/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | 3 | export default class app {} 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/extract-string/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/extract-string/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | 3 | export default class app {} 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@swissquote/crafty-preset-postcss", 4 | "@swissquote/crafty-runner-webpack" 5 | ], 6 | js: { 7 | myBundle: { 8 | source: "js/app.js" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/fails/js/app.js: -------------------------------------------------------------------------------- 1 | 2 | import "../css/style"; 3 | 4 | export default class app { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-extract/css/app.module.css: -------------------------------------------------------------------------------- 1 | :global .t-global { 2 | :local .app { 3 | color:red; 4 | } 5 | } 6 | 7 | :global(.t-global) .app2 { 8 | color: green; 9 | } 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-extract/css/style.scss: -------------------------------------------------------------------------------- 1 | .Button { 2 | color: orange; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-extract/css/subapp.module.css: -------------------------------------------------------------------------------- 1 | .subapp { 2 | color:orange; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-extract/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | import * as style from "../css/app.module.css"; 3 | 4 | export default function app() { 5 | console.log(style.app); 6 | 7 | import(/* webpackChunkName: "subapp" */ "./subapp"); 8 | } 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-extract/js/subapp.js: -------------------------------------------------------------------------------- 1 | import * as style from "../css/subapp.module.css"; 2 | 3 | export default function subapp() { 4 | console.log(style.subapp) 5 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-inline/css/app.module.css: -------------------------------------------------------------------------------- 1 | :global .t-global { 2 | :local .app { 3 | color:red; 4 | } 5 | } 6 | 7 | :global(.t-global) .app2 { 8 | color: green; 9 | } 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-inline/css/style.scss: -------------------------------------------------------------------------------- 1 | .Button { 2 | color: orange; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-inline/css/subapp.module.css: -------------------------------------------------------------------------------- 1 | .subapp { 2 | color:orange; 3 | } 4 | 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-inline/js/app.js: -------------------------------------------------------------------------------- 1 | import "../css/style"; 2 | import * as style from "../css/app.module.css"; 3 | 4 | export default function app() { 5 | console.log(style.app); 6 | 7 | import(/* webpackChunkName: "subapp" */ "./subapp"); 8 | } 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss-webpack/modules-inline/js/subapp.js: -------------------------------------------------------------------------------- 1 | import * as style from "../css/subapp.module.css"; 2 | 3 | export default function subapp() { 4 | console.log(style.subapp) 5 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss/ide/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | "@swissquote/crafty-preset-postcss", 4 | "@swissquote/crafty-runner-gulp" 5 | ], 6 | stylelint: { 7 | rules: { 8 | "swissquote/no-type-outside-scope": null 9 | } 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss/ide/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss/no-bundle/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "presets": ["@swissquote/crafty-preset-postcss", "@swissquote/crafty-runner-gulp"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss/no-bundle/css/imported.scss: -------------------------------------------------------------------------------- 1 | a { 2 | color: blue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-postcss/no-bundle/stylelint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "swissquote/no-type-outside-scope": null 4 | } 5 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/compiles-import-runtime/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | browsers: "ie 11", 3 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-gulp"], 4 | environment: "development", 5 | js: { 6 | myBundle: { 7 | source: "js/**/*.js" 8 | } 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/compiles-import-runtime/js/otherfile.js: -------------------------------------------------------------------------------- 1 | setTimeout(() => { 2 | //eslint-disable-next-line no-console 3 | console.log("Welcome to this website"); 4 | }, 1000); 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/compiles-import-runtime/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "compiles-import-runtime", 3 | "private": true, 4 | "dependencies": { 5 | "@swc/helpers": "0.5.17" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/compiles-new-features/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | browsers: "ie 11", 3 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-gulp"], 4 | environment: "development", 5 | js: { 6 | myBundle: { 7 | source: "js/**/*.js" 8 | } 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/compiles-new-features/js/otherfile.js: -------------------------------------------------------------------------------- 1 | setTimeout(() => { 2 | //eslint-disable-next-line no-console 3 | console.log("Welcome to this website"); 4 | }, 1000); 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**/*.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/compiles/js/otherfile.js: -------------------------------------------------------------------------------- 1 | setTimeout(() => { 2 | //eslint-disable-next-line no-console 3 | console.log("Welcome to this website"); 4 | }, 1000); 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/concatenates/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**/*.js", 6 | concat: true 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/concatenates/js/otherfile.js: -------------------------------------------------------------------------------- 1 | setTimeout(() => { 2 | //eslint-disable-next-line no-console 3 | console.log("Welcome to this website"); 4 | }, 1000); 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**/*.js", 6 | concat: true 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/lints-es5-dev/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-gulp"], 3 | environment: "development", 4 | js: { 5 | myBundle: { 6 | source: "js/script.js" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/lints-es5-dev/js/script.js: -------------------------------------------------------------------------------- 1 | /* global test */ 2 | 3 | function test (one,two) { 4 | return one + two; 5 | } 6 | 7 | function isEqual(a, b) 8 | { 9 | return a === b; 10 | } 11 | 12 | window.test = test; 13 | window.isEqual = isEqual; 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/lints-es5/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-gulp/lints-es5/js/script.js: -------------------------------------------------------------------------------- 1 | /* global test */ 2 | 3 | function test (one,two) { 4 | return one + two; 5 | } 6 | 7 | function isEqual(a, b) 8 | { 9 | return a == b; 10 | } 11 | 12 | window.test = test; 13 | window.isEqual = isEqual; 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/compiles-deduplicates/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/compiles-generators/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | browsers: "ie 11", 3 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 4 | js: { 5 | myBundle: { 6 | source: "js/script.js" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/compiles-generators/js/script.js: -------------------------------------------------------------------------------- 1 | export default function* foo() { 2 | yield 1; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/compiles-import-runtime/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | browsers: "ie 11", 3 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 4 | js: { 5 | myBundle: { 6 | source: "js/script.js" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/compiles-import-runtime/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "compiles-import-runtime", 3 | "private": true, 4 | "dependencies": { 5 | "@swc/helpers": "0.5.17" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/compiles-merge-webpack-config/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/compiles-merge-webpack-config/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | optimization: { 3 | // NEVER EVER USE THIS IN YOUR CONFIGURATION 4 | // This is only to try the webpack.config.js feature 5 | minimize: false 6 | } 7 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/externals/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | externals: ["somelibrary/**"], 6 | source: "js/script.js" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/lints/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/lints/eslintOverride.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-multi-spaces": 0, 4 | "comma-spacing": 0 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/no-old-browser/.browserslistrc: -------------------------------------------------------------------------------- 1 | last 5 Chrome versions -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/no-old-browser/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/profiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/tree-shaking/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/index.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc-webpack/tree-shaking/js/index.js: -------------------------------------------------------------------------------- 1 | import { A } from "./imported-javascript.js"; 2 | 3 | new A().someMethod(); 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/ide/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/ide/js/script.js: -------------------------------------------------------------------------------- 1 | /* global test */ 2 | 3 | function test (one,two) { 4 | return one + two; 5 | } 6 | 7 | function isEqual(a, b) 8 | { 9 | return a == b; 10 | } 11 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints-additional-plugin/js/script.js: -------------------------------------------------------------------------------- 1 | import isNaN from "is-nan"; 2 | 3 | console.log(isNaN(25)); 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints-additional-plugin/package.json: -------------------------------------------------------------------------------- 1 | {"type": "module"} -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints-es5/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints-es5/js/script.js: -------------------------------------------------------------------------------- 1 | function test (one,two) { 2 | return one + two; 3 | } 4 | 5 | function isEqual(a, b) 6 | { 7 | return a == b; 8 | } 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints-eslintignore/.eslintignore: -------------------------------------------------------------------------------- 1 | js/Component.js 2 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints-eslintignore/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints-ignore-config/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-nonexistent"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints-ignore-config/eslintOverride.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-multi-spaces": 0, 4 | "comma-spacing": 0 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints-ignore-config/script.js: -------------------------------------------------------------------------------- 1 | export default function myFunction() { 2 | let oops = 1; 3 | return oops; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-swc"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints/eslintOverride.cjs: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | { 3 | "rules": { 4 | "@swissquote/swissquote/prettier/prettier": 0, 5 | "no-continue": 1 6 | } 7 | } 8 | ]; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints/eslintOverride.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "rules": { 4 | "@swissquote/swissquote/prettier/prettier": 0, 5 | "no-continue": 1 6 | } 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-swc/lints/eslintOverride.mjs: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | "rules": { 4 | "@swissquote/swissquote/prettier/prettier": 0, 5 | "no-continue": 1 6 | } 7 | } 8 | ]; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles-alternate-conf/js/Loading.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function Loading() { 4 | return
Loading tabs...
; 5 | } 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles-alternate-conf/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) { 11 | return a / b; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles-import-runtime/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | browsers: "ie 11", 3 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-gulp"], 4 | js: { 5 | myBundle: { 6 | source: "js/**/*.ts" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles-import-runtime/js/Component.ts: -------------------------------------------------------------------------------- 1 | export default function test(a: number, b: number) { 2 | return a + b; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles-import-runtime/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) { 11 | return a / b; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles-import-runtime/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "compiles-import-runtime", 3 | "private": true, 4 | "dependencies": { 5 | "@swc/helpers": "0.5.17" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles-modules/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**/*.mts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles-modules/js/Component.mts: -------------------------------------------------------------------------------- 1 | export default function test(a: number, b: number) { 2 | return a + b; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles-modules/js/SomeLibrary.mts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) { 11 | return a / b; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: ["js/**/*.ts", "js/**/*.tsx"] 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles/js/Loading.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export default function Loading() { 4 | return
Loading tabs...
; 5 | } 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/compiles/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) { 11 | return a / b; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/concatenates/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**/*.ts", 6 | concat: true 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/concatenates/js/Component.ts: -------------------------------------------------------------------------------- 1 | export default function test(a: number, b: number) { 2 | return a + b; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/concatenates/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) { 11 | return a / b; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**/*.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/fails/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | 2 | export default class SomeLibrary { 3 | add(a, b) { 4 | return a + b; 5 | } 6 | 7 | substract(a, b) { 8 | return a - b; 9 | } 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/lints/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-gulp"], 3 | js: { 4 | myBundle: { 5 | source: "js/**.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/lints/js/Component.ts: -------------------------------------------------------------------------------- 1 | 2 | export function test(a:number, b: number) { 3 | return a + b; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-gulp/lints/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) 11 | { 12 | return a / b; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-alternate-conf/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.ts", 6 | tsconfigFile: "tsconfig-alt.json" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-alternate-conf/js/Component.ts: -------------------------------------------------------------------------------- 1 | export default function test(a: number, b: number) { 2 | return a + b; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-alternate-conf/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) { 11 | return a / b; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-forked/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-forked/js/Component.ts: -------------------------------------------------------------------------------- 1 | export default function test(a: number, b: number) { 2 | return a + b; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-forked/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) { 11 | return a / b; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-paths/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-paths/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) { 11 | return a / b; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-paths/js/components/Calculator.ts: -------------------------------------------------------------------------------- 1 | export default function Calculator(a: number, b: number) { 2 | return a + b; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles-paths/js/views/View.ts: -------------------------------------------------------------------------------- 1 | import Calculator from "components/Calculator"; 2 | 3 | export default function() { 4 | return Calculator(1,2); 5 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles/js/Component.ts: -------------------------------------------------------------------------------- 1 | export default function test(a: number, b: number) { 2 | return a + b; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/compiles/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) { 11 | return a / b; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myTSBundle: { 5 | source: "js/typescript.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/invalid-forked/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myTSBundle: { 5 | source: "js/typescript.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/invalid/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-babel", "@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myTSBundle: { 5 | source: "js/typescript.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/lints/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/lints/js/Component.ts: -------------------------------------------------------------------------------- 1 | 2 | export function test(a:number, b: number) { 3 | return a + b; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/lints/js/SomeLibrary.ts: -------------------------------------------------------------------------------- 1 | export default class SomeLibrary { 2 | add(a, b) { 3 | return a + b; 4 | } 5 | 6 | substract(a, b) { 7 | return a - b; 8 | } 9 | 10 | divide(a, b) 11 | { 12 | return a / b; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/tree-shaking/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript", "@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/index.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript-webpack/tree-shaking/js/index.ts: -------------------------------------------------------------------------------- 1 | import { A } from "./imported-typescript"; 2 | 3 | new A().someMethod(); 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/lints/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-preset-typescript"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.ts" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/lints/js/Component.ts: -------------------------------------------------------------------------------- 1 | 2 | export function test(a:number, b: number) { 3 | return a + b; 4 | } 5 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier1/js/TS_4_2.ts: -------------------------------------------------------------------------------- 1 | // TypeScript 4.2 2 | // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-2.html#abstract-construct-signatures 3 | export abstract class Shape { 4 | abstract getArea(): number; 5 | } 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier1/js/app.ts: -------------------------------------------------------------------------------- 1 | import { catchUnkown } from "./TS_4_0"; 2 | 3 | import { Shape } from "./TS_4_2"; 4 | 5 | export { catchUnkown, Shape }; 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier2/js/TS_4_2.ts: -------------------------------------------------------------------------------- 1 | // TypeScript 4.2 2 | // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-2.html#abstract-construct-signatures 3 | export default abstract class Shape { 4 | abstract getArea(): number; 5 | } 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier2/js/TS_4_7_common.cts: -------------------------------------------------------------------------------- 1 | export function helper(): string { 2 | return "hello world!"; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier2/js/TS_5_1.ts: -------------------------------------------------------------------------------- 1 | // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-1.html 2 | // No new syntax 3 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier2/js/ts_4_5.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "4.5.0" 3 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/TS_4_2.ts: -------------------------------------------------------------------------------- 1 | // TypeScript 4.2 2 | // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-2.html#abstract-construct-signatures 3 | export default abstract class Shape { 4 | abstract getArea(): number; 5 | } 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/TS_4_7_common.cts: -------------------------------------------------------------------------------- 1 | export function helper(): string { 2 | return "hello world!"; 3 | } 4 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/TS_5_1.ts: -------------------------------------------------------------------------------- 1 | // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-1.html 2 | // No new syntax 3 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/TS_5_3.ts: -------------------------------------------------------------------------------- 1 | //https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-3.html#import-attributes 2 | import obj from "./ts_4_5.json" with { type: "json" }; 3 | 4 | export function getJson() { 5 | return obj; 6 | } 7 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/TS_5_4.ts: -------------------------------------------------------------------------------- 1 | // https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/ 2 | // No new syntax here 3 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/TS_5_5.ts: -------------------------------------------------------------------------------- 1 | // https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/ 2 | // No new syntax here 3 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/TS_5_6.ts: -------------------------------------------------------------------------------- 1 | // https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/ 2 | 3 | // https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#support-for-arbitrary-module-identifiers 4 | const banana = "🍌"; 5 | export { banana as "🍌" }; 6 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/TS_5_7.ts: -------------------------------------------------------------------------------- 1 | // https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/ 2 | // no new syntax here 3 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/TS_5_8.ts: -------------------------------------------------------------------------------- 1 | // https://devblogs.microsoft.com/typescript/announcing-typescript-5-8/ 2 | // no new syntax here 3 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-preset-typescript/test-ts-syntax_prettier3/js/ts_4_5.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "4.5.0" 3 | } -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-runner-webpack/compiles/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-runner-webpack"], 3 | destination_js: "dist/js", 4 | js: { 5 | myBundle: { 6 | source: "js/script.js" 7 | } 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-runner-webpack/compiles/js/SomeClass.js: -------------------------------------------------------------------------------- 1 | 2 | export default class SomeClass { 3 | 4 | constructor(field) { 5 | this.field = field; 6 | } 7 | 8 | sayHi() { 9 | console.log(this.field); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/integration-fixtures-cjs/fixtures/crafty-runner-webpack/fails/crafty.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["@swissquote/crafty-runner-webpack"], 3 | js: { 4 | myBundle: { 5 | source: "js/script.js" 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /packages/integration/.gitignore: -------------------------------------------------------------------------------- 1 | coverage_tmp 2 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/.npmignore: -------------------------------------------------------------------------------- 1 | build.config.js 2 | dist/*/*-stats.json 3 | test/* 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/packages/color-name.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../dist/color-name/index.js"); 2 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/abandoned/color-gray/input.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: gray(100); 3 | color: gray(0 / 90%); 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/abandoned/color-gray/output-current.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: #000000e6; 3 | background-color: #fff; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/abandoned/color-gray/output-old.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: rgba(0, 0, 0, .9); 3 | background-color: #fff; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/abandoned/color-manipulation/input.css: -------------------------------------------------------------------------------- 1 | a { 2 | color: color(red alpha(-10%)); 3 | } 4 | 5 | a:hover { 6 | color: color-mod(red blackness(80%)); 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/abandoned/color-manipulation/output-current.css: -------------------------------------------------------------------------------- 1 | a { 2 | color: #ff0000e6; 3 | } 4 | 5 | a:hover { 6 | color: #300; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/abandoned/color-manipulation/output-old.css: -------------------------------------------------------------------------------- 1 | a { 2 | color: rgba(255, 0, 0, .9); 3 | } 4 | 5 | a:hover { 6 | color: #300; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/abandoned/matches-pseudo-class/input.css: -------------------------------------------------------------------------------- 1 | p:matches(:first-child, .special) { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/abandoned/matches-pseudo-class/output-current.css: -------------------------------------------------------------------------------- 1 | p:first-child, p.special { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/abandoned/matches-pseudo-class/output-old.css: -------------------------------------------------------------------------------- 1 | p:first-child, p.special { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/cascading-3/all-property/input.css: -------------------------------------------------------------------------------- 1 | a { 2 | all: initial; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/cascading-3/all-property/output-current.css: -------------------------------------------------------------------------------- 1 | a { 2 | all: initial; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/cascading-3/all-property/output-old.css: -------------------------------------------------------------------------------- 1 | a { 2 | all: initial; 3 | direction: ltr; 4 | unicode-bidi: normal; 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/cascading-3/initial-value/input.css: -------------------------------------------------------------------------------- 1 | a { 2 | background: initial; 3 | white-space: initial; 4 | animation: initial; 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/cascading-3/initial-value/output-current.css: -------------------------------------------------------------------------------- 1 | a { 2 | background: initial; 3 | white-space: initial; 4 | animation: initial; 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/cascading-3/initial-value/output-old.css: -------------------------------------------------------------------------------- 1 | a { 2 | background: none; 3 | background: initial; 4 | white-space: normal; 5 | white-space: initial; 6 | -webkit-animation: none; 7 | animation: none; 8 | -webkit-animation: initial; 9 | animation: initial; 10 | } 11 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-function/input.css: -------------------------------------------------------------------------------- 1 | blockquote { 2 | color: color(rec2020 0.42053 0.979780 0.00579); 3 | background: color(display-p3 -0.6112 1.0079 -0.2192); 4 | } -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-function/output-current.css: -------------------------------------------------------------------------------- 1 | blockquote { 2 | color: #00fb37; 3 | color: color(rec2020 .42053 .97978 .00579); 4 | background: #00e578; 5 | background: color(display-p3 -.6112 1.0079 -.2192); 6 | } 7 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-function/output-old.css: -------------------------------------------------------------------------------- 1 | blockquote { 2 | color: #00fb37; 3 | color: color(rec2020 .42053 .97978 .00579); 4 | background: #00e578; 5 | background: color(display-p3 -.6112 1.0079 -.2192); 6 | } 7 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-hex-alpha/input.css: -------------------------------------------------------------------------------- 1 | blockquote { 2 | border-color: #9d9c; 3 | } -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-hex-alpha/output-current.css: -------------------------------------------------------------------------------- 1 | blockquote { 2 | border-color: #9d9c; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-hex-alpha/output-old.css: -------------------------------------------------------------------------------- 1 | blockquote { 2 | border-color: rgba(153, 221, 153, .8); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-hsl/input.css: -------------------------------------------------------------------------------- 1 | .Quote--clear { 2 | color: hsl(200grad 100% 50% / 20%); 3 | background-color: hsla(200grad, 100%, 50%, 0.2); 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-hsl/output-current.css: -------------------------------------------------------------------------------- 1 | .Quote--clear { 2 | color: #0ff3; 3 | background-color: #0ff3; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-hsl/output-old.css: -------------------------------------------------------------------------------- 1 | .Quote--clear { 2 | color: rgba(0, 255, 255, .2); 3 | background-color: rgba(0, 255, 255, .2); 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-hwb/input.css: -------------------------------------------------------------------------------- 1 | p { 2 | /* Colors Level 4 syntax */ 3 | color: hwb(120 44% 50%); 4 | /* Legacy syntax */ 5 | border-color: hwb(90, 0%, 0%, 0.5); 6 | } 7 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-hwb/output-current.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: #708070; 3 | border-color: #80ff0080; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-hwb/output-old.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: #708070; 3 | border-color: rgba(128, 255, 0, .5); 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-lab/input.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: lab(80% 50 20); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-lab/output-current.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: #ffb2b3; 3 | color: lab(80% 50 20); 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-lab/output-old.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: #ffb2b3; 3 | color: lab(80% 50 20); 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-oklab/input.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: oklab(72.322% -0.0465 -0.115); 3 | color: oklch(72.322% 0.12403 247.996); 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-oklab/output-current.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: #62acef; 3 | color: lab(67.5333% -8.68207 -41.6473); 4 | color: oklch(72.322% .12403 247.996); 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-oklab/output-old.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: #62acef; 3 | color: lab(67.5333% -8.68207 -41.6473); 4 | color: oklch(72.322% .12403 247.996); 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-rebeccapurple/input.css: -------------------------------------------------------------------------------- 1 | html { 2 | color: rebeccapurple; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-rebeccapurple/output-current.css: -------------------------------------------------------------------------------- 1 | html { 2 | color: #639; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-rebeccapurple/output-old.css: -------------------------------------------------------------------------------- 1 | html { 2 | color: #639; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-rgb/input.css: -------------------------------------------------------------------------------- 1 | .Quote--clear { 2 | background: rgb(250.5 255 255); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-rgb/output-current.css: -------------------------------------------------------------------------------- 1 | .Quote--clear { 2 | background: #fbffff; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/color-rgb/output-old.css: -------------------------------------------------------------------------------- 1 | .Quote--clear { 2 | background: #fbffff; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/opacity-percentages/input.css: -------------------------------------------------------------------------------- 1 | img { 2 | opacity: 90%; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/opacity-percentages/output-current.css: -------------------------------------------------------------------------------- 1 | img { 2 | opacity: .9; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-4/opacity-percentages/output-old.css: -------------------------------------------------------------------------------- 1 | img { 2 | opacity: .9; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-5/relative-colors/input.css: -------------------------------------------------------------------------------- 1 | .foo { 2 | color: lch(from slateblue calc(l - 10%) c h); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-5/relative-colors/output-current.css: -------------------------------------------------------------------------------- 1 | .foo { 2 | color: lch(from slateblue calc(l - 10%) c h); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/colors-5/relative-colors/output-old.css: -------------------------------------------------------------------------------- 1 | .foo { 2 | color: lch(from slateblue calc(l - 10%) c h); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/css-extensions/custom-selectors/input.css: -------------------------------------------------------------------------------- 1 | @custom-selector :--button button, .button; 2 | @custom-selector :--enter :hover, :focus; 3 | 4 | :--button { 5 | color: blue; 6 | } 7 | :--button:--enter { 8 | color: red; 9 | } 10 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/css-extensions/custom-selectors/output-current.css: -------------------------------------------------------------------------------- 1 | :is(button, .button) { 2 | color: #00f; 3 | } 4 | 5 | :is(button, .button):is(:hover, :focus) { 6 | color: red; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/custom-properties-1/custom-properties/input.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --color: #f00; 3 | } 4 | 5 | .menu_link { 6 | color: var(--color); 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/custom-properties-1/custom-properties/output-current.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --color: red; 3 | } 4 | 5 | .menu_link { 6 | color: var(--color); 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/custom-properties-1/custom-properties/output-old.css: -------------------------------------------------------------------------------- 1 | .menu_link { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/display-3/two-values-display/input.css: -------------------------------------------------------------------------------- 1 | .element { 2 | display: inline flow-root; 3 | } 4 | 5 | .element2 { 6 | display: inline flex; 7 | } 8 | 9 | .element3 { 10 | display: block grid; 11 | } 12 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/display-3/two-values-display/output-current.css: -------------------------------------------------------------------------------- 1 | .element { 2 | display: inline-block; 3 | } 4 | 5 | .element2 { 6 | display: inline-flex; 7 | } 8 | 9 | .element3 { 10 | display: grid; 11 | } 12 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/fonts-3/font-variant/input.css: -------------------------------------------------------------------------------- 1 | h2 { 2 | font-variant-caps: small-caps; 3 | } 4 | 5 | table { 6 | font-variant-numeric: lining-nums; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/fonts-3/font-variant/output-current.css: -------------------------------------------------------------------------------- 1 | h2 { 2 | font-feature-settings: "smcp"; 3 | font-variant-caps: small-caps; 4 | } 5 | 6 | table { 7 | font-feature-settings: "lnum"; 8 | font-variant-numeric: lining-nums; 9 | } 10 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/fonts-3/font-variant/output-old.css: -------------------------------------------------------------------------------- 1 | h2 { 2 | font-feature-settings: "smcp"; 3 | font-variant-caps: small-caps; 4 | } 5 | 6 | table { 7 | font-feature-settings: "lnum"; 8 | font-variant-numeric: lining-nums; 9 | } 10 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/fonts-4/system-ui-value/input.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: system-ui; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/fonts-4/system-ui-value/output-current.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: system-ui; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/fonts-4/system-ui-value/output-old.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/images-4/double-position-gradients/input.css: -------------------------------------------------------------------------------- 1 | .pie_chart { 2 | background-image: conic-gradient(yellowgreen 40%, gold 0deg 75%, #f06 0deg); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/images-4/double-position-gradients/output-current.css: -------------------------------------------------------------------------------- 1 | .pie_chart { 2 | background-image: conic-gradient(#9acd32 40%, gold 0deg 75%, #f06 0deg); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/images-4/double-position-gradients/output-old.css: -------------------------------------------------------------------------------- 1 | .pie_chart { 2 | background-image: conic-gradient(#9acd32 40%, gold 0deg, gold 75%, #f06 0deg); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/images-4/image-set/input.css: -------------------------------------------------------------------------------- 1 | .BigImage { 2 | background-image: image-set( 3 | url(img/test.png) 1x, 4 | url(img/test-2x.png) 2x, 5 | url(my-img-print.png) 600dpi 6 | ); 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/logical-1/properties-and-values/input.css: -------------------------------------------------------------------------------- 1 | .Banner { 2 | float: inline-start; 3 | padding-inline: 20px 40px; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/logical-1/properties-and-values/output-current.css: -------------------------------------------------------------------------------- 1 | .Banner { 2 | float: inline-start; 3 | padding-inline: 20px 40px; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/media-queries-4/media-query-ranges/input.css: -------------------------------------------------------------------------------- 1 | @media (width >= 500px) and (width <= 1200px) { 2 | .foo { 3 | opacity: 1; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/media-queries-4/media-query-ranges/output-current.css: -------------------------------------------------------------------------------- 1 | @media (min-width: 500px) and (max-width: 1200px) { 2 | .foo { 3 | opacity: 1; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/media-queries-4/media-query-ranges/output-old.css: -------------------------------------------------------------------------------- 1 | @media (min-width: 500px) and (max-width: 1200px) { 2 | .foo { 3 | opacity: 1; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/media-queries-5/custom-media-queries/input.css: -------------------------------------------------------------------------------- 1 | @custom-media --medium-screen (width < 500px) or (width > 1200px); 2 | 3 | @media (--medium-screen) { 4 | .foo { 5 | opacity: 1; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/media-queries-5/custom-media-queries/output-current.css: -------------------------------------------------------------------------------- 1 | @media (not (min-width: 500px)) or (not (max-width: 1200px)) { 2 | .foo { 3 | opacity: 1; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/media-queries-5/custom-media-queries/output-old.css: -------------------------------------------------------------------------------- 1 | @media (not (min-width: 500px)) or (not (max-width: 1200px)) { 2 | .foo { 3 | opacity: 1; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/assets/images/icons/clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/postcss-swissquote-preset/test/fixtures/misc/assets/images/icons/clock.png -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/assets/images/icons/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/postcss-swissquote-preset/test/fixtures/misc/assets/images/icons/comment.png -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/assets/images/some/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swissquote/crafty/ba08f3905553cbe78741553836b827b673c3f997/packages/postcss-swissquote-preset/test/fixtures/misc/assets/images/some/button.png -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/imports/foo.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #eee; 3 | } -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/imports/input.css: -------------------------------------------------------------------------------- 1 | @import "foo.css"; 2 | @import "media/bar.css" (min-width: 25em); -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/imports/media/bar.css: -------------------------------------------------------------------------------- 1 | .button { 2 | background: url("../../images/buttons/background.png"); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/imports/output-current.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #eee; 3 | } 4 | 5 | @media (min-width: 25em) { 6 | .button { 7 | background: url("../images/buttons/background.png"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/imports/output-old.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #eee; 3 | } 4 | 5 | @media (min-width: 25em) { 6 | .button { 7 | background: url("../images/buttons/background.png"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/prefixes/input.css: -------------------------------------------------------------------------------- 1 | :fullscreen a { 2 | display: flex; 3 | } 4 | 5 | .foo { 6 | flex-direction: row; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/prefixes/output-current.css: -------------------------------------------------------------------------------- 1 | :-webkit-full-screen a { 2 | display: flex; 3 | } 4 | 5 | :fullscreen a { 6 | display: flex; 7 | } 8 | 9 | .foo { 10 | flex-direction: row; 11 | } 12 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/property-lookup/input.css: -------------------------------------------------------------------------------- 1 | .heading { 2 | margin: 20px; 3 | padding: @margin; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/property-lookup/output-current.css: -------------------------------------------------------------------------------- 1 | .heading { 2 | margin: 20px; 3 | padding: 20px; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/misc/property-lookup/output-old.css: -------------------------------------------------------------------------------- 1 | .heading { 2 | margin: 20px; 3 | padding: 20px; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/overflow-3/overflow-shorthand/input.css: -------------------------------------------------------------------------------- 1 | html { 2 | overflow: hidden auto; 3 | } -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/overflow-3/overflow-shorthand/output-current.css: -------------------------------------------------------------------------------- 1 | html { 2 | overflow: hidden auto; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/overflow-3/overflow-shorthand/output-old.css: -------------------------------------------------------------------------------- 1 | html { 2 | overflow-x: hidden; 3 | overflow-y: auto; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/at-root/input.css: -------------------------------------------------------------------------------- 1 | .parent { 2 | .before { 3 | color: #333; 4 | } 5 | 6 | @at-root { 7 | .child { 8 | background: black; 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/at-root/output-current.css: -------------------------------------------------------------------------------- 1 | .child { 2 | background: #000; 3 | } 4 | 5 | .parent .before { 6 | color: #333; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/at-root/output-old.css: -------------------------------------------------------------------------------- 1 | .child { 2 | background: #000; 3 | } 4 | 5 | .parent .before { 6 | color: #333; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/conditionals/input.css: -------------------------------------------------------------------------------- 1 | .notice--clear { 2 | @if 3 < 5 { 3 | background: green; 4 | } @else { 5 | background: blue; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/conditionals/output-current.css: -------------------------------------------------------------------------------- 1 | .notice--clear { 2 | background: green; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/conditionals/output-old.css: -------------------------------------------------------------------------------- 1 | .notice--clear { 2 | background: green; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/loops/input.css: -------------------------------------------------------------------------------- 1 | @each $icon in (foo, bar, baz) { 2 | .icon-$(icon) { 3 | background: url("icons/$(icon).png"); 4 | } 5 | } 6 | 7 | @for $i from 1 to 3 { 8 | .b-$i { 9 | width: #{$i}px; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/mixins/input.css: -------------------------------------------------------------------------------- 1 | @mixin icon($name) { 2 | padding-left: 16px; 3 | 4 | &::after { 5 | content: ""; 6 | background: url(/icons/$(name).png); 7 | } 8 | } 9 | 10 | .search { 11 | @include icon(search); 12 | } 13 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/mixins/output-current.css: -------------------------------------------------------------------------------- 1 | .search { 2 | padding-left: 16px; 3 | } 4 | 5 | .search:after { 6 | content: ""; 7 | background: url("/icons/search.png"); 8 | } 9 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/mixins/output-old.css: -------------------------------------------------------------------------------- 1 | .search { 2 | padding-left: 16px; 3 | } 4 | 5 | .search:after { 6 | content: ""; 7 | background: url("/icons/search.png"); 8 | } 9 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/nesting/input.css: -------------------------------------------------------------------------------- 1 | .parent { 2 | background: white; 3 | 4 | .before { 5 | color: #333; 6 | } 7 | 8 | .after { 9 | color: #eee; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/nesting/output-current.css: -------------------------------------------------------------------------------- 1 | .parent { 2 | background: #fff; 3 | } 4 | 5 | .parent .before { 6 | color: #333; 7 | } 8 | 9 | .parent .after { 10 | color: #eee; 11 | } 12 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/nesting/output-old.css: -------------------------------------------------------------------------------- 1 | .parent { 2 | background: #fff; 3 | } 4 | 5 | .parent .before { 6 | color: #333; 7 | } 8 | 9 | .parent .after { 10 | color: #eee; 11 | } 12 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/single-line-comments/input.css: -------------------------------------------------------------------------------- 1 | // single line comment 2 | .button { 3 | color: orange; 4 | } 5 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/single-line-comments/output-current.css: -------------------------------------------------------------------------------- 1 | .button { 2 | color: orange; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/single-line-comments/output-old.css: -------------------------------------------------------------------------------- 1 | .button { 2 | color: orange; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/variables/input.css: -------------------------------------------------------------------------------- 1 | $blue: #056ef0; 2 | $column: 200px; 3 | 4 | .menu { 5 | width: calc(4 * $column); 6 | } 7 | 8 | .menu_link { 9 | background: $blue; 10 | width: $column; 11 | } 12 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/variables/output-current.css: -------------------------------------------------------------------------------- 1 | .menu { 2 | width: 800px; 3 | } 4 | 5 | .menu_link { 6 | background: #056ef0; 7 | width: 200px; 8 | } 9 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/scss/variables/output-old.css: -------------------------------------------------------------------------------- 1 | .menu { 2 | width: 800px; 3 | } 4 | 5 | .menu_link { 6 | background: #056ef0; 7 | width: 200px; 8 | } 9 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/selectors-4/any-link-pseudo-class/input.css: -------------------------------------------------------------------------------- 1 | nav :any-link { 2 | background-color: yellow; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/selectors-4/any-link-pseudo-class/output-current.css: -------------------------------------------------------------------------------- 1 | nav :any-link { 2 | background-color: #ff0; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/selectors-4/any-link-pseudo-class/output-old.css: -------------------------------------------------------------------------------- 1 | nav :-moz-any-link { 2 | background-color: #ff0; 3 | } 4 | 5 | nav :any-link { 6 | background-color: #ff0; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/selectors-4/case-insensitive-attributes/input.css: -------------------------------------------------------------------------------- 1 | [frame="hsides" i] { 2 | border-style: solid none; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/selectors-4/case-insensitive-attributes/output-current.css: -------------------------------------------------------------------------------- 1 | [frame="hsides" i] { 2 | border-style: solid none; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/selectors-4/dir-pseudo-class/input.css: -------------------------------------------------------------------------------- 1 | blockquote:dir(rtl) { 2 | margin-right: 10px; 3 | } 4 | 5 | blockquote:dir(ltr) { 6 | margin-left: 10px; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/selectors-4/not-pseudo-class/input.css: -------------------------------------------------------------------------------- 1 | p:not(:first-child, .special) { 2 | color: red; 3 | } -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/selectors-4/not-pseudo-class/output-current.css: -------------------------------------------------------------------------------- 1 | p:not(:first-child, .special) { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/selectors-4/not-pseudo-class/output-old.css: -------------------------------------------------------------------------------- 1 | p:not(:-moz-any(:first-child, .special)) { 2 | color: red; 3 | } 4 | 5 | p:not(:is(:first-child, .special)) { 6 | color: red; 7 | } 8 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/values-4/clamp-function/input.css: -------------------------------------------------------------------------------- 1 | .foo { 2 | font-size: clamp(1rem, 2.5vw, 2rem); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/values-4/clamp-function/output-current.css: -------------------------------------------------------------------------------- 1 | .foo { 2 | font-size: clamp(1rem, 2.5vw, 2rem); 3 | } 4 | -------------------------------------------------------------------------------- /packages/postcss-swissquote-preset/test/fixtures/values-4/clamp-function/output-old.css: -------------------------------------------------------------------------------- 1 | .foo { 2 | font-size: max(1rem, min(2.5vw, 2rem)); 3 | } 4 | -------------------------------------------------------------------------------- /packages/stylelint-config-swissquote/.npmignore: -------------------------------------------------------------------------------- 1 | coverage 2 | **/__tests__ 3 | jest.config.js 4 | build.config.js 5 | dist/*/*-stats.json 6 | -------------------------------------------------------------------------------- /packages/stylelint-config-swissquote/legacy.js: -------------------------------------------------------------------------------- 1 | import { createRequire } from "node:module"; 2 | 3 | const require = createRequire(import.meta.url); 4 | 5 | export default { 6 | extends: [require.resolve("./common.js")], 7 | rules: {} 8 | }; 9 | -------------------------------------------------------------------------------- /packages/stylelint-config-swissquote/packages/postcss-resolve-nested-selector.js: -------------------------------------------------------------------------------- 1 | import mod from "../dist/postcss-resolve-nested-selector/index.js"; 2 | export default mod; -------------------------------------------------------------------------------- /packages/stylelint-config-swissquote/packages/postcss-selector-parser.js: -------------------------------------------------------------------------------- 1 | import mod from "../dist/postcss-selector-parser/index.js"; 2 | export default mod; 3 | -------------------------------------------------------------------------------- /packages/stylelint-config-swissquote/packages/postcss-value-parser.js: -------------------------------------------------------------------------------- 1 | import mod from "../dist/postcss-value-parser/index.js"; 2 | export default mod; 3 | -------------------------------------------------------------------------------- /packages/stylelint-config-swissquote/packages/stylelint-cli.js: -------------------------------------------------------------------------------- 1 | //package: stylelint/lib/cli.mjs 2 | import mod from "../dist/stylelint/cli.js"; 3 | export default mod; 4 | -------------------------------------------------------------------------------- /packages/stylelint-config-swissquote/packages/stylelint-prettier.js: -------------------------------------------------------------------------------- 1 | import mod from "../dist/stylelint-prettier/index.js"; 2 | export default mod; 3 | -------------------------------------------------------------------------------- /packages/stylelint-config-swissquote/packages/stylelint-scss.js: -------------------------------------------------------------------------------- 1 | import mod from "../dist/stylelint-scss/index.js"; 2 | export default mod; 3 | -------------------------------------------------------------------------------- /packages/stylelint-config-swissquote/shims/prettier-parser.js: -------------------------------------------------------------------------------- 1 | export default { 2 | parsers: new Proxy( 3 | {}, 4 | { 5 | get: function (target, prop, receiver) { 6 | return {}; 7 | }, 8 | } 9 | ) 10 | }; 11 | --------------------------------------------------------------------------------