Skip to content

Commit

Permalink
build: Add Babel transpilation build step
Browse files Browse the repository at this point in the history
  • Loading branch information
isaachinman committed Sep 29, 2019
1 parent a9cd8c5 commit a417e0a
Show file tree
Hide file tree
Showing 5 changed files with 2,203 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": [
[
"@babel/preset-env"
]
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
instantpage.es5.js
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# instant.page

## ES5 Fork

This package is identical to the original [instant.page](https://github.com/instantpage/instant.page) package, with the addition of a ES5 transpilation step to support browsers like IE11, etc. See [this issue](https://github.com/instantpage/instant.page/issues/31) for more information.

**Make your site’s pages instant in 1 minute and improve your conversion rate by 1%.**

:information_source: Info is on [the website](https://instant.page).
Expand Down
17 changes: 12 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"name": "instant.page",
"name": "instant.page.es5",
"version": "2.0.0",
"description": "Make your site’s pages instant in 1 minute and improve your conversion rate by 1%",
"main": "instantpage.js",
"main": "instantpage.es5.js",
"directories": {
"test": "test"
},
"scripts": {
"build": "babel instantpage.js --out-file instantpage.es5.js",
"prepublishOnly": "yarn build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/instantpage/instant.page.git"
"url": "git+https://github.com/isaachinman/instant.page.git"
},
"keywords": [
"instant",
Expand All @@ -20,7 +22,12 @@
"author": "Alexandre Dieulot",
"license": "MIT",
"bugs": {
"url": "https://github.com/instantpage/instant.page/issues"
"url": "https://github.com/isaachinman/instant.page/issues"
},
"homepage": "https://instant.page/"
"homepage": "https://instant.page/",
"devDependencies": {
"@babel/cli": "^7.6.2",
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2"
}
}
Loading

0 comments on commit a417e0a

Please sign in to comment.