Skip to content

Commit

Permalink
Added "files" to package.json (smaller footprint on NPM). Updated esl…
Browse files Browse the repository at this point in the history
…int. Added codeql.
  • Loading branch information
neonexus committed Nov 2, 2023
1 parent 2a217d7 commit e09ccbc
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 23 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
name: "CodeQL"

on:
push:
branches: [ "release", "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "release", "master" ]
schedule:
- cron: '38 4 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
# - name: Autobuild
# uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# Changelog

## [v4.2.3](https://github.com/neonexus/fixted/compare/v4.2.2...v4.2.3) (2023-11-02)

### Features

* Added "files" to `package.json`.
* Added `codeql-analysis.yml`.
* Updated dependencies.

## [v4.2.2](https://github.com/neonexus/fixted/compare/v4.2.1...v4.2.2) (2023-10-03)

### Features
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(The MIT License)

Copyright (c) 2022 NeoNexus DeMortis
Copyright (c) 2023 NeoNexus DeMortis

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the 'Software'), to deal in the Software without restriction, including without limitation
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ Fixted is based on [Barrels](https://www.npmjs.com/package/barrels), by Ruslan B

For an example of real-world use, see this: https://github.com/neonexus/sails-react-bootstrap-webpack/blob/release/test/startTests.js#L145

[![npm](https://img.shields.io/npm/dm/fixted?logo=npm&style=plastic)](https://www.npmjs.com/package/fixted) [![Build Status](https://img.shields.io/travis/com/neonexus/fixted/master?style=plastic&logo=travis)](https://app.travis-ci.com/neonexus/fixted) [![npm (fixted)](https://img.shields.io/npm/v/fixted/latest?style=plastic&logo=npm)](https://www.npmjs.com/package/fixted) [![GitHub package.json version (branch)](https://img.shields.io/github/package-json/v/neonexus/fixted/master?style=plastic&logo=github)](https://github.com/neonexus/fixted)
[![npm](https://img.shields.io/npm/dm/fixted?logo=npm&style=plastic)](https://www.npmjs.com/package/fixted)
[![Build Status](https://img.shields.io/travis/com/neonexus/fixted/master?style=plastic&logo=travis)](https://app.travis-ci.com/neonexus/fixted)
[![NPM version](https://img.shields.io/npm/v/fixted/latest?style=plastic&logo=npm&label=latest)](https://www.npmjs.com/package/fixted)
[![GitHub version](https://img.shields.io/github/v/release/neonexus/fixted?style=plastic&logo=github&label=latest)](https://github.com/neonexus/fixted)
[![License](https://img.shields.io/badge/license-MIT-orange?style=plastic&logo=data:image/svg%2bxml;base64,PHN2ZyB2ZXJzaW9uPSIxLjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEyODAgMTI4MCI+PHBhdGggZD0iTTYzNC4zIDE2OWMtNC42IDIuOC01LjggNS44LTEwLjkgMjYuNy01LjYgMjMuNS04LjYgMzMuNi0xMy4xIDQzLjgtMTAuMyAyMy40LTkuOCA0NC4yIDEuNCA2Ni4zIDMuNCA2LjcgNC40IDkuNSAzLjYgMTAuMy0uNi42LS45IDIuNi0uNiA0LjQuNCAyLjItLjQgNS4zLTIuNiAxMC4zLTEuOCA0LTQuNiAxMi44LTYuMyAxOS42bC0zLjIgMTIuNC04IC43Yy0yOS4xIDIuNC01OC45IDkuMy04OS40IDIwLjctMTcuOCA2LjYtMjguMyAxMS4zLTQ3LjMgMjAuOS0xOS44IDEwLjEtMzAuOCAxNy4zLTU5LjEgMzguNi0zNC40IDI2LTUwLjIgMzYuMi02Ny44IDQzLjUtMTIuOSA1LjUtMTIuNyA1LjQtMTMuNSAxLjYtMS43LTcuNS03LjItMTQuNi0xNC41LTE4LjQtMi41LTEuMy01LjYtMS45LTExLTEuOS04LjUgMC0xMy4zIDItMTguNiA3LjctNS40IDUuNy02LjkgOS41LTYuOSAxNy44IDAgOC44IDIuMSAxMy42IDguNCAxOS4zbDQgMy42LTQuNiA5LjNjLTUuNSAxMS4zLTQ3LjMgOTcuNi01NS4zIDExNC4zLTMuMiA2LjYtMTQuNyAzMC40LTI1LjcgNTMtMTAuOSAyMi41LTMxLjggNjUuNi00Ni4zIDk1LjdMMTIwLjUgODQ0aC02LjZsNC4yIDYuMmM2LjMgOS41IDI1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TMuNi0xMTAuMi4xIDAgLjkuMyAxLjguNnptNzIxLjggMjkuNmMyMi45IDQ3LjYgMTM5LjUgMjg4LjIgMTQxLjIgMjkxLjdsMS43IDMuMUg5OTFWNjgyLjJjMC04OSAuMy0xNjIuMi43LTE2Mi41LjMtLjQgMS4yLS43IDEuOC0uNy42IDAgNy43IDEzLjYgMTUuNyAzMC4yek0zMTUgNTUzYzguNyAxNy45IDM5LjUgODEuNSA2OC41IDE0MS41IDI5IDU5LjkgNTcuMiAxMTguMSA2Mi42IDEyOS4ybDkuOCAyMC4zSDI5NVY1MTkuOWwyLjIuM2MxLjguMiA1IDYuMiAxNy44IDMyLjh6bTY2OS4zIDEyOC43LS4zIDE2MS44LTc5LjkuMy04MCAuMiA2LjgtMTQuMmMzLjgtNy45IDEwLjktMjIuNiAxNS44LTMyLjggNS0xMC4yIDM2LjEtNzQuNSA2OS4zLTE0MyA3MS42LTE0Ny45IDY0LjYtMTM0IDY2LjgtMTM0IDEuNiAwIDEuNyA4LjkgMS41IDE2MS43eiIvPjwvc3ZnPg==)](https://github.com/neonexus/dzfg/blob/release/LICENSE)

## Installation

`npm i --save-dev fixted`
```console
npm i --save-dev fixted
```

## Usage

Expand Down
43 changes: 25 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fixted",
"version": "4.2.2",
"version": "4.2.3",
"description": "A simple way to populate Sails.js v1 models with data fixtures for testing purposes. Originally based on Barrels, by Ruslan Bredikhin.",
"keywords": [
"sails",
Expand All @@ -17,7 +17,7 @@
},
"devDependencies": {
"chai": "~4.3.10",
"eslint": "~8.50.0",
"eslint": "~8.52.0",
"mocha": "~10.2.0",
"pre-commit": "~1.2.2",
"sails": "~1.5.8",
Expand All @@ -27,6 +27,9 @@
"peerDependencies": {
"sails": "1.x"
},
"files": [
"index.js"
],
"funding": [
{
"type": "github",
Expand Down

0 comments on commit e09ccbc

Please sign in to comment.