Initial commit

This commit is contained in:
zhongjin
2020-06-13 18:34:34 +08:00
commit 52aaa9f15d
655 changed files with 96796 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
/**
* This script adds the package.json with the updated version
* for the npm publish to the dist/public directory
*/
var fs = require('fs');
var path = require('path');
var version = require(path.join(__dirname, '../package.json')).version;
var dependencies = require(path.join(__dirname, '../package.json')).dependencies;
var placeholder = require(path.join(__dirname, './package.public.json'));
placeholder.version = version;
placeholder.dependencies = dependencies;
fs.writeFileSync(path.join(__dirname, '../dist/public/package.json'), JSON.stringify(placeholder, null, 2));