Skip to content

Commit

Permalink
Changing ES6 module-formatted Lavaca to be the main "lavaca" npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
zship committed Apr 10, 2016
1 parent ee517d8 commit 31b80f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ you're going with the source route, Lavaca has three flavors available:

- `npm install lavaca-amd`: AMD format
- `npm install lavaca-commonjs`: CommonJS format
- `npm install lavaca-es6`: ES6 module format
- `npm install lavaca`: ES6 module format

## Documentation
<http://getlavaca.com/#/guide>
Expand Down
2 changes: 1 addition & 1 deletion _scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ case "$1" in
es)
mkdir -p build/es
cp -a src/* build/es/
node _scripts/changePackageName.js lavaca-es > build/es/package.json
node _scripts/changePackageName.js lavaca > build/es/package.json
;;
amd)
mkdir -p build/amd
Expand Down
2 changes: 2 additions & 0 deletions _scripts/changePackageName.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ var path = require('path');
var json = fs.readFileSync(path.resolve(__dirname, '../package.json'));
var pkg = JSON.parse(json);
pkg.name = process.argv[2];
delete pkg.devDependencies;
delete pkg.scripts;
process.stdout.write(JSON.stringify(pkg, false, 4) + '\n');
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lavaca",
"description": "A curated collection of tools built for mobile.",
"version": "4.0.0-alpha.1",
"version": "4.0.0-alpha.2",
"homepage": "https://github.com/mutualmobile/lavaca",
"author": {
"name": "mutualmobile",
Expand Down

0 comments on commit 31b80f4

Please sign in to comment.