build
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "impress.js",
|
||||
"version": "1.1.0",
|
||||
"version": "2.1.0",
|
||||
"description": "It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.",
|
||||
"main": "js/impress.js",
|
||||
"repository": {
|
||||
@@ -27,7 +27,7 @@
|
||||
"lint": "npm exec -- jshint src test/*.js && npm exec -- jscs src test/*.js",
|
||||
"new-lint": "npm exec -- eslint src test",
|
||||
"test": "npm exec -- karma start --log-level debug --single-run=true",
|
||||
"build-website": "node ./website/src/build.js"
|
||||
"build-website": "node ./website/docs/src/build.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^6.8.0",
|
||||
|
||||
38
website/docs/src/build.js
Normal file
38
website/docs/src/build.js
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
*
|
||||
* impress.js website - build.js
|
||||
*
|
||||
* Developed 2023 by Janis Hutz
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
We will convert certain MD files to html and include them in the documentation. This mostly includes the plugin documentation.
|
||||
If there is no MD file in the directory, there will be no documentation. The script will also automatically build the nav menu
|
||||
and copy all the necessary files to the correct places.
|
||||
*/
|
||||
|
||||
const fs = require( 'fs' );
|
||||
const path = require( 'path' );
|
||||
const md2html = require( 'node-html-markdown' );
|
||||
|
||||
const pluginsPath = path.join( __dirname + '/../../../src/plugins' );
|
||||
|
||||
let plugins = fs.readdirSync( pluginsPath );
|
||||
delete plugins[0];
|
||||
|
||||
for ( let item in plugins ) {
|
||||
fs.readFile( path.join( pluginsPath + '/' + plugins[item] + '/README.md' ), ( error, data ) => {
|
||||
if ( error ) {
|
||||
parseJS( path.join( pluginsPath + '/' + plugins[item] ) );
|
||||
} else {
|
||||
console.log( data );
|
||||
};
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
function parseJS ( filepath ) {
|
||||
console.log( 'no readme found' );
|
||||
let jsFiles = fs.readdirSync( filepath );
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
/*
|
||||
*
|
||||
* impress.js website - build.js
|
||||
*
|
||||
* Developed 2023 by Janis Hutz
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
We will convert certain MD files to html and include them in the documentation. This mostly includes the plugin documentation.
|
||||
If there is no MD file in the directory, there will be no documentation. The script will also automatically build the nav menu
|
||||
and copy all the necessary files to the correct places.
|
||||
*/
|
||||
Reference in New Issue
Block a user