Coder Social home page Coder Social logo

scottalguire / constomatic Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 488 KB

A node script that injects a random alphanumeric string as a value in a specified set of PHP constants. Use in a watch task as a means of automated cachebusting for a WordPress script/style enqueue.

License: MIT License

PHP 45.74% JavaScript 47.19% HTML 6.83% CSS 0.24%

constomatic's People

Contributors

scottalguire avatar

Watchers

 avatar  avatar

constomatic's Issues

Unexpected token error

Was excited to try this out as it sounded perfect for my needs. However, when I try to use it I get the following error:

/node_modules/constomatic/index.js:16
    ...settings
    ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Module._extensions..js (module.js:579:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/jpoitra/mamp/go-v3/wp-content/themes/gigaom/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)

I don't know a ton about node.js development but the ...settings and later ...config portions of the code do seem possibly problematic almost like you intended something to be there but then never got to it.

Totally possible that I'm just doing something stupid though too.

Any help would be greatly appreciated. :)

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.