{"id":20622623,"url":"https://github.com/myterminal/template-web-library-webpack","last_synced_at":"2025-06-26T21:34:08.156Z","repository":{"id":76221208,"uuid":"114394697","full_name":"myTerminal/template-web-library-webpack","owner":"myTerminal","description":"A template to create front-end libraries with Webpack as the module-bundler","archived":false,"fork":false,"pushed_at":"2020-09-09T19:00:50.000Z","size":315,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T23:27:17.623Z","etag":null,"topics":["front-end","library","template","webpack4"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myTerminal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-15T17:17:16.000Z","updated_at":"2020-04-06T15:49:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab4faab7-527f-4e4b-b4a0-875c0f097840","html_url":"https://github.com/myTerminal/template-web-library-webpack","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/myTerminal/template-web-library-webpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Ftemplate-web-library-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Ftemplate-web-library-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Ftemplate-web-library-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Ftemplate-web-library-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myTerminal","download_url":"https://codeload.github.com/myTerminal/template-web-library-webpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Ftemplate-web-library-webpack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262145203,"owners_count":23265892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["front-end","library","template","webpack4"],"created_at":"2024-11-16T12:24:05.042Z","updated_at":"2025-06-26T21:34:08.112Z","avatar_url":"https://github.com/myTerminal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# template-web-library-webpack\n\n[![License: CC BY-NC-SA 4.0](https://licensebuttons.net/l/by-nc-sa/4.0/80x15.png)](https://creativecommons.org/licenses/by-nc-sa/4.0)\n\nA template to create front-end libraries with [Webpack](https://webpack.js.org/) as the module-bundler\n\n## Technologies\n\n### Web\n\n - [jQuery](https://jquery.com/) (sample dependency)\n - [ES2015](http://es6-features.org/)\n - [Less CSS](http://lesscss.org/)\n\n### Module bundler: Webpack\n\n#### Plugins\n\n - [clean-webpack-plugin](https://www.npmjs.com/package/clean-webpack-plugin) to clean the output directory before every build\n - [extract-text-webpack-plugin](https://www.npmjs.com/package/extract-text-webpack-plugin) to extract CSS stylesheets as a separate bundle to the output directory\n - [optimize-css-assets-webpack-plugin](https://www.npmjs.com/package/extract-text-webpack-plugin) to optimize the extracted CSS\n - [uglifyjs-webpack-plugin](https://www.npmjs.com/package/uglifyjs-webpack-plugin) to minify JavaScript before bundling them to the output directory\n\n#### Loaders\n\n- [style-loader](https://www.npmjs.com/package/style-loader) to bundle CSS stylesheets\n- [css-loader](https://www.npmjs.com/package/css-loader) to work with style-loader for bundling of CSS stylesheets\n- [less-loader](https://www.npmjs.com/package/less-loader) to transpile Less CSS into regular CSS\n- [file-loader](https://www.npmjs.com/package/file-loader) to work with other file types\n- [eslint-loader](https://www.npmjs.com/package/eslint-loader) to run ESLint on JavaScript files\n- [babel-loader](https://www.npmjs.com/package/babel-loader) to perform babel transpilations with the help of supporting dependencies\n\n#### Supporting dependencies\n\n - [babel-core](https://www.npmjs.com/package/babel-core), [babel-preset-env](https://www.npmjs.com/package/babel-preset-env) to support babel-loader\n - [bable-preset-react](https://www.npmjs.com/package/babel-preset-react) to transpile JSX files to regular JavaScript files that web-browsers can interpret\n - [eslint](https://www.npmjs.com/package/eslint), [babel-eslint](https://www.npmjs.com/package/babel-eslint), [eslint-config-myterminal](https://www.npmjs.com/package/eslint-config-myterminal), [eslint-config-airbnb](https://www.npmjs.com/package/eslint-config-airbnb), [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import), [eslint-plugin-jsx-a11y](https://www.npmjs.com/package/eslint-plugin-jsx-a11y) and [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) to support eslint-loader in running ESLint to lint JavaScript files\n - [less](https://www.npmjs.com/package/less) to help less-loader with transpilation of Less CSS into regular CSS\n - [effortless-css](https://www.npmjs.com/package/effortless-css) to provide Less CSS mixins\n - [webpack-merge](https://www.npmjs.com/package/webpack-merge) to be able to use a common configuration across *dev* and *prod*\n\n#### Commands\n\n - `npm run debug` to run Webpack with development configuration.  \n In this mode, Webpack generates source-maps for bundled JavaScript resources to simplify debugging of JavaScript in the web-browser.\n - `npm run develop` to run Webpack with development configuration and keep watching for file changes within the source.  \n In this mode, Webpack generates source-maps for bundled JavaScript resources to simplify debugging of JavaScript in the web-browser.\n - `npm run build` to run Webpack with production configuration.  \n In this mode, Webpack minifies the JavaScript bundles and there are no source-maps created.\n\n## To-Do\n\n - Find a way to write and run tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Ftemplate-web-library-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyterminal%2Ftemplate-web-library-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Ftemplate-web-library-webpack/lists"}