@financial-times/n-myft-ui 30.4.0 → 30.4.2

Sign up to get free protection for your applications and to get access to all the features.
package/.babelrc ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "env": {
3
+ "custom": {
4
+ "presets": [
5
+ ["babel-preset-react"], ["babel-preset-env"]
6
+ ]
7
+ }
8
+ }
9
+ }
@@ -77,6 +77,9 @@ jobs:
77
77
  - run:
78
78
  name: Install project dependencies
79
79
  command: make install
80
+ - run:
81
+ name: Transpile JSX to JS
82
+ command: make transpile-jsx
80
83
  - run:
81
84
  name: shared-helper / generate-build-state-artifacts
82
85
  command: .circleci/shared-helpers/helper-generate-build-state-artifacts
package/.eslintignore ADDED
@@ -0,0 +1 @@
1
+ dist/
package/Makefile CHANGED
@@ -37,3 +37,6 @@ test:
37
37
  make test-unit
38
38
  make test-build
39
39
  make a11y
40
+
41
+ transpile-jsx:
42
+ @npx cross-env BABEL_ENV=custom babel components/jsx --out-dir dist --extensions .jsx