Skip to content

Remove deprecated compile #137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
01e0aa7
adding grunt watch tasks to auto-run tests
SignpostMarv Jan 12, 2016
e0486e0
starting to port over tests from PHPVerbalExpressions
SignpostMarv Jan 12, 2016
5f10d6a
porting over getRegex
SignpostMarv Jan 15, 2016
0c8c812
shuffling things around to make generating coverage reports easier
SignpostMarv Jan 20, 2016
730c733
linting the Gruntfile
SignpostMarv Jan 20, 2016
8dfb712
build by default
SignpostMarv Jan 20, 2016
f0b3a9b
adding a daft self test for loading as module
SignpostMarv Jan 20, 2016
677a34c
building by default not always a good idea
SignpostMarv Jan 20, 2016
653d4a2
Merge branch 'master' of https://github.com/eyko/JSVerbalExpressions …
SignpostMarv Jan 20, 2016
bbdefb7
module self test needed some work
SignpostMarv Jan 20, 2016
e7f982f
removing variable from build steps
SignpostMarv Jan 20, 2016
cdf0271
Merge branch 'master' of https://github.com/VerbalExpressions/JSVerba…
SignpostMarv Jan 25, 2016
90696a4
working around annoying syntax highlighting bug in Atom
SignpostMarv Jan 25, 2016
112e7da
jsdoc testing
SignpostMarv Jan 25, 2016
39e49d9
Merge branch 'eslint-jsdoc' into tests
SignpostMarv Jan 25, 2016
32b9e20
adding in mostly useless jsdoc output
SignpostMarv Jan 25, 2016
b009796
Merge branch 'master' into tests
SignpostMarv Feb 6, 2016
a84dfce
done tinkering with tests for now
SignpostMarv Feb 6, 2016
f33529c
undoing regression re: #1a19271
SignpostMarv Feb 7, 2016
207c790
temporarily need to turn off indentation linting to preserve indentat…
SignpostMarv Feb 7, 2016
a09d33a
temporarily need to turn off indentation linting to preserve indentat…
SignpostMarv Feb 7, 2016
484e9b4
adjusting indentation
SignpostMarv Feb 7, 2016
9acce1c
remove deprecated calls to compile & deferring compilation. fixes Ver…
SignpostMarv Feb 7, 2016
9964ff9
implementing dirty set/get in favour of calling add() to trigger a re…
SignpostMarv Feb 7, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
node_modules
.DS_Store
/coverage/
/tmp/
/docs/
/dist/docs/verbal-expressions/*
!/dist/docs/verbal-expressions/0.2.1/
59 changes: 46 additions & 13 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = function gruntConfig(grunt) {
module.require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

Expand All @@ -7,15 +8,27 @@ module.exports = function gruntConfig(grunt) {
configFile: '.eslintrc',
},
target: ['VerbalExpressions.js', 'test/tests.js'],
Gruntfile: [
'Gruntfile.js',
],
},

qunit: {
options: {
coverage: {
src: [
'VerbalExpressions.js',
],
instrumentedFiles: 'tmp',
htmlReport: 'coverage',
},
},
files: ['test/index.html'],
},

copy: {
build: {
src: '<%= pkg.main %>',
src: 'VerbalExpressions.js',
dest: 'dist/verbalexpressions.js',
},
},
Expand All @@ -36,7 +49,7 @@ module.exports = function gruntConfig(grunt) {
},
dist: {
files: {
'dist/verbalexpressions.min.js': ['<%= pkg.main %>'],
'dist/verbalexpressions.min.js': ['VerbalExpressions.js'],
},
},
},
Expand Down Expand Up @@ -72,17 +85,37 @@ module.exports = function gruntConfig(grunt) {
src: ['dist/verbalexpressions.js'],
},
},
});

grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-sourcemap-localize');
watch: {
testSource: {
files: [
'VerbalExpressions.js',
'test/tests.js',
],
tasks: [
'test',
],
},
},
});

grunt.registerTask('test', ['eslint', 'qunit']);
grunt.registerTask('default', ['qunit']);
grunt.registerTask('build', ['test', 'copy', 'uglify', 'sourcemap_localize', 'jsdoc:dist']);
grunt.registerTask('docs', ['test', 'jsdoc:src']);
grunt.registerTask('test', [
'moduleTest',
'eslint:target',
'qunit:files',
]);
grunt.registerTask('default', ['eslint:Gruntfile', 'test']);
grunt.registerTask('moduleTest', function moduleTest() {
var VE = new (module.require('./VerbalExpressions.js'));
VE = VE.whitespace().multiple('').find('not').whitespace().multiple('');
grunt.log.write(VE.replace('VerbalExpressions as module does not work!', ' '));
});
grunt.registerTask('build', [
'eslint:target',
'qunit:files',
'copy:build',
'uglify:dist',
'sourcemap_localize:build',
'jsdoc:dist',
]);
};
Loading