Skip to content

Commit f7f44a9

Browse files
committed
Remove Coffeescript dependency
1 parent bceb3a8 commit f7f44a9

12 files changed

+10
-972
lines changed

Gruntfile.js

Lines changed: 7 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports = function (grunt) {
9999
{
100100
expand: true,
101101
cwd: 'src',
102-
src: ['**/*.*', '!coffee/*'],
102+
src: ['**/*.*'],
103103
dest: 'transpiled',
104104
ext: '.js'
105105
}
@@ -110,7 +110,7 @@ module.exports = function (grunt) {
110110
{
111111
expand: true,
112112
cwd: 'test',
113-
src: ['**/*.*', '!coffee/*'],
113+
src: ['**/*.*'],
114114
dest: 'test-built',
115115
ext: '.js'
116116
}
@@ -129,10 +129,10 @@ module.exports = function (grunt) {
129129
watch: {
130130
all: {
131131
files: [
132-
'src/**/*.coffee',
133-
'src/**/*.jsx.coffee',
134-
'test/**/*.jsx.coffee',
135-
'test/**/*.coffee'
132+
'src/**/*.js',
133+
'src/**/*.jsx',
134+
'test/**/*.jsx',
135+
'test/**/*.js'
136136
],
137137
tasks: ['build'],
138138
options: {
@@ -190,49 +190,6 @@ module.exports = function (grunt) {
190190
}
191191
},
192192

193-
coffee: {
194-
options: {
195-
bare: true
196-
},
197-
198-
src: {
199-
files: [
200-
{
201-
expand: true,
202-
cwd: 'src/coffee',
203-
src: ['**/*.jsx.coffee'],
204-
dest: 'src',
205-
ext: '.jsx'
206-
},
207-
{
208-
expand: true,
209-
cwd: 'src/coffee',
210-
src: ['**/*.coffee', '!**/*.jsx.coffee'],
211-
dest: 'src',
212-
ext: '.js'
213-
}
214-
]
215-
},
216-
test: {
217-
files: [
218-
{
219-
expand: true,
220-
cwd: 'test/coffee',
221-
src: ['**/*.jsx.coffee'],
222-
dest: 'test',
223-
ext: '.jsx'
224-
},
225-
{
226-
expand: true,
227-
cwd: 'test/coffee',
228-
src: ['**/*.coffee', '!**/*.jsx.coffee'],
229-
dest: 'test',
230-
ext: '.js'
231-
}
232-
]
233-
}
234-
235-
}
236193

237194
});
238195

@@ -242,16 +199,13 @@ module.exports = function (grunt) {
242199
grunt.loadNpmTasks('grunt-contrib-clean');
243200
grunt.loadNpmTasks('grunt-contrib-watch');
244201
grunt.loadNpmTasks('grunt-contrib-copy');
245-
grunt.loadNpmTasks('grunt-contrib-coffee');
246202
grunt.loadNpmTasks('grunt-browserify');
247203
grunt.loadNpmTasks('grunt-contrib-requirejs');
248204

249205
grunt.registerTask('build', [
250206
'clean:amd',
251207
'clean:cjs',
252208
'clean:test',
253-
'coffee:src',
254-
'coffee:test',
255209
'react:src',
256210
'react:test',
257211
'amdwrap',
@@ -264,4 +218,4 @@ module.exports = function (grunt) {
264218

265219
grunt.registerTask('default', ['build']);
266220

267-
};
221+
};

TODO.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
- Create two different sets of Grunt tasks so that JS people build the project without knowing about CS
21
- Add moment.js to the project dependencies
32
- Improve positioning
43
- Let edit the input field by typing
@@ -7,4 +6,4 @@
76
- build a doc with examples
87
- use bootstrap accordions for picker switching
98
- support locales
10-
- build DateTimePickerHours and Minutes in the same manner than Years
9+
- build DateTimePickerHours and Minutes in the same manner than Years

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
"grunt-browserify": "~1.3.0",
2626
"grunt-cli": "~0.1.13",
2727
"grunt-contrib-clean": "~0.5.0",
28-
"grunt-contrib-coffee": "~0.10.1",
2928
"grunt-contrib-copy": "~0.5.0",
3029
"grunt-contrib-requirejs": "~0.4.1",
3130
"grunt-contrib-uglify": "~0.3.2",
3231
"grunt-contrib-watch": "~0.5.3",
3332
"grunt-react": "~0.10.0",
3433
"grunt-shell": "~0.6.4",
3534
"react": "^0.12.1",
36-
"requirejs": "~2.1.9"
35+
"requirejs": "~2.1.9",
36+
"webpack": "^1.5.1"
3737
},
3838
"dependencies": {
3939
"moment": "^2.8.2",

src/coffee/DateTimeField.jsx.coffee

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

0 commit comments

Comments
 (0)