Giter VIP home page Giter VIP logo

Comments (14)

hemanth avatar hemanth commented on July 23, 2024

.gitmodules is a good choice given that we keep it in sync with the upstream, PR welcome 👍

from blns.

bram-dingelstad avatar bram-dingelstad commented on July 23, 2024

I made PR for this issue, please check it just to be sure.

from blns.

hemanth avatar hemanth commented on July 23, 2024

@96AA48 Thanks the submodule part looks fine, but we need to find a way to keep it in sync always readme must be changed and the package.json's file section as well. 👍

from blns.

bram-dingelstad avatar bram-dingelstad commented on July 23, 2024

Sorry for my sloppy coding, I changed the code around so that @chentsulin implementation of require('path/to/blns/json') is in place as well. Will change readme and package.json in a bit.

from blns.

bram-dingelstad avatar bram-dingelstad commented on July 23, 2024

Changed the README and package.json as well, should be ready to merge.

from blns.

chentsulin avatar chentsulin commented on July 23, 2024

I think it can be simplified to something like below:

Module:

'use strict';

module.exports = require('./resources/blns.json');

And test :

'use strict';

var assert = require('assert');
var blns = require('./');

assert(Array.isArray(blns));

Any ideas here?

from blns.

bram-dingelstad avatar bram-dingelstad commented on July 23, 2024

Yeah, that seems to do it as well. Should I make the changes and push them @chentsulin ?

from blns.

hemanth avatar hemanth commented on July 23, 2024

Looks fine, but how do we keep it in sync always, maybe using a githook?

git submodule foreach 'git fetch origin --tags; git checkout master; git pull' && git pull && git submodule update --init --recursive

from blns.

bram-dingelstad avatar bram-dingelstad commented on July 23, 2024

I have no experience with things like that, I wish you the best of luck!

from blns.

chentsulin avatar chentsulin commented on July 23, 2024

@96AA48 you can feel free to use any ideas I mention above.

from blns.

hemanth avatar hemanth commented on July 23, 2024

Fixed in v2.0.0 thanks 👍

from blns.

styfle avatar styfle commented on July 23, 2024

Won't this easily fall out of date (it looks like it's 2 years behind already)?

from blns.

hemanth avatar hemanth commented on July 23, 2024

What do you suggest?

from blns.

styfle avatar styfle commented on July 23, 2024

There are a couple options.

  1. Implement some sort of automated publish script that always grabs master blns and publishes a new version to npm periodically. Maybe even watch for changes to minimaxir/big-list-of-naughty-strings repo which could trigger the publish.
  2. Change it back to how it used to work and perform an HTTP request each run. This will never be out of date. I might suggest using cdn.jsdelivr.net instead of raw.githubusercontent.com but either should work.

from blns.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.