Skip to content
This repository was archived by the owner on Dec 30, 2019. It is now read-only.

Commit d885fa8

Browse files
committed
use jasmine directly
1 parent 41c504b commit d885fa8

8 files changed

+2327
-691
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ test.js
1313
# built files
1414
terraformer-wkt-parser.js
1515
terraformer-wkt-parser.min.js
16+
terraformer-wkt-parser-*.min.js
17+

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
language: node_js
2-
sudo: false
2+
sudo: required
3+
notifications:
4+
email: false
35
before_install: npm install -g grunt-cli
46
node_js:
57
- "node"
68
cache:
79
directories:
810
- node_modules
11+
addons:
12+
chrome: stable

Gruntfile.js

+2-41
Original file line numberDiff line numberDiff line change
@@ -65,47 +65,9 @@ module.exports = function (grunt) {
6565
// }
6666
// },
6767

68-
jasmine_node: {
69-
options: {
70-
forceExit: true,
71-
match: '.',
72-
matchall: false,
73-
extensions: 'js',
74-
specNameMatcher: 'Spec',
75-
helperNameMatcher: 'Helpers'
76-
},
77-
all: ['spec/']
78-
},
7968

80-
s3: {
81-
options: {
82-
key: '<%= aws.key %>',
83-
secret: '<%= aws.secret %>',
84-
bucket: '<%= aws.bucket %>',
85-
access: 'public-read',
86-
headers: {
87-
// 1 Year cache policy (1000 * 60 * 60 * 24 * 365)
88-
"Cache-Control": "max-age=630720000, public",
89-
"Expires": new Date(Date.now() + 63072000000).toUTCString()
90-
}
91-
},
92-
dev: {
93-
upload: [
94-
{
95-
src: 'terraformer-wkt-parser.min.js',
96-
dest: 'terraformer-wkt-parser/<%= pkg.version %>/terraformer-wkt-parser.min.js'
97-
}
98-
]
99-
},
100-
}
10169
});
10270

103-
var awsExists = fs.existsSync(process.env.HOME + '/terraformer-s3.json');
104-
105-
if (awsExists) {
106-
grunt.config.set('aws', grunt.file.readJSON(process.env.HOME + '/terraformer-s3.json'));
107-
}
108-
10971
grunt.registerTask('wkt-parser', 'Building WKT Parser', function() {
11072
var grammar = fs.readFileSync('./src/wkt.yy', 'utf8');
11173

@@ -127,10 +89,9 @@ module.exports = function (grunt) {
12789
grunt.loadNpmTasks('grunt-contrib-uglify');
12890
grunt.loadNpmTasks("grunt-vows");
12991
grunt.loadNpmTasks('grunt-contrib-jasmine');
130-
grunt.loadNpmTasks('grunt-jasmine-node');
13192
grunt.loadNpmTasks('grunt-s3');
13293

133-
grunt.registerTask('test', [ 'wkt-parser', 'vows', 'jasmine_node' ]);
94+
grunt.registerTask('test', [ 'wkt-parser', 'vows' ]);
13495
grunt.registerTask('default', [ 'test' ]);
135-
grunt.registerTask('version', [ 'test', 'uglify', 's3' ]);
96+
grunt.registerTask('version', [ 'test', 'uglify']);
13697
};

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013 Esri, Inc
1+
Copyright (c) 2013-2018 Esri, Inc
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

jasmine.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"spec_dir": "spec",
3+
"spec_files": ["**Spec.js"],
4+
"helpers": [],
5+
"stopSpecOnExpectationFailure": false,
6+
"random": false
7+
}

0 commit comments

Comments
 (0)