Skip to content

Commit

Permalink
chore: add moduleId
Browse files Browse the repository at this point in the history
  • Loading branch information
holyzfy committed Mar 15, 2018
1 parent c13b697 commit 3022b08
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"moduleId": "animation",
"presets": ["env"],
"plugins": [
"add-module-exports",
Expand Down
2 changes: 1 addition & 1 deletion dist/animation-1.0.0.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['module', 'exports'], factory);
define('animation', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
Expand Down
2 changes: 1 addition & 1 deletion dist/animation-1.0.0.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "animation",
"version": "1.0.0",
"description": "A lightweight JavaScript animation library.",
"main": "animation.js",
"main": "index.js",
"scripts": {
"precommit": "node_modules/.bin/eslint animation.js",
"dev": "./node_modules/.bin/babel animation.js --out-file dist/animation-${npm_package_version}.js --source-maps inline --watch",
"precommit": "node_modules/.bin/eslint index.js",
"dev": "./node_modules/.bin/babel --out-file dist/animation-${npm_package_version}.js --source-maps inline --watch index.js",
"prebuild": "rm -rf dist/*.js",
"build": "./node_modules/.bin/babel animation.js --out-file dist/animation-${npm_package_version}.js",
"postbuild": "./node_modules/.bin/babel animation.js --out-file dist/animation-${npm_package_version}.min.js --minified",
"build": "./node_modules/.bin/babel --out-file dist/animation-${npm_package_version}.js index.js",
"postbuild": "./node_modules/.bin/babel --out-file dist/animation-${npm_package_version}.min.js --minified index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
Expand Down

0 comments on commit 3022b08

Please sign in to comment.