erayaydin / html5-generator

HTML5 Generator with Assets!
5 stars 0 forks source link

Assets with JSON #1

Open erayaydin opened 9 years ago

erayaydin commented 9 years ago

For now assets static. assets.json file will usefull for adding new assets.

Example assets.json

{
  "animate": {
    "title": "Animate.css",
    "website": "https://daneden.github.io/animate.css/",
    "require": [],
    "corecss": [],
    "plugincss": ["animate.css"],
    "corejs": [],
    "pluginjs": []
  },
  "bootstrap": {
    "title": "Bootstrap",
    "website": "https://getbootstrap.com",
    "require": ["jquery"],
    "corecss": [],
    "plugincss": ["css/bootstrap.min.css", "css/bootstrap-theme.min.css"],
    "corejs": [],
    "pluginjs": ["js/bootstrap.min.js"]
  },
  "eraydebug": {
    "title": "Eray Debug",
    "website": "https://erayaydin.github.io/eraydebug",
    "require": ["jquery"],
    "corecss": [],
    "plugincss": ["css/debug.css"],
    "corejs": [],
    "pluginjs": ["js/debug.js"]
  },
  "jquery": {
    "title": "jQuery",
    "website": "https://jquery.com/",
    "require": [],
    "corecss": [],
    "plugincss": [],
    "corejs": [],
    "pluginjs": ["jquery-1.11.3.min.js"]
  },
  "jqueryui": {
    "title": "jQuery UI",
    "website": "https://jqueryui.com/",
    "require": ["jquery"],
    "corecss": [],
    "plugincss": ["jquery-ui.min.css", "jquery-ui.structure.min.css", "jquery-ui.theme.min.css"],
    "corejs": [],
    "pluginjs": ["jquery-ui.min.js"]
  },
  "meyerreset": {
    "title": "Meyer Reset CSS",
    "website": "http://meyerweb.com/eric/tools/css/reset/",
    "require": [],
    "corecss": ["reset.css"],
    "plugincss": [],
    "corejs": [],
    "pluginjs": []
  },
  "normalize": {
    "title": "Normalize",
    "website": "http://necolas.github.io/normalize.css/",
    "require": [],
    "corecss": ["normalize.css"],
    "plugincss": [],
    "corejs": [],
    "pluginjs": []
  },
  "prettyphoto": {
    "title": "PrettyPhoto",
    "website": "http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/",
    "require": [],
    "corecss": [],
    "plugincss": ["css/prettyPhoto.css"],
    "corejs": [],
    "pluginjs": ["js/jquery.prettyPhoto.js"]
  }
}

title: Name of asset website: Website address of asset require: Require another asset like jquery corecss: Adding stylesheets to Core CSS area plugincss: Adding stylesheets to Plugin CSS area corejs: Adding scripts to Core JS area pluginjs: Adding scripts to Plugin JS area

erayaydin commented 9 years ago

I changed idea with SQL. SQL will better than JSON about user-friendly.