Skip to content

Commit 2c5e8aa

Browse files
committed
Swap toolchain
1 parent 350dc5b commit 2c5e8aa

File tree

10 files changed

+76
-63
lines changed

10 files changed

+76
-63
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015"]
3+
}

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
end_of_line = lf
10+
max_line_length = null

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
node_modules/
22
npm-debug.log
3-
.DS_Store
3+
.DS_Store
4+
package-lock.json
5+
6+
# VIM Swap Files
7+
[._]*.s[a-v][a-z]
8+
[._]*.sw[a-p]
9+
[._]s[a-v][a-z]
10+
[._]sw[a-p]

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- 4.1
5-
before_install:
6-
- npm install -g grunt-cli
4+
- lts/*
75
notifications:
86
email:
97
recipients:

.vscode/launch.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run ES6 Tests",
6+
"type": "node",
7+
"request": "launch",
8+
"cwd": "${workspaceRoot}",
9+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
10+
"stopOnEntry": false,
11+
"args": [
12+
"./src/*-unit.js",
13+
"--require", "babel-register", "testutils.js",
14+
"--reporter", "spec",
15+
"--no-timeouts"
16+
],
17+
"runtimeArgs": [
18+
"--nolazy"
19+
],
20+
"sourceMaps": true
21+
}
22+
]
23+
}

Gruntfile.js

Lines changed: 0 additions & 59 deletions
This file was deleted.

scripts/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
rm -rf $PWD/dist
4+
babel src --out-dir dist --ignore '**/*-unit.js' --source-maps inline
5+
git reset
6+
git add $PWD/dist
7+
git commit -m 'Updating dist files' -n

scripts/release.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
json_value() {
4+
KEY=$1
5+
num=$2
6+
awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'$KEY'\042/){print $(i+1)}}}' | tr -d '"' | sed -n ${num}p
7+
}
8+
9+
# read version from package.json and trim leading/trailing whitespace
10+
version=`less package.json | json_value version 1 | sed -e 's/^ *//' -e 's/ *$//'`
11+
prefix="v"
12+
# tag, push, publish
13+
echo -e "\n> tagging $prefix$version"
14+
git tag "$prefix$version"
15+
echo -e "\n> pushing commits to origin"
16+
git push
17+
echo -e "\n> pushing tags to origin"
18+
git push --tags
19+
echo -e "\n> publishing on npm"
20+
npm publish

testutils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { expect } from 'chai'
2+
3+
global.expect = expect

0 commit comments

Comments
 (0)