![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
A minimal static site generator inspired by Middleman and Sprockets, compatible with gulp plugins.
A minimal static site generator inspired by Middleman and Sprockets. Lingon is compatible with some gulp plugins.
This project is an attempt to port a subset of middleman to the node.js ecosystem. We are specifically targeting the features that are useful when building single page JS apps. If you already love middleman and Sprockets but want/need to use node.js, this might be interesting to you.
Namechange
This project was previously known as Orangejuice.
It is still very much alive, but with the new shiny name: Lingon.
Features
Lingon favors convention over configuration. For example, Grunt & Gulp provides powerful API's for building very customized build scripts. This requires you to write a bit of code everytime you want your build system to do something new. Each step in the build pipeline is carefully orchestrated so every project becomes special. This means there's a lot of copy-pasta going on when starting something new.
Lingon is inspired by Sprockets and uses a convention approach: A set of simple rules are used to determine what files to build, how to build them and where to put them. Files are processed based on their filename extensions.
Example: "index.html.ejs" will be run through the EJS processor. These processors are gulp plugins, which allows us to leverage a large collection of great existing plugins. If you want to teach Lingon something new, you just have to define the mapping between a file ending and a gulp plugin. That's it!
$ npm install lingon # Or add lingon to your package.json file
Don't want to execute the lingon.js file directly? Would you prefer a cli?
Check out the experimental lingon-cli
Your project should have a lingon.js file which is used to configure and run Lingon.
Here's a minimal lingon.js file with comments:
#!/usr/bin/env node
var lingon = require('lingon');
// The directory with your source tree, relative to the lingon.js file.
lingon.sourcePath = 'source';
// The directory you want to build to, relative to the lingon.js file.
lingon.buildPath = 'build';
Here's another lingon.js file that uses a lingon plugin to compile html files into the angular template cache. In this case the The files are named .html.ngt so we register the processor for the 'ngt' file ending. Additionally JavaScript files will be post-processed by the uglify gulp plugin when executing the build
task.
#!/usr/bin/env node
var lingon = require('lingon');
var ngHtml2js = require('lingon-ng-html2js');
var uglify = require('gulp-uglify');
lingon.sourcePath = 'source';
lingon.buildPath = 'build';
// registering a processor in the short syntax (overwrites previous ones for the file type)
// long form would be: lingon.preProcessor('ngt').set(name, factory)
lingon.preProcessor('ngt', function() {
return ngHtml2js({ base: 'source' })
});
// extending the processors for a file type and limiting it to files that don not contain ".min" in their path
lingon.postProcessor('js').add(/^((?!\.min).)*$/, function() {
var processors = [];
if(lingon.task == 'build') {
processors.push(
uglify({ outSourceMap: true })
);
}
return processors;
});
Make your lingon.js file executable
$ chmod +x lingon.js
Show help:
$ ./lingon.js -h
Build once and quit:
$ ./lingon.js build
Clean and build:
$ ./lingon.js clean build
Start the server:
$ ./lingon.js
Start the server on a custom port:
$ ./lingon.js server -p 1111
We've made an Angular.js template project that builds with Lingon.
It's the best reference to how Lingon works right now:
https://github.com/jpettersson/lingon-ng-template
Run the bats e2e tests:
$ ./tests.sh
Licensed under the MIT license.
Version 0.8.1
FAQs
A minimal static site generator inspired by Middleman and Sprockets, compatible with gulp plugins.
The npm package lingon receives a total of 132 weekly downloads. As such, lingon popularity was classified as not popular.
We found that lingon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.