Skip to content

Commit e3307eb

Browse files
author
Hsiaoming Yang
committed
build tools and other things
1 parent 2e16d32 commit e3307eb

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist
33
npm-debug.log
44
tmp
55
build
6+
dist

.spmignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
dist
3+
npm-debug.log
4+
tmp
5+
build
6+
dist
7+
src
8+
icomoon
9+
codemirror
10+
docs

Gruntfile.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = function(grunt) {
6464
'});'
6565
].join('\n')
6666
},
67-
filename: 'seajs/editor.js'
67+
filename: 'cmd/editor.js'
6868
},
6969
window: {
7070
filename: 'js/editor.js'
@@ -92,7 +92,7 @@ module.exports = function(grunt) {
9292
grunt.file.write('build/' + this.data.filename, data);
9393
});
9494

95-
grunt.registerTask('utils', function() {
95+
grunt.registerTask('copy', function() {
9696
var dir = 'icomoon/fonts';
9797
grunt.file.recurse(dir, function(fpath) {
9898
var fname = path.relative(dir, fpath);
@@ -102,7 +102,7 @@ module.exports = function(grunt) {
102102
data += grunt.file.read('src/paper.css');
103103
data += grunt.file.read('src/editor.css');
104104
grunt.file.write('build/css/editor.css', data);
105-
grunt.file.copy('index.html', 'build/index.html');
105+
grunt.file.copy('docs/demo.html', 'build/demo.html');
106106
});
107107

108108
grunt.loadNpmTasks('grunt-contrib-jshint');
@@ -114,5 +114,5 @@ module.exports = function(grunt) {
114114

115115
grunt.registerTask('server', ['livereload-start', 'connect', 'regarde']);
116116

117-
grunt.registerTask('transport', ['concat', 'generate', 'utils']);
117+
grunt.registerTask('transport', ['concat', 'generate', 'copy']);
118118
};

docs/api.md

-3
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)