Last change
on this file since b738035 was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago |
primeNG components
|
-
Property mode
set to
100644
|
File size:
398 bytes
|
Line | |
---|
1 | #!/usr/bin/env node
|
---|
2 |
|
---|
3 | process.env.NODE_ENV = 'test'
|
---|
4 |
|
---|
5 | var path = require('path')
|
---|
6 | var test = null
|
---|
7 |
|
---|
8 | try {
|
---|
9 | var pkg = require(path.join(process.cwd(), 'package.json'))
|
---|
10 | if (pkg.name && process.env[pkg.name.toUpperCase().replace(/-/g, '_')]) {
|
---|
11 | process.exit(0)
|
---|
12 | }
|
---|
13 | test = pkg.prebuild.test
|
---|
14 | } catch (err) {
|
---|
15 | // do nothing
|
---|
16 | }
|
---|
17 |
|
---|
18 | if (test) require(path.join(process.cwd(), test))
|
---|
19 | else require('./')()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.