Miss any of our Open RFC calls?Watch the recordings here! »

@demosify/core

0.1.1 • Public • Published

DEMOSIFY

Usage

npm install @demosify/core --save-dev

Add .demorc.js:

module.exports = {
  devServer: {
    port: 3000,
  },
  source: 'demos', // default is demos
  output: 'docs', // default is dist
  name: 'Your project name',
  version: 'Your project version',
  homePage: 'You project homepage url',
  logo: '',
  // 可选主题: active4d, allHallowsEve, amy, blackboard, brillianceBlack,
  // brillianceDull, chromeDevtools, cloudsMidnight, clouds, cobalt,
  // dawn, dreamweaver, eiffel, espressoLibre, github, idle, katzenmilch,
  // kuroirTheme, lazy, magicwbAmiga, merbivoreSoft, merbivore, monokai,
  // pastelsOnDark, slushAndPoppies, solarizedDark, solarizedLight,
  // spacecadet, sunburst, textmateMacClassic, tomorrowNightBlue,
  // tomorrowNightBright, tomorrowNightEighties, tomorrowNight, tomorrow,
  // twilight, vibrantInk, zenburnesque, iplastic, idlefingers, krtheme,
  // monoindustrial,
  boxTheme: 'monokai',
  globalPackages: {
    js: [/* js lib */],
    css: [/* css lib */],
  },
  // tab waterfall
  editorViewMode: 'tab',
}

Create source directory and add .demoList.json:

["quick start"]

Create your demo directory and files.

Edit your package.json

scripts: {
  "start": "demosify --serve",
  "build:demo": "demosify"
}

Done.

Keywords

none

Install

npm i @demosify/[email protected]

Version

0.1.1

License

MIT

Unpacked Size

63.2 kB

Total Files

28

Last publish

Collaborators

  • avatar