Skip to content

Commit

Permalink
compile rules separate from core
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinr committed Oct 5, 2013
1 parent c5b4a37 commit 5ef3cf2
Show file tree
Hide file tree
Showing 34 changed files with 1,165 additions and 3,106 deletions.
17 changes: 9 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = function(grunt) {
pkg: grunt.file.readJSON('package.json'),

clean: {
build: ['bin/*'],
build: ['bin/tslint-cli.js'],
core: ['lib/*'],
test: ['build/test/']
},
Expand Down Expand Up @@ -35,15 +35,15 @@ module.exports = function(grunt) {
},

typescript: {
'build': {
build: {
options: {
target: 'es5'
},
src: ['src/tslint-cli.ts'],
dest: 'bin/tslint-cli.js'
},

'core': {
core: {
options: {
declaration: true,
module: 'commonjs',
Expand All @@ -53,16 +53,17 @@ module.exports = function(grunt) {
dest: 'lib/tslint.js'
},

'core-rules': {
core_rules: {
options: {
base_path: 'src/rules',
module: 'commonjs',
target: 'es5',
target: 'es5'
},
src: ['src/rules/*.ts'],
src: ['lib/tslint.d.ts', 'src/rules/bitwiseRule.ts'],
dest: ['lib/rules/']
},

'test': {
test: {
options: {
target: 'es5'
},
Expand All @@ -79,7 +80,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-typescript');

// register custom tasks
grunt.registerTask('core', ['clean:core', 'typescript:core', 'typescript:core-rules']);
grunt.registerTask('core', ['clean:core', 'typescript:core', 'typescript:core_rules']);
grunt.registerTask('build', ['clean:build', 'core', 'typescript:build', 'tslint:src']);
grunt.registerTask('test', ['clean:test', 'core', 'typescript:test', 'tslint:test', 'mochaTest']);

Expand Down
Loading

0 comments on commit 5ef3cf2

Please sign in to comment.