Use camelCase over PascalCase

This commit is contained in:
Mitchell Gates 2017-12-15 13:16:35 -05:00
parent 928079d181
commit c2256a8cb0
2 changed files with 3 additions and 3 deletions

View File

@ -35,6 +35,7 @@
"acorn-jsx": "4.1.0",
"asyncro": "^2.0.1",
"babel-polyfill": "^6.26.0",
"camelcase": "^4.1.0",
"chalk": "^2.3.0",
"es6-promisify": "^5.0.0",
"glob": "^7.1.2",
@ -53,7 +54,6 @@
"rollup-plugin-preserve-shebang": "^0.1.3",
"rollup-plugin-sizes": "^0.4.2",
"rollup-plugin-uglify": "^2.0.1",
"uppercamelcase": "^3.0.0",
"yargs": "^10.0.3"
},
"devDependencies": {

View File

@ -16,13 +16,13 @@ import gzipSize from 'gzip-size';
import prettyBytes from 'pretty-bytes';
import shebangPlugin from 'rollup-plugin-preserve-shebang';
import flow from 'rollup-plugin-flow';
import pascalCase from 'uppercamelcase';
import camelCase from 'camelcase';
const readFile = promisify(fs.readFile);
const stat = promisify(fs.stat);
const isDir = name => stat(name).then( stats => stats.isDirectory() ).catch( () => false );
const isFile = name => stat(name).then( stats => stats.isFile() ).catch( () => false );
const safeVariableName = name => pascalCase(name.toLowerCase().replace(/((^[^a-zA-Z]+)|[^\w.-])|([^a-zA-Z0-9]+$)/g, ''));
const safeVariableName = name => camelCase(name.toLowerCase().replace(/((^[^a-zA-Z]+)|[^\w.-])|([^a-zA-Z0-9]+$)/g, ''));
const FORMATS = ['es', 'cjs', 'umd'];