{"id":21496497,"url":"https://github.com/mlibrary/prejudice","last_synced_at":"2025-10-11T00:14:49.223Z","repository":{"id":43001742,"uuid":"124780270","full_name":"mlibrary/prejudice","owner":"mlibrary","description":"A companion to pride.","archived":false,"fork":false,"pushed_at":"2025-10-02T13:47:36.000Z","size":2002,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-02T15:26:44.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlibrary.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-11T17:19:31.000Z","updated_at":"2025-10-02T13:47:39.000Z","dependencies_parsed_at":"2024-05-01T21:13:06.111Z","dependency_job_id":"da1d22b2-9e38-4e4d-8f00-f2f2b66c1cfd","html_url":"https://github.com/mlibrary/prejudice","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mlibrary/prejudice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fprejudice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fprejudice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fprejudice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fprejudice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlibrary","download_url":"https://codeload.github.com/mlibrary/prejudice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Fprejudice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005656,"owners_count":26083940,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-23T16:16:44.785Z","updated_at":"2025-10-11T00:14:49.191Z","avatar_url":"https://github.com/mlibrary.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack library starter\n\nWebpack based boilerplate for producing libraries (Input: ES6, Output: universal library)\n\n![Travis](https://travis-ci.org/krasimir/webpack-library-starter.svg?branch=master)\n\n## Features\n\n* Webpack 5 based.\n* ES6 as a source.\n* Exports in a [umd](https://github.com/umdjs/umd) format so your library works everywhere.\n* Linting with [ESLint](http://eslint.org/).\n\n## Process\n\n```\nES6 source files\n       |\n       |\n    webpack\n       |\n       +--- babel, eslint\n       |\n  ready to use\n     library\n  in umd format\n```\n\n*Have in mind that you have to build your library before publishing. The files under the `lib` folder are the ones that should be distributed.*\n\n## Getting started\n\n1. Setting up the name of your library\n  * Open `webpack.config.js` file and change the value of `libraryName` variable.\n  * Open `package.json` file and change the value of `main` property so it matches the name of your library.\n2. Get Sstarted\n  Run the `init.sh` script.\n\n  ```bash\n  ./init.sh\n  ```\n\n## Scripts\n\n* `yarn build` or `npm run build` - produces production version of your library under the `lib` folder\n\n## Testing in Search\n\n1. Clone [mlibrary/search](https://github.com/mlibrary/search).\n    ```bash\n    gh repo clone mlibrary/search\n    ```\n2. Navigate to the repository and open the `package.json` file. Edit the dependency URL for `prejudice` to point to your local `prejudice` repository.\n    ```bash\n    \"prejudice\": \"file:../prejudice\",\n    ```\n    Note: If you want to test a specific branch, add `#` followed by the branch name to the end of the URL.\n    ```bash\n    \"prejudice\": \"git+https://github.com/mlibrary/prejudice.git#your-branch-here\",\n    ```\n3. Install\n    ```bash\n    npm install\n    ```\n    Note: If this is not a fresh clone, do a clean install.\n    ```bash\n    rm -rf node_modules \u0026\u0026 package-lock.json \u0026\u0026 npm install\n    ```\n4. Run locally\n    ```bash\n    npm start\n    ```\n\nWhile Search is running locally, [the site](http://localhost:3000/) will automatically refresh whenever `lib/prejudice.js` changes.\n\n## Readings\n\n* [Start your own JavaScript library using webpack and ES6](http://krasimirtsonev.com/blog/article/javascript-library-starter-using-webpack-es6)\n\n## Misc\n\n### An example of using dependencies that shouldn’t be resolved by webpack, but should become dependencies of the resulting bundle\n\nIn the following example we are excluding React and Lodash:\n\n```js\n{\n  devtool: 'source-map',\n  output: {\n    path: '...',\n    libraryTarget: 'umd',\n    library: '...'\n  },\n  entry: '...',\n  ...\n  externals: {\n    react: 'react'\n    // Use more complicated mapping for lodash.\n    // We need to access it differently depending\n    // on the environment.\n    lodash: {\n      commonjs: 'lodash',\n      commonjs2: 'lodash',\n      amd: '_',\n      root: '_'\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Fprejudice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlibrary%2Fprejudice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Fprejudice/lists"}