Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
Babel-ify things during the build process
Browse files Browse the repository at this point in the history
  • Loading branch information
allejo committed Jun 23, 2017
1 parent 6263197 commit ca85493
Show file tree
Hide file tree
Showing 8 changed files with 1,483 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"env"
]
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ Gemfile.lock
*.map
CodeBuilder.js
workspace/
_events/
_events/
node_modules/
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build:
npm install -g typescript; \
tsc --project lib/CodeBuilder; \
node_modules/.bin/tsc --project lib/CodeBuilder; \
node_modules/.bin/babel assets/js/ -d build; \
bash tools/fetchEvents.sh; \
bundle exec jekyll build;
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exclude:
- LICENSE.md
- tools/
- Makefile
- node_modules

# Development settings
livereload: true
4 changes: 2 additions & 2 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/linq.js/2.2.0.2/linq.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.16/clipboard.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.3/FileSaver.min.js"></script>
<script src="assets/js/CodeBuilder.js"></script>
<script src="assets/js/main.js"></script>
<script src="build/CodeBuilder.js"></script>
<script src="build/main.js"></script>
2 changes: 1 addition & 1 deletion lib/CodeBuilder/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"sourceMap": true,
"declaration": false,
"stripInternal": true,
"target": "ES5",
"target": "ES6",
"noUnusedLocals": true,
"noUnusedParameters": true
},
Expand Down
1,463 changes: 1,463 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"dependencies": {
"babel-cli": "^6.24.1",
"babel-preset-env": "^1.5.2",
"typescript": "^2.3.4"
}
}

0 comments on commit ca85493

Please sign in to comment.