Giter Site home page Giter Site logo
Single Page Application SDK photo

spasdk Goto Github PK

repos: 45.0 gists: 0.0

Name: Single Page Application SDK

Type: Organization

Bio: General-purpose CommonJS modules and tools for browser applications development.

Development tasks

build status npm version dependencies status devDependencies status Gitter

Installation

npm install spasdk

Usage

Add to the scope:

var spasdk = require('spasdk');

Environment variables

Name Description
PATH_ROOT read-only absolute path to main application directory (where package.json is located)
PATH_APP relative to PATH_ROOT directory with files ready to be deployed
PATH_SRC relative to PATH_ROOT directory with source files to generate development and release application files
PATH_CFG relative to PATH_ROOT directory with configuration files for tasks and application itself
PACKAGE read-only absolute path to the application package.json file

Some to these variables can be redefined in run-time:

PATH_CFG=some_other_dir gulp

Application configuration

The directory contains all application configuration files.

File gulp.js can redefine default configuration options for all gulp tasks.

For example:

module.exports = {
    default: {
        notifications: {
            popup: {
                fail: false
            }
        }
    },
    jade: {
        default: {
            source: 'sources/pug/main.pug'
        },
        develop: {
            target: 'dst/debug.html'
        },
        release: false,
        test: {}
    },
    sass: false
};

This will apply the following changes:

  • disable failure popup notifications for all profiles and all tasks
  • set sources/pug/main.pug as the main entry point (instead of default src/jade/main.jade) for all Jade profiles
  • set dst/debug.html as the intended output file (instead of default app/develop.html) for Jade develop profile only
  • remove Jade release profile
  • add new Jade test profile filled with options from default profile
  • completely disable all SASS tasks

To make sure all options are correct it's possible to print the current config set:

gulp jade:config

Contribution

If you have any problems or suggestions please open an issue according to the contribution rules.

License

spasdk is released under the GPL-3.0 License.

Single Page Application SDK's Projects

develop icon develop

Application development tools and mechanisms.

dom icon dom

HTML elements low-level handling.

eslint icon eslint

General-purpose eslint linting.

meta icon meta

Organization repositories management.

plugin icon plugin

Plugin constructor for task handling.

plugin-css icon plugin-css

Build CSS files from base and application sources.

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.