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 b64a3a4
Show file tree
Hide file tree
Showing 7 changed files with 143 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)
[<img src="mit.svg" width="95" height="18">](LICENSE)

## Installation

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

## Usage

Expand Down
26 changes: 26 additions & 0 deletions mit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 b64a3a4

Please sign in to comment.