-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds a build that compiles to es5 on publish
- Loading branch information
1 parent
b700e58
commit e2de8ba
Showing
6 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"useBuiltIns": "entry" | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
dist/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"email": "[email protected]", | ||
"url": "http://bitovi.com" | ||
}, | ||
"browserslist": "ie 11", | ||
"bugs": { | ||
"url": "https://github.com/canjs/can-stache-define-element/issues" | ||
}, | ||
|
@@ -18,6 +19,9 @@ | |
"can-symbol": "^1.6.4" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.5", | ||
"@babel/preset-env": "^7.4.5", | ||
"detect-cyclic-packages": "^1.1.0", | ||
"fixpack": "^2.3.1", | ||
"http-server": "^0.11.1", | ||
|
@@ -32,18 +36,20 @@ | |
"CanJS" | ||
], | ||
"license": "MIT", | ||
"main": "can-stache-define-element.js", | ||
"main": "dist/can-stache-define-element.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/canjs/can-stache-define-element.git" | ||
}, | ||
"scripts": { | ||
"ci": "npm run test && node test/test-saucelabs.js", | ||
"compile-to-es5": "babel src --out-dir dist", | ||
"detect-cycle": "detect-cyclic-packages", | ||
"http-server": "http-server -p 3000 --silent", | ||
"jshint": "jshint ./*.js src/*.js test/*.js --config", | ||
"jshint": "jshint src/*.js test/*.js --config", | ||
"lint": "fixpack && npm run jshint", | ||
"postversion": "git push --follow-tags", | ||
"prepublishOnly": "npm run compile-to-es5", | ||
"preversion": "npm test", | ||
"test": "npm run detect-cycle && npm run lint && npm run testee", | ||
"testee": "testee test/test.html --browsers firefox" | ||
|
2 changes: 1 addition & 1 deletion
2
can-stache-define-element-test.js → src/can-stache-define-element-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
can-stache-define-element.js → src/can-stache-define-element.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters